metacountregressor 0.1.160__tar.gz → 0.1.162__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.160 → metacountregressor-0.1.162}/PKG-INFO +1 -1
  2. {metacountregressor-0.1.160 → metacountregressor-0.1.162}/metacountregressor/helperprocess.py +2 -1
  3. {metacountregressor-0.1.160 → metacountregressor-0.1.162}/metacountregressor/solution.py +7 -0
  4. {metacountregressor-0.1.160 → metacountregressor-0.1.162}/metacountregressor.egg-info/PKG-INFO +1 -1
  5. {metacountregressor-0.1.160 → metacountregressor-0.1.162}/LICENSE.txt +0 -0
  6. {metacountregressor-0.1.160 → metacountregressor-0.1.162}/README.rst +0 -0
  7. {metacountregressor-0.1.160 → metacountregressor-0.1.162}/metacountregressor/__init__.py +0 -0
  8. {metacountregressor-0.1.160 → metacountregressor-0.1.162}/metacountregressor/_device_cust.py +0 -0
  9. {metacountregressor-0.1.160 → metacountregressor-0.1.162}/metacountregressor/app_main.py +0 -0
  10. {metacountregressor-0.1.160 → metacountregressor-0.1.162}/metacountregressor/data_split_helper.py +0 -0
  11. {metacountregressor-0.1.160 → metacountregressor-0.1.162}/metacountregressor/halton.py +0 -0
  12. {metacountregressor-0.1.160 → metacountregressor-0.1.162}/metacountregressor/main.py +0 -0
  13. {metacountregressor-0.1.160 → metacountregressor-0.1.162}/metacountregressor/main_old.py +0 -0
  14. {metacountregressor-0.1.160 → metacountregressor-0.1.162}/metacountregressor/metaheuristics.py +0 -0
  15. {metacountregressor-0.1.160 → metacountregressor-0.1.162}/metacountregressor/pareto_file.py +0 -0
  16. {metacountregressor-0.1.160 → metacountregressor-0.1.162}/metacountregressor/pareto_logger__plot.py +0 -0
  17. {metacountregressor-0.1.160 → metacountregressor-0.1.162}/metacountregressor/setup.py +0 -0
  18. {metacountregressor-0.1.160 → metacountregressor-0.1.162}/metacountregressor/single_objective_finder.py +0 -0
  19. {metacountregressor-0.1.160 → metacountregressor-0.1.162}/metacountregressor/test_generated_paper2.py +0 -0
  20. {metacountregressor-0.1.160 → metacountregressor-0.1.162}/metacountregressor.egg-info/SOURCES.txt +0 -0
  21. {metacountregressor-0.1.160 → metacountregressor-0.1.162}/metacountregressor.egg-info/dependency_links.txt +0 -0
  22. {metacountregressor-0.1.160 → metacountregressor-0.1.162}/metacountregressor.egg-info/not-zip-safe +0 -0
  23. {metacountregressor-0.1.160 → metacountregressor-0.1.162}/metacountregressor.egg-info/requires.txt +0 -0
  24. {metacountregressor-0.1.160 → metacountregressor-0.1.162}/metacountregressor.egg-info/top_level.txt +0 -0
  25. {metacountregressor-0.1.160 → metacountregressor-0.1.162}/setup.cfg +0 -0
  26. {metacountregressor-0.1.160 → metacountregressor-0.1.162}/setup.py +0 -0
  27. {metacountregressor-0.1.160 → metacountregressor-0.1.162}/tests/test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: metacountregressor
3
- Version: 0.1.160
3
+ Version: 0.1.162
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
@@ -187,7 +187,13 @@ class ObjectiveFunction(object):
187
187
  self._max_characteristics = kwargs.get('_max_vars', 26)
188
188
 
189
189
  self.beta_dict = dict
190
+ if 'model_terms' in kwargs:
191
+ print('change')
192
+ if kwargs.get('model_terms').get('group') is not None:
193
+ kwargs['group'] = kwargs.get('model_terms').get('group')
190
194
 
195
+ if kwargs.get('model_terms').get('panels') is not None:
196
+ kwargs['panels'] = kwargs.get('model_terms').get('panels')
191
197
  acceptable_keys_list = ['_par', '_max_imp', '_hmcr', 'steps',
192
198
  'algorithm', '_random_seed', '_max_time',
193
199
  'forcedvariables', '_obj_1', '_obj_2', '_par',
@@ -525,6 +531,7 @@ class ObjectiveFunction(object):
525
531
  if self.is_multi:
526
532
  self._offsets_test = self._x_data_test[:, :, val_od]
527
533
  self._x_data_test = self.remove_offset(self._x_data_test, val_od)
534
+ print(self._offsets)
528
535
  else:
529
536
  self.initialize_empty_offsets()
530
537
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: metacountregressor
3
- Version: 0.1.160
3
+ Version: 0.1.162
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