metacountregressor 0.1.142__tar.gz → 0.1.144__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.142 → metacountregressor-0.1.144}/PKG-INFO +1 -1
  2. {metacountregressor-0.1.142 → metacountregressor-0.1.144}/metacountregressor/helperprocess.py +5 -0
  3. {metacountregressor-0.1.142 → metacountregressor-0.1.144}/metacountregressor/solution.py +1 -1
  4. {metacountregressor-0.1.142 → metacountregressor-0.1.144}/metacountregressor.egg-info/PKG-INFO +1 -1
  5. {metacountregressor-0.1.142 → metacountregressor-0.1.144}/LICENSE.txt +0 -0
  6. {metacountregressor-0.1.142 → metacountregressor-0.1.144}/README.rst +0 -0
  7. {metacountregressor-0.1.142 → metacountregressor-0.1.144}/metacountregressor/__init__.py +0 -0
  8. {metacountregressor-0.1.142 → metacountregressor-0.1.144}/metacountregressor/_device_cust.py +0 -0
  9. {metacountregressor-0.1.142 → metacountregressor-0.1.144}/metacountregressor/app_main.py +0 -0
  10. {metacountregressor-0.1.142 → metacountregressor-0.1.144}/metacountregressor/data_split_helper.py +0 -0
  11. {metacountregressor-0.1.142 → metacountregressor-0.1.144}/metacountregressor/halton.py +0 -0
  12. {metacountregressor-0.1.142 → metacountregressor-0.1.144}/metacountregressor/main.py +0 -0
  13. {metacountregressor-0.1.142 → metacountregressor-0.1.144}/metacountregressor/main_old.py +0 -0
  14. {metacountregressor-0.1.142 → metacountregressor-0.1.144}/metacountregressor/metaheuristics.py +0 -0
  15. {metacountregressor-0.1.142 → metacountregressor-0.1.144}/metacountregressor/pareto_file.py +0 -0
  16. {metacountregressor-0.1.142 → metacountregressor-0.1.144}/metacountregressor/pareto_logger__plot.py +0 -0
  17. {metacountregressor-0.1.142 → metacountregressor-0.1.144}/metacountregressor/setup.py +0 -0
  18. {metacountregressor-0.1.142 → metacountregressor-0.1.144}/metacountregressor/single_objective_finder.py +0 -0
  19. {metacountregressor-0.1.142 → metacountregressor-0.1.144}/metacountregressor/test_generated_paper2.py +0 -0
  20. {metacountregressor-0.1.142 → metacountregressor-0.1.144}/metacountregressor.egg-info/SOURCES.txt +0 -0
  21. {metacountregressor-0.1.142 → metacountregressor-0.1.144}/metacountregressor.egg-info/dependency_links.txt +0 -0
  22. {metacountregressor-0.1.142 → metacountregressor-0.1.144}/metacountregressor.egg-info/not-zip-safe +0 -0
  23. {metacountregressor-0.1.142 → metacountregressor-0.1.144}/metacountregressor.egg-info/requires.txt +0 -0
  24. {metacountregressor-0.1.142 → metacountregressor-0.1.144}/metacountregressor.egg-info/top_level.txt +0 -0
  25. {metacountregressor-0.1.142 → metacountregressor-0.1.144}/setup.cfg +0 -0
  26. {metacountregressor-0.1.142 → metacountregressor-0.1.144}/setup.py +0 -0
  27. {metacountregressor-0.1.142 → metacountregressor-0.1.144}/tests/test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: metacountregressor
3
- Version: 0.1.142
3
+ Version: 0.1.144
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
@@ -418,6 +418,11 @@ def interactions(df, keep=None, drop_this_perc=0.6, interact = False):
418
418
  # second
419
419
  # Remove `keep` columns from the correlation matrix
420
420
  if keep is not None:
421
+ missing_columns = [col for col in keep if col not in df.columns]
422
+
423
+ if missing_columns:
424
+ print(f"The following columns are not in the DataFrame and will be ignored: {missing_columns}")
425
+ keep = [col for col in keep if col not in df.columns]
421
426
  df_corr = df.drop(columns=keep, errors='ignore') # Exclude `keep` columns
422
427
  else:
423
428
  df_corr = df
@@ -177,7 +177,7 @@ 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 = kwargs.get('method', 'Nealder-Mead-BFGS')
180
+ self.method_ll = kwargs.get('method', 'BFGS_2')
181
181
 
182
182
  #self.method_ll = 'Nelder-Mead-BFGS'
183
183
  self.Keep_Fit = 2
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: metacountregressor
3
- Version: 0.1.142
3
+ Version: 0.1.144
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