metacountregressor 0.1.161__tar.gz → 0.1.163__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.161 → metacountregressor-0.1.163}/PKG-INFO +1 -1
  2. {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/helperprocess.py +2 -1
  3. {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/solution.py +4 -0
  4. {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor.egg-info/PKG-INFO +1 -1
  5. {metacountregressor-0.1.161 → metacountregressor-0.1.163}/LICENSE.txt +0 -0
  6. {metacountregressor-0.1.161 → metacountregressor-0.1.163}/README.rst +0 -0
  7. {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/__init__.py +0 -0
  8. {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/_device_cust.py +0 -0
  9. {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/app_main.py +0 -0
  10. {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/data_split_helper.py +0 -0
  11. {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/halton.py +0 -0
  12. {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/main.py +0 -0
  13. {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/main_old.py +0 -0
  14. {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/metaheuristics.py +0 -0
  15. {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/pareto_file.py +0 -0
  16. {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/pareto_logger__plot.py +0 -0
  17. {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/setup.py +0 -0
  18. {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/single_objective_finder.py +0 -0
  19. {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/test_generated_paper2.py +0 -0
  20. {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor.egg-info/SOURCES.txt +0 -0
  21. {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor.egg-info/dependency_links.txt +0 -0
  22. {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor.egg-info/not-zip-safe +0 -0
  23. {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor.egg-info/requires.txt +0 -0
  24. {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor.egg-info/top_level.txt +0 -0
  25. {metacountregressor-0.1.161 → metacountregressor-0.1.163}/setup.cfg +0 -0
  26. {metacountregressor-0.1.161 → metacountregressor-0.1.163}/setup.py +0 -0
  27. {metacountregressor-0.1.161 → metacountregressor-0.1.163}/tests/test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: metacountregressor
3
- Version: 0.1.161
3
+ Version: 0.1.163
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
@@ -95,6 +95,7 @@ def findCorrelation(corr, cutoff=0.9, exact=None): """
95
95
  findCorrelation(R1, cutoff=0.6, exact=True) # ['x1', 'x5', 'x4']
96
96
  """
97
97
 
98
+
98
99
  def _findCorrelation_fast(corr, avg, cutoff):
99
100
 
100
101
  combsAboveCutoff = corr.where(lambda x: (np.tril(x) == 0) & (x > cutoff)).stack().index
@@ -434,7 +435,7 @@ def interactions(df, keep=None, drop_this_perc=0.6, interact = False):
434
435
 
435
436
  if missing_columns:
436
437
  print(f"The following columns are not in the DataFrame and will be ignored: {missing_columns}")
437
- keep = [col for col in keep if col not in df.columns]
438
+ keep = [col for col in keep if col not in missing_columns]
438
439
  df_corr = df.drop(columns=keep, errors='ignore', inplace=False) # Exclude `keep` columns
439
440
  else:
440
441
  df_corr = df
@@ -351,6 +351,7 @@ class ObjectiveFunction(object):
351
351
  K = X.shape[1]
352
352
  self.columns_names = X.columns
353
353
  X = X.values.reshape(self.N_test, self.P_test, K)
354
+ X = X.astype('float')
354
355
  self.group_halton_test = self.group_halton_test.reshape(self.N_test, self.P_test)[:, 0]
355
356
  Y = Y.values.reshape(self.N_test, self.P_test, 1)
356
357
  Y = Y.astype('float')
@@ -396,7 +397,9 @@ class ObjectiveFunction(object):
396
397
  K = X.shape[1]
397
398
  self.columns_names = X.columns
398
399
  X = X.values.reshape(self.N_test, self.P_test, K)
400
+ X = X.astype('float')
399
401
  Y = Y.values.reshape(self.N_test, self.P_test, 1)
402
+ Y = Y.astype('float')
400
403
  self._x_data_test = X.copy()
401
404
  self.y_data_test = Y.copy()
402
405
 
@@ -531,6 +534,7 @@ class ObjectiveFunction(object):
531
534
  if self.is_multi:
532
535
  self._offsets_test = self._x_data_test[:, :, val_od]
533
536
  self._x_data_test = self.remove_offset(self._x_data_test, val_od)
537
+ print(self._offsets)
534
538
  else:
535
539
  self.initialize_empty_offsets()
536
540
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: metacountregressor
3
- Version: 0.1.161
3
+ Version: 0.1.163
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