metacountregressor 0.1.165__tar.gz → 0.1.168__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 (28) hide show
  1. {metacountregressor-0.1.165 → metacountregressor-0.1.168}/PKG-INFO +7 -3
  2. {metacountregressor-0.1.165 → metacountregressor-0.1.168}/metacountregressor/helperprocess.py +4 -1
  3. {metacountregressor-0.1.165 → metacountregressor-0.1.168}/metacountregressor/metaheuristics.py +4 -3
  4. {metacountregressor-0.1.165 → metacountregressor-0.1.168}/metacountregressor/solution.py +3 -1
  5. {metacountregressor-0.1.165 → metacountregressor-0.1.168}/metacountregressor.egg-info/PKG-INFO +7 -3
  6. metacountregressor-0.1.168/metacountregressor.egg-info/requires.txt +8 -0
  7. {metacountregressor-0.1.165 → metacountregressor-0.1.168}/setup.py +7 -3
  8. metacountregressor-0.1.165/metacountregressor.egg-info/requires.txt +0 -4
  9. {metacountregressor-0.1.165 → metacountregressor-0.1.168}/LICENSE.txt +0 -0
  10. {metacountregressor-0.1.165 → metacountregressor-0.1.168}/README.rst +0 -0
  11. {metacountregressor-0.1.165 → metacountregressor-0.1.168}/metacountregressor/__init__.py +0 -0
  12. {metacountregressor-0.1.165 → metacountregressor-0.1.168}/metacountregressor/_device_cust.py +0 -0
  13. {metacountregressor-0.1.165 → metacountregressor-0.1.168}/metacountregressor/app_main.py +0 -0
  14. {metacountregressor-0.1.165 → metacountregressor-0.1.168}/metacountregressor/data_split_helper.py +0 -0
  15. {metacountregressor-0.1.165 → metacountregressor-0.1.168}/metacountregressor/halton.py +0 -0
  16. {metacountregressor-0.1.165 → metacountregressor-0.1.168}/metacountregressor/main.py +0 -0
  17. {metacountregressor-0.1.165 → metacountregressor-0.1.168}/metacountregressor/main_old.py +0 -0
  18. {metacountregressor-0.1.165 → metacountregressor-0.1.168}/metacountregressor/pareto_file.py +0 -0
  19. {metacountregressor-0.1.165 → metacountregressor-0.1.168}/metacountregressor/pareto_logger__plot.py +0 -0
  20. {metacountregressor-0.1.165 → metacountregressor-0.1.168}/metacountregressor/setup.py +0 -0
  21. {metacountregressor-0.1.165 → metacountregressor-0.1.168}/metacountregressor/single_objective_finder.py +0 -0
  22. {metacountregressor-0.1.165 → metacountregressor-0.1.168}/metacountregressor/test_generated_paper2.py +0 -0
  23. {metacountregressor-0.1.165 → metacountregressor-0.1.168}/metacountregressor.egg-info/SOURCES.txt +0 -0
  24. {metacountregressor-0.1.165 → metacountregressor-0.1.168}/metacountregressor.egg-info/dependency_links.txt +0 -0
  25. {metacountregressor-0.1.165 → metacountregressor-0.1.168}/metacountregressor.egg-info/not-zip-safe +0 -0
  26. {metacountregressor-0.1.165 → metacountregressor-0.1.168}/metacountregressor.egg-info/top_level.txt +0 -0
  27. {metacountregressor-0.1.165 → metacountregressor-0.1.168}/setup.cfg +0 -0
  28. {metacountregressor-0.1.165 → metacountregressor-0.1.168}/tests/test.py +0 -0
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: metacountregressor
3
- Version: 0.1.165
4
- Summary: Extensions for a Python package for estimation of count models.
3
+ Version: 0.1.168
4
+ Summary: Extensive Testing for Estimation of Data Count Models
5
5
  Home-page: https://github.com/zahern/CountDataEstimation
6
6
  Author: Zeke Ahern
7
7
  Author-email: z.ahern@qut.edu.au
8
- License: QUT
8
+ License: MIT
9
9
  Requires-Python: >=3.10
10
10
  Description-Content-Type: text/markdown
11
11
  License-File: LICENSE.txt
@@ -13,6 +13,10 @@ Requires-Dist: numpy>=1.13.1
13
13
  Requires-Dist: scipy>=1.0.0
14
14
  Requires-Dist: requests
15
15
  Requires-Dist: latextable
16
+ Requires-Dist: pandas
17
+ Requires-Dist: scikit_learn>=1.4.1.post1
18
+ Requires-Dist: statsmodels
19
+ Requires-Dist: psustil
16
20
  Dynamic: author
17
21
  Dynamic: author-email
18
22
  Dynamic: description
@@ -345,8 +345,11 @@ def transform_dataframe(df, config):
345
345
 
346
346
  elif settings['type'] == 'none':
347
347
  # Leave the column unchanged
348
- output_df = pd.concat([output_df, df[[column]]], axis=1)
348
+ if column in df.columns:
349
349
 
350
+ output_df = pd.concat([output_df, df[[column]]], axis=1)
351
+ else:
352
+ print(f'config variable {column} is not in the data. Ignoring ...')
350
353
  return output_df
351
354
 
352
355
  # Helper function to guess column type and update `config`
@@ -402,6 +402,7 @@ class DifferentialEvolution(object):
402
402
  self._obj_fun._obj_1 = 'bic'
