metacountregressor 0.1.209__py3-none-any.whl → 0.1.212__py3-none-any.whl

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.
@@ -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.212
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
@@ -11,10 +11,10 @@ metacountregressor/pareto_file.py,sha256=whySaoPAUWYjyI8zo0hwAOa3rFk6SIUlHSpqZiL
11
11
  metacountregressor/pareto_logger__plot.py,sha256=mEU2QN4wmsM7t39GJ_XhJ_jjsdl09JOmG0U2jICrAkI,30037
12
12
  metacountregressor/setup.py,sha256=5UcQCCLR8Fm5odA3MX78WwahavxFq4mVD6oq0IuQvAY,936
13
13
  metacountregressor/single_objective_finder.py,sha256=jVG7GJBqzSP4_riYr-kMMKy_LE3SlGmKMunNhHYxgRg,8011
14
- metacountregressor/solution.py,sha256=9bPdfwyxUx-4Z2EsOheCsTXbksdPd5oC-o4fx_rDhNE,284645
14
+ metacountregressor/solution.py,sha256=Mh4y2QyntVoZ__E_Uqvr2il5fd2kZlN0HN3TsxTo_CU,284756
15
15
  metacountregressor/test_generated_paper2.py,sha256=pwOoRzl1jJIIOUAAvbkT6HmmTQ81mwpsshn9SLdKOg8,3927
16
- metacountregressor-0.1.209.dist-info/LICENSE.txt,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
17
- metacountregressor-0.1.209.dist-info/METADATA,sha256=VTXXMO16oHNwdRfj4gslq4CBPvRHnD3Ro2HGHIG7xH0,23536
18
- metacountregressor-0.1.209.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
19
- metacountregressor-0.1.209.dist-info/top_level.txt,sha256=zGG7UC5WIpr76gsFUpwJ4En2aCcoNTONBaS3OewwjR0,19
20
- metacountregressor-0.1.209.dist-info/RECORD,,
16
+ metacountregressor-0.1.212.dist-info/LICENSE.txt,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
17
+ metacountregressor-0.1.212.dist-info/METADATA,sha256=3ayNLhikZ3nSHUO8zUsYfu1lPc6unOJSq9M3XITkyK4,23536
18
+ metacountregressor-0.1.212.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
19
+ metacountregressor-0.1.212.dist-info/top_level.txt,sha256=zGG7UC5WIpr76gsFUpwJ4En2aCcoNTONBaS3OewwjR0,19
20
+ metacountregressor-0.1.212.dist-info/RECORD,,