metacountregressor 0.1.151__py3-none-any.whl → 0.1.155__py3-none-any.whl

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.
@@ -212,7 +212,7 @@ def set_up_analyst_constraints(data_characteristic, model_terms, variable_decis
212
212
  # how to make name_data_characteristics - non_none_terms
213
213
 
214
214
  result = [item for item in name_data_characteristics if item not in non_none_terms]
215
- distu = ['Normal', 'Uniform', 'Triangular']
215
+ distu = ['normal', 'uniform', 'triangular']
216
216
  tra = ['no', 'sqrt', 'arcsinh']
217
217
  if model_terms.get('grouped') is None:
218
218
  print('cant have grouped rpm, removing level 4 from every item')
@@ -252,8 +252,11 @@ def set_up_analyst_constraints(data_characteristic, model_terms, variable_decis
252
252
  row[f'Level {level}'] = level in details['levels']
253
253
 
254
254
  # Add distributions and transformations directly
255
- row['distributions'] = details['distributions']
256
- row['transformations'] = details['transformations']
255
+ #row['distributions'] = details['distributions']
256
+ #row['transformations'] = details['transformations']
257
+ # Add distributions and transformations as comma-separated strings
258
+ row['distributions'] = ", ".join(details['distributions'])
259
+ row['transformations'] = ", ".join(details['transformations'])
257
260
 
258
261
  rows.append(row)
259
262
 
@@ -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.151
3
+ Version: 0.1.155
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
@@ -3,7 +3,7 @@ metacountregressor/_device_cust.py,sha256=759fnKmTYccJm4Lpi9_1reurh6OB9d6q9soPR0
3
3
  metacountregressor/app_main.py,sha256=vY3GczTbGbBRalbzMkl_9jVW7RMgEOc6z2Dr1IZJv9c,10014
4
4
  metacountregressor/data_split_helper.py,sha256=M2fIMdIO8znUaYhx5wlacRyNWdQjNYu1z1wkE-kFUYU,3373
5
5
  metacountregressor/halton.py,sha256=jhovA45UBoZYU9g-hl6Lb2sBIx_ZBTNdPrpgkzR9fng,9463
6
- metacountregressor/helperprocess.py,sha256=0cA9_kRRyDGR_aGuClzHyHPsn3iwriH6PD8l7T2jCAo,21653
6
+ metacountregressor/helperprocess.py,sha256=5HrHrtKpRRT4USy9GffPd4Zvqe-IDX76ZBbGCa20mFs,21868
7
7
  metacountregressor/main.py,sha256=2Rx_mGIGzl4lhwkMb7DHvsBaawqEakKiVR1Yr2uG9Yo,22819
8
8
  metacountregressor/main_old.py,sha256=eTS4ygq27MnU-dZ_j983Ucb-D5XfbVF8OJQK2hVVLZc,24123
9
9
  metacountregressor/metaheuristics.py,sha256=1Tm_BS8HxumEo9fteIwTTkfiJXbfH6wlfSmY0tSt77A,106289
@@ -11,10 +11,10 @@ metacountregressor/pareto_file.py,sha256=whySaoPAUWYjyI8zo0hwAOa3rFk6SIUlHSpqZiL
11
11
  metacountregressor/pareto_logger__plot.py,sha256=mEU2QN4wmsM7t39GJ_XhJ_jjsdl09JOmG0U2jICrAkI,30037
12
12
  metacountregressor/setup.py,sha256=5UcQCCLR8Fm5odA3MX78WwahavxFq4mVD6oq0IuQvAY,936
13
13
  metacountregressor/single_objective_finder.py,sha256=jVG7GJBqzSP4_riYr-kMMKy_LE3SlGmKMunNhHYxgRg,8011
14
- metacountregressor/solution.py,sha256=Se3-NMxuRFacPN9f3qfGzkKeIccs8cbe4ebkV0UsGlA,278325
14
+ metacountregressor/solution.py,sha256=BdP43jX-46tJtih0Ctq62jstR2DSX20AyGJkvRbTYPY,278596
15
15
  metacountregressor/test_generated_paper2.py,sha256=pwOoRzl1jJIIOUAAvbkT6HmmTQ81mwpsshn9SLdKOg8,3927
16
- metacountregressor-0.1.151.dist-info/LICENSE.txt,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
17
- metacountregressor-0.1.151.dist-info/METADATA,sha256=UnAwgc0WSRSryWmpvJhJrIOC0YkUfq6xrgtdqRBPw_M,23434
18
- metacountregressor-0.1.151.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
19
- metacountregressor-0.1.151.dist-info/top_level.txt,sha256=zGG7UC5WIpr76gsFUpwJ4En2aCcoNTONBaS3OewwjR0,19
20
- metacountregressor-0.1.151.dist-info/RECORD,,
16
+ metacountregressor-0.1.155.dist-info/LICENSE.txt,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
17
+ metacountregressor-0.1.155.dist-info/METADATA,sha256=m4q8qj9oRFg-c-3h185y1lbJZTBjEW0XLOe6SmfavGI,23434
18
+ metacountregressor-0.1.155.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
19
+ metacountregressor-0.1.155.dist-info/top_level.txt,sha256=zGG7UC5WIpr76gsFUpwJ4En2aCcoNTONBaS3OewwjR0,19
20
+ metacountregressor-0.1.155.dist-info/RECORD,,