metacountregressor 0.1.162__tar.gz → 0.1.164__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.162 → metacountregressor-0.1.164}/PKG-INFO +1 -1
  2. {metacountregressor-0.1.162 → metacountregressor-0.1.164}/metacountregressor/solution.py +8 -1
  3. {metacountregressor-0.1.162 → metacountregressor-0.1.164}/metacountregressor.egg-info/PKG-INFO +1 -1
  4. {metacountregressor-0.1.162 → metacountregressor-0.1.164}/LICENSE.txt +0 -0
  5. {metacountregressor-0.1.162 → metacountregressor-0.1.164}/README.rst +0 -0
  6. {metacountregressor-0.1.162 → metacountregressor-0.1.164}/metacountregressor/__init__.py +0 -0
  7. {metacountregressor-0.1.162 → metacountregressor-0.1.164}/metacountregressor/_device_cust.py +0 -0
  8. {metacountregressor-0.1.162 → metacountregressor-0.1.164}/metacountregressor/app_main.py +0 -0
  9. {metacountregressor-0.1.162 → metacountregressor-0.1.164}/metacountregressor/data_split_helper.py +0 -0
  10. {metacountregressor-0.1.162 → metacountregressor-0.1.164}/metacountregressor/halton.py +0 -0
  11. {metacountregressor-0.1.162 → metacountregressor-0.1.164}/metacountregressor/helperprocess.py +0 -0
  12. {metacountregressor-0.1.162 → metacountregressor-0.1.164}/metacountregressor/main.py +0 -0
  13. {metacountregressor-0.1.162 → metacountregressor-0.1.164}/metacountregressor/main_old.py +0 -0
  14. {metacountregressor-0.1.162 → metacountregressor-0.1.164}/metacountregressor/metaheuristics.py +0 -0
  15. {metacountregressor-0.1.162 → metacountregressor-0.1.164}/metacountregressor/pareto_file.py +0 -0
  16. {metacountregressor-0.1.162 → metacountregressor-0.1.164}/metacountregressor/pareto_logger__plot.py +0 -0
  17. {metacountregressor-0.1.162 → metacountregressor-0.1.164}/metacountregressor/setup.py +0 -0
  18. {metacountregressor-0.1.162 → metacountregressor-0.1.164}/metacountregressor/single_objective_finder.py +0 -0
  19. {metacountregressor-0.1.162 → metacountregressor-0.1.164}/metacountregressor/test_generated_paper2.py +0 -0
  20. {metacountregressor-0.1.162 → metacountregressor-0.1.164}/metacountregressor.egg-info/SOURCES.txt +0 -0
  21. {metacountregressor-0.1.162 → metacountregressor-0.1.164}/metacountregressor.egg-info/dependency_links.txt +0 -0
  22. {metacountregressor-0.1.162 → metacountregressor-0.1.164}/metacountregressor.egg-info/not-zip-safe +0 -0
  23. {metacountregressor-0.1.162 → metacountregressor-0.1.164}/metacountregressor.egg-info/requires.txt +0 -0
  24. {metacountregressor-0.1.162 → metacountregressor-0.1.164}/metacountregressor.egg-info/top_level.txt +0 -0
  25. {metacountregressor-0.1.162 → metacountregressor-0.1.164}/setup.cfg +0 -0
  26. {metacountregressor-0.1.162 → metacountregressor-0.1.164}/setup.py +0 -0
  27. {metacountregressor-0.1.162 → metacountregressor-0.1.164}/tests/test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: metacountregressor
3
- Version: 0.1.162
3
+ Version: 0.1.164
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
@@ -327,9 +327,11 @@ class ObjectiveFunction(object):
327
327
  K = Xnew.shape[1]
328
328
  self._characteristics_names = list(Xnew.columns)
329
329
  XX = Xnew.values.reshape(self.N, self.P, K).copy()
330
+ XX = XX.astype('float')
330
331
  self.group_dummies = self.group_dummies.values.reshape(self.N, self.P, -1)
331
332
  self.group_halton = self.group_halton.reshape(self.N, self.P)[:, 0]
332
333
  YY = Ynew.values.reshape(self.N, self.P, 1).copy()
334
+ YY = YY.astype('float')
333
335
  self._x_data = XX.copy()
334
336
  self._y_data = YY.copy()
335
337
  X, Y, panel, group = self._arrange_long_format(df_test, y_test, self.ids_test, self.panels_test, group_test)
@@ -351,6 +353,7 @@ class ObjectiveFunction(object):
351
353
  K = X.shape[1]
352
354
  self.columns_names = X.columns
353
355
  X = X.values.reshape(self.N_test, self.P_test, K)
356
+ X = X.astype('float')
354
357
  self.group_halton_test = self.group_halton_test.reshape(self.N_test, self.P_test)[:, 0]
355
358
  Y = Y.values.reshape(self.N_test, self.P_test, 1)
356
359
  Y = Y.astype('float')
@@ -380,7 +383,9 @@ class ObjectiveFunction(object):
380
383
  K = Xnew.shape[1]
381
384
  self._characteristics_names = list(Xnew.columns)
382
385
  XX = Xnew.values.reshape(self.N, self.P, K).copy()
386
+ XX = XX.astype('float')
383
387
  YY = Ynew.values.reshape(self.N, self.P, 1).copy()
388
+ YY = YY.astype('float')
384
389
  self._x_data = XX.copy()
385
390
  self._y_data = YY.copy()
386
391
 
@@ -396,7 +401,9 @@ class ObjectiveFunction(object):
396
401
  K = X.shape[1]
397
402
  self.columns_names = X.columns
398
403
  X = X.values.reshape(self.N_test, self.P_test, K)
404
+ X = X.astype('float')
399
405
  Y = Y.values.reshape(self.N_test, self.P_test, 1)
406
+ Y = Y.astype('float')
400
407
  self._x_data_test = X.copy()
401
408
  self.y_data_test = Y.copy()
402
409
 
@@ -3873,7 +3880,7 @@ class ObjectiveFunction(object):
3873
3880
 
3874
3881
  else:
3875
3882
  # eVd = self.my_lindley(np.exp(np.clip(eta, None, EXP_UPPER_LIMIT)), 1.29)
3876
-
3883
+ eta = eta.astype('float')
3877
3884
  eVd = np.exp(np.clip(eta, None, EXP_UPPER_LIMIT))
3878
3885
  return eVd
3879
3886
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: metacountregressor
3
- Version: 0.1.162
3
+ Version: 0.1.164
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