metacountregressor 0.1.140__tar.gz → 0.1.141__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/PKG-INFO +1 -1
  2. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/metacountregressor/metaheuristics.py +1 -1
  3. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/metacountregressor/solution.py +7 -6
  4. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/metacountregressor.egg-info/PKG-INFO +1 -1
  5. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/LICENSE.txt +0 -0
  6. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/README.rst +0 -0
  7. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/metacountregressor/__init__.py +0 -0
  8. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/metacountregressor/_device_cust.py +0 -0
  9. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/metacountregressor/app_main.py +0 -0
  10. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/metacountregressor/data_split_helper.py +0 -0
  11. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/metacountregressor/halton.py +0 -0
  12. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/metacountregressor/helperprocess.py +0 -0
  13. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/metacountregressor/main.py +0 -0
  14. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/metacountregressor/main_old.py +0 -0
  15. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/metacountregressor/pareto_file.py +0 -0
  16. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/metacountregressor/pareto_logger__plot.py +0 -0
  17. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/metacountregressor/setup.py +0 -0
  18. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/metacountregressor/single_objective_finder.py +0 -0
  19. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/metacountregressor/test_generated_paper2.py +0 -0
  20. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/metacountregressor.egg-info/SOURCES.txt +0 -0
  21. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/metacountregressor.egg-info/dependency_links.txt +0 -0
  22. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/metacountregressor.egg-info/not-zip-safe +0 -0
  23. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/metacountregressor.egg-info/requires.txt +0 -0
  24. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/metacountregressor.egg-info/top_level.txt +0 -0
  25. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/setup.cfg +0 -0
  26. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/setup.py +0 -0
  27. {metacountregressor-0.1.140 → metacountregressor-0.1.141}/tests/test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: metacountregressor
3
- Version: 0.1.140
3
+ Version: 0.1.141
4
4
  Summary: Extensions for a Python package for estimation of count models.
5
5
  Home-page: https://github.com/zahern/CountDataEstimation
6
6
  Author: Zeke Ahern
@@ -1248,7 +1248,7 @@ class HarmonySearch(object):
1248
1248
 
1249
1249
 
1250
1250
  # for printing basics metrics
1251
- self.print_verbose = True
1251
+ self.print_verbose = kwargs.get('verbose', False)
1252
1252
  # harmony_memory stores the best hms harmonies
1253
1253
  self._harmony_memory = list()
1254
1254
  # harmony_history stores all hms harmonies every nth improvisations (i.e., one 'generation')
@@ -136,10 +136,10 @@ class ObjectiveFunction(object):
136
136
  self.constant_value = 0
137
137
  self.negative_binomial_value = 1
138
138
 
139
- self.verbose_safe = True
139
+ self.verbose_safe = kwargs.get('verbose', 0)
140
140
  self.please_print = kwargs.get('please_print', 0)
141
141
  self.group_halton = None
142
- self.grad_yes = True
142
+ self.grad_yes = kwargs.get('grad_est', False)
143
143
  self.hess_yes = False
144
144
  self.group_halton_test = None
145
145
  self.panels = None
@@ -177,13 +177,14 @@ class ObjectiveFunction(object):
177
177
  self.method_ll = 'Nelder-Mead-BFGS'
178
178
 
179
179
  self.method_ll = 'L-BFGS-B' # alternatives 'BFGS_2', 'BFGS
180
- self.method_ll = 'BFGS_2'
180
+ self.method_ll = kwargs.get('method', 'Nealder-Mead-BFGS')
181
+
181
182
  #self.method_ll = 'Nelder-Mead-BFGS'
182
183
  self.Keep_Fit = 2
183
184
  self.MP = 0
184
185
  # Nelder-Mead-BFGS
185
186
 
186
- self._max_characteristics = 26
187
+ self._max_characteristics = self.get('_max_vars', 26)
187
188
 
188
189
  self.beta_dict = dict
189
190
 
@@ -4858,7 +4859,7 @@ class ObjectiveFunction(object):
4858
4859
  proba.append(dev.to_cpu(proba_))
4859
4860
 
4860
4861
  lik = np.stack(proba).sum(axis=0) / R # (N, )
4861
- lik = np.clip(lik, min_comp_val, 1000)
4862
+ lik = np.clip(lik, min_comp_val, max_comp_val)
4862
4863
  # lik = np.nan_to_num(lik, )
4863
4864
  loglik = np.log(lik)
4864
4865
  llf_main = loglik
@@ -5188,7 +5189,7 @@ class ObjectiveFunction(object):
5188
5189
  H = self.numerical_hessian(lambda x: self._loglik_gradient(x, *argbs), result.x, eps=1e-7 * self.n_obs)
5189
5190
  result['Hessian'] = H
5190
5191
  result['hess_inv'] = np.linalg.pinv(H)
5191
- print('to do, only if hessian is fhfhfhf')
5192
+
5192
5193
  standard_errors = np.sqrt(np.diag(np.linalg.pinv(H)))
5193
5194
  return result
5194
5195
  # return minimize(loglik_fn, x, args=args, jac=args[6], hess=args[7], method='BFGS', options= {'gtol':1e-7*self.N}*self.Ndraws)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: metacountregressor
3
- Version: 0.1.140
3
+ Version: 0.1.141
4
4
  Summary: Extensions for a Python package for estimation of count models.
5
5
  Home-page: https://github.com/zahern/CountDataEstimation
6
6
  Author: Zeke Ahern