metacountregressor 0.1.149__tar.gz → 0.1.150__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.149 → metacountregressor-0.1.150}/PKG-INFO +1 -1
  2. {metacountregressor-0.1.149 → metacountregressor-0.1.150}/metacountregressor/solution.py +9 -6
  3. {metacountregressor-0.1.149 → metacountregressor-0.1.150}/metacountregressor.egg-info/PKG-INFO +1 -1
  4. {metacountregressor-0.1.149 → metacountregressor-0.1.150}/LICENSE.txt +0 -0
  5. {metacountregressor-0.1.149 → metacountregressor-0.1.150}/README.rst +0 -0
  6. {metacountregressor-0.1.149 → metacountregressor-0.1.150}/metacountregressor/__init__.py +0 -0
  7. {metacountregressor-0.1.149 → metacountregressor-0.1.150}/metacountregressor/_device_cust.py +0 -0
  8. {metacountregressor-0.1.149 → metacountregressor-0.1.150}/metacountregressor/app_main.py +0 -0
  9. {metacountregressor-0.1.149 → metacountregressor-0.1.150}/metacountregressor/data_split_helper.py +0 -0
  10. {metacountregressor-0.1.149 → metacountregressor-0.1.150}/metacountregressor/halton.py +0 -0
  11. {metacountregressor-0.1.149 → metacountregressor-0.1.150}/metacountregressor/helperprocess.py +0 -0
  12. {metacountregressor-0.1.149 → metacountregressor-0.1.150}/metacountregressor/main.py +0 -0
  13. {metacountregressor-0.1.149 → metacountregressor-0.1.150}/metacountregressor/main_old.py +0 -0
  14. {metacountregressor-0.1.149 → metacountregressor-0.1.150}/metacountregressor/metaheuristics.py +0 -0
  15. {metacountregressor-0.1.149 → metacountregressor-0.1.150}/metacountregressor/pareto_file.py +0 -0
  16. {metacountregressor-0.1.149 → metacountregressor-0.1.150}/metacountregressor/pareto_logger__plot.py +0 -0
  17. {metacountregressor-0.1.149 → metacountregressor-0.1.150}/metacountregressor/setup.py +0 -0
  18. {metacountregressor-0.1.149 → metacountregressor-0.1.150}/metacountregressor/single_objective_finder.py +0 -0
  19. {metacountregressor-0.1.149 → metacountregressor-0.1.150}/metacountregressor/test_generated_paper2.py +0 -0
  20. {metacountregressor-0.1.149 → metacountregressor-0.1.150}/metacountregressor.egg-info/SOURCES.txt +0 -0
  21. {metacountregressor-0.1.149 → metacountregressor-0.1.150}/metacountregressor.egg-info/dependency_links.txt +0 -0
  22. {metacountregressor-0.1.149 → metacountregressor-0.1.150}/metacountregressor.egg-info/not-zip-safe +0 -0
  23. {metacountregressor-0.1.149 → metacountregressor-0.1.150}/metacountregressor.egg-info/requires.txt +0 -0
  24. {metacountregressor-0.1.149 → metacountregressor-0.1.150}/metacountregressor.egg-info/top_level.txt +0 -0
  25. {metacountregressor-0.1.149 → metacountregressor-0.1.150}/setup.cfg +0 -0
  26. {metacountregressor-0.1.149 → metacountregressor-0.1.150}/setup.py +0 -0
  27. {metacountregressor-0.1.149 → metacountregressor-0.1.150}/tests/test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: metacountregressor
3
- Version: 0.1.149
3
+ Version: 0.1.150
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
@@ -829,15 +829,18 @@ class ObjectiveFunction(object):
829
829
  def rename_distro(self, distro):
830
830
  # Mapping dictionary
831
831
  mapping = {
832
- 'Normal': 'normal',
833
- 'Triangular': 'triangular',
834
- 'Uniform': 'uniform',
835
- 'Log-Normal': 'ln_normal',
836
- 'Trunc-Normal': 'tn_normal'
832
+ 'normal': ['normal', 'n', 'Normal'],
833
+ 'triangular': ['triangular', 't', 'Triangular'],
834
+ 'uniform': ['uniform', 'u', 'Uniform'],
835
+ 'ln_normal': ['ln_normal', 'ln_n', 'Ln_Normal'],
836
+ 'tn_normal': ['tn_normal', 'tn_n', 'trunc_normal']
837
837
  }
838
838
 
839
839
  # Use list comprehension with the mapping
840
- new_distro = [mapping.get(i, i) for i in distro]
840
+ reversed_mapping = {value: key for key, values in mapping.items() for value in values}
841
+
842
+ # Use the reversed mapping to find the corresponding key
843
+ new_distro = [reversed_mapping.get(i, i) for i in distro]
841
844
  return new_distro
842
845
 
843
846
  def define_distributions_analyst(self, extra = None):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: metacountregressor
3
- Version: 0.1.149
3
+ Version: 0.1.150
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