metacountregressor 0.1.209__tar.gz → 0.1.211__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/PKG-INFO +1 -1
  2. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/metacountregressor/solution.py +6 -3
  3. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/metacountregressor.egg-info/PKG-INFO +1 -1
  4. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/LICENSE.txt +0 -0
  5. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/README.rst +0 -0
  6. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/metacountregressor/__init__.py +0 -0
  7. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/metacountregressor/_device_cust.py +0 -0
  8. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/metacountregressor/app_main.py +0 -0
  9. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/metacountregressor/data_split_helper.py +0 -0
  10. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/metacountregressor/halton.py +0 -0
  11. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/metacountregressor/helperprocess.py +0 -0
  12. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/metacountregressor/main.py +0 -0
  13. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/metacountregressor/main_old.py +0 -0
  14. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/metacountregressor/metaheuristics.py +0 -0
  15. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/metacountregressor/pareto_file.py +0 -0
  16. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/metacountregressor/pareto_logger__plot.py +0 -0
  17. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/metacountregressor/setup.py +0 -0
  18. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/metacountregressor/single_objective_finder.py +0 -0
  19. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/metacountregressor/test_generated_paper2.py +0 -0
  20. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/metacountregressor.egg-info/SOURCES.txt +0 -0
  21. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/metacountregressor.egg-info/dependency_links.txt +0 -0
  22. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/metacountregressor.egg-info/not-zip-safe +0 -0
  23. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/metacountregressor.egg-info/requires.txt +0 -0
  24. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/metacountregressor.egg-info/top_level.txt +0 -0
  25. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/setup.cfg +0 -0
  26. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/setup.py +0 -0
  27. {metacountregressor-0.1.209 → metacountregressor-0.1.211}/tests/test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: metacountregressor
3
- Version: 0.1.209
3
+ Version: 0.1.211
4
4
  Summary: Extensive Testing for Estimation of Data Count Models
5
5
  Home-page: https://github.com/zahern/CountDataEstimation
6
6
  Author: Zeke Ahern
@@ -188,7 +188,7 @@ class ObjectiveFunction(object):
188
188
 
189
189
  self.beta_dict = dict
190
190
  if 'model_terms' in kwargs:
191
- print('change')
191
+
192
192
  if kwargs.get('model_terms').get('group') is not None:
193
193
  kwargs['group'] = kwargs.get('model_terms').get('group')
194
194
 
@@ -1446,7 +1446,7 @@ class ObjectiveFunction(object):
1446
1446
  #disp = sm.OLS(ab.ravel(), bb.ravel()).fit()
1447
1447
  #gamma = disp.params[0]
1448
1448
  #print(f'dispersion is {gamma}')
1449
- gamma = np.min((dispersion,1))
1449
+ gamma = np.min([dispersion,1])
1450
1450
  if gamma < 0.05:
1451
1451
  gamma = 0.05
1452
1452
  return gamma
@@ -5699,7 +5699,10 @@ class ObjectiveFunction(object):
5699
5699
  method=method2, tol=1e-5, options={'gtol': tol['gtol']},
5700
5700
  bounds=bounds)
5701
5701
  if dispersion:
5702
- nb_parma = self.poisson_mean_get_dispersion(initial_beta.x, XX, y)
5702
+ try:
5703
+ nb_parma = self.poisson_mean_get_dispersion(initial_beta.x, XX, y)
5704
+ except:
5705
+ nb_parma = 0.5
5703
5706
 
5704
5707
 
5705
5708
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: metacountregressor
3
- Version: 0.1.209
3
+ Version: 0.1.211
4
4
  Summary: Extensive Testing for Estimation of Data Count Models
5
5
  Home-page: https://github.com/zahern/CountDataEstimation
6
6
  Author: Zeke Ahern