403
403
 
404
404
  self._pop_size = kwargs.get('_pop_size', 20)
405
+ print('Population size is', self._pop_size)
405
406
  if not isinstance(self._pop_size, int):
406
407
  raise ValueError("_pop_size must be an integer")
407
408
  elif self._pop_size <= 3:
@@ -618,7 +619,7 @@ class DifferentialEvolution(object):
618
619
  1)
619
620
 
620
621
  if len(self._pareto_population) == 1:
621
- print('the size of the population is only 1')
622
+ print('Pareto Population Size is only 1')
622
623
  if self.pf.check_dominance([obj_trial[self.pf.obj_key_1], obj_trial[self.pf.obj_key_2]],
623
624
  [self._population[j][self.pf.obj_key_1], self._population[j][
624
625
  self.pf.obj_key_2]]): # if solution dominates existing #FIXME some error here true but not entering
@@ -1004,7 +1005,7 @@ class SimulatedAnnealing(object):
1004
1005
  elif num_of_changeablePARMs == 0:
1005
1006
  rdm_i = random.choice(range(len(prmVect)))
1006
1007
  if self._obj_fun.get_num_discrete_values(rdm_i) <= 1:
1007
- print('hold gimct')
1008
+ print('retry')
1008
1009
 
1009
1010
  while self._obj_fun.get_num_discrete_values(rdm_i) <= 1:
1010
1011
  rdm_i = random.randint(0, self._obj_fun.get_num_parameters() - 1)
@@ -1046,7 +1047,7 @@ class SimulatedAnnealing(object):
1046
1047
  get_rdm_j = random.randint(0, self._obj_fun.get_num_discrete_values(rdm_i) - 1)
1047
1048
  if (self._obj_fun.get_num_discrete_values(
1048
1049
  rdm_i) - 1) < 1: # TODO: remove this is just a test
1049
- print('fucking fix this sln algorithm')
1050
+
1050
1051
  break
1051
1052
  new_nbr_i = self._obj_fun.get_value(rdm_i, get_rdm_j)
1052
1053
  neighbour[rdm_i] = new_nbr_i
@@ -1075,13 +1075,15 @@ class ObjectiveFunction(object):
1075
1075
  [''] * (len(names) - len(self.transform_id_names))
1076
1076
  self.coeff_names = names
1077
1077
 
1078
+ '''
1078
1079
  if betas is not None:
1079
1080
  try:
1080
1081
  if len(betas) != len(names):
1081
- print('no draws is', no_draws)
1082
+ print('standard_model', no_draws)
1082
1083
 
1083
1084
  except Exception as e:
1084
1085
  print(e)
1086
+ '''
1085
1087
 
1086
1088
 
1087
1089
 
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: metacountregressor
3
- Version: 0.1.165
4
- Summary: Extensions for a Python package for estimation of count models.
3
+ Version: 0.1.168
4
+ Summary: Extensive Testing for Estimation of Data Count Models
5
5
  Home-page: https://github.com/zahern/CountDataEstimation
6
6
  Author: Zeke Ahern
7
7
  Author-email: z.ahern@qut.edu.au
8
- License: QUT
8
+ License: MIT
9
9
  Requires-Python: >=3.10
10
10
  Description-Content-Type: text/markdown
11
11
  License-File: LICENSE.txt
@@ -13,6 +13,10 @@ Requires-Dist: numpy>=1.13.1
13
13
  Requires-Dist: scipy>=1.0.0
14
14
  Requires-Dist: requests
15
15
  Requires-Dist: latextable
16
+ Requires-Dist: pandas
17
+ Requires-Dist: scikit_learn>=1.4.1.post1
18
+ Requires-Dist: statsmodels
19
+ Requires-Dist: psustil
16
20
  Dynamic: author
17
21
  Dynamic: author-email
18
22
  Dynamic: description
@@ -0,0 +1,8 @@
1
+ numpy>=1.13.1
2
+ scipy>=1.0.0
3
+ requests
4
+ latextable
5
+ pandas
6
+ scikit_learn>=1.4.1.post1
7
+ statsmodels
8
+ psustil
@@ -48,13 +48,13 @@ with open('version.txt', 'w') as f:
48
48
  setuptools.setup(
49
49
  name='metacountregressor',
50
50
  version=new_version,
51
- description='Extensions for a Python package for estimation of count models.',
51
+ description='Extensive Testing for Estimation of Data Count Models',
52
52
  long_description=long_description,
53
53
  long_description_content_type='text/markdown', # Specify the content type as Markdown
54
54
  url='https://github.com/zahern/CountDataEstimation',
55
55
  author='Zeke Ahern',
56
56
  author_email='z.ahern@qut.edu.au',
57
- license='QUT',
57
+ license='MIT',
58
58
  packages=['metacountregressor'],
59
59
  zip_safe=False,
60
60
  python_requires='>=3.10',
@@ -62,6 +62,10 @@ setuptools.setup(
62
62
  'numpy>=1.13.1',
63
63
  'scipy>=1.0.0',
64
64
  'requests',
65
- 'latextable'
65
+ 'latextable',
66
+ 'pandas',
67
+ 'scikit_learn>=1.4.1.post1',
68
+ 'statsmodels',
69
+ 'psustil'
66
70
  ]
67
71
  )
@@ -1,4 +0,0 @@
1
- numpy>=1.13.1
2
- scipy>=1.0.0
3
- requests
4
- latextable