metacountregressor 0.1.206__py3-none-any.whl → 0.1.207__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.
- metacountregressor/helperprocess.py +1 -1
- metacountregressor/metaheuristics.py +7 -0
- metacountregressor/solution.py +7 -6
- {metacountregressor-0.1.206.dist-info → metacountregressor-0.1.207.dist-info}/METADATA +1 -1
- {metacountregressor-0.1.206.dist-info → metacountregressor-0.1.207.dist-info}/RECORD +8 -8
- {metacountregressor-0.1.206.dist-info → metacountregressor-0.1.207.dist-info}/LICENSE.txt +0 -0
- {metacountregressor-0.1.206.dist-info → metacountregressor-0.1.207.dist-info}/WHEEL +0 -0
- {metacountregressor-0.1.206.dist-info → metacountregressor-0.1.207.dist-info}/top_level.txt +0 -0
|
@@ -415,7 +415,7 @@ def PCA_code(X, n_components=5):
|
|
|
415
415
|
return principalComponents
|
|
416
416
|
|
|
417
417
|
|
|
418
|
-
def interactions(df, keep=None, drop_this_perc=0.
|
|
418
|
+
def interactions(df, keep=None, drop_this_perc=0.5, interact = False):
|
|
419
419
|
full_columns = df.columns
|
|
420
420
|
if interact:
|
|
421
421
|
interactions_list = []
|
|
@@ -275,6 +275,13 @@ def harmony_search(objective_function, initial_harmonies=None, hyperparameters=N
|
|
|
275
275
|
Returns:
|
|
276
276
|
_type_: results for the harmony search algorithm in single or multi objective
|
|
277
277
|
"""
|
|
278
|
+
#set up objective function hyper
|
|
279
|
+
if kwargs.get('_hms') is not None:
|
|
280
|
+
objective_function._hms = kwargs.get('_hms')
|
|
281
|
+
if kwargs.get('_hmcr') is not None:
|
|
282
|
+
objective_function._hmcr = kwargs.get('_hmcr')
|
|
283
|
+
|
|
284
|
+
|
|
278
285
|
man = None
|
|
279
286
|
if 'Manual_Fit' in kwargs:
|
|
280
287
|
if kwargs['Manual_Fit'] is not None:
|
metacountregressor/solution.py
CHANGED
|
@@ -150,7 +150,7 @@ class ObjectiveFunction(object):
|
|
|
150
150
|
self.rdm_fit = None
|
|
151
151
|
self.rdm_cor_fit = None
|
|
152
152
|
self.dist_fit = None
|
|
153
|
-
|
|
153
|
+
self.rounding_point = kwargs.get('decimals_in_coeff', 2)
|
|
154
154
|
self.MAE = None
|
|
155
155
|
self.best_obj_1 = 1000000.0
|
|
156
156
|
self._obj_1 = kwargs.get('_obj_1', 'bic')
|
|
@@ -160,18 +160,18 @@ class ObjectiveFunction(object):
|
|
|
160
160
|
self.GP_parameter = 0
|
|
161
161
|
self.is_multi = kwargs.get('is_multi', False)
|
|
162
162
|
self.complexity_level = kwargs.get('complexity_level', 6)
|
|
163
|
-
self._max_iterations_improvement = 10000
|
|
163
|
+
self._max_iterations_improvement = kwargs.get("WIC",10000)
|
|
164
164
|
self.generated_sln = set()
|
|
165
165
|
self.ave_mae = 0
|
|
166
166
|
# defalt paramaters for hs #TODO unpack into harmony search class
|
|
167
167
|
self.algorithm = 'hs' # 'sa' 'de' also avialable
|
|
168
168
|
self._hms = 20
|
|
169
|
-
self._max_time = 60 * 60 * 24
|
|
170
|
-
self._hmcr = .5
|
|
169
|
+
self._max_time = kwargs.get('_max_time',.60 * 60 * 24)
|
|
170
|
+
self._hmcr = kwargs.get('_hmcr',.5)
|
|
171
171
|
self._par = 0.3 #dont think this gets useted
|
|
172
172
|
self._mpai = 1
|
|
173
173
|
self._max_imp = 100000
|
|
174
|
-
self._WIC =
|
|
174
|
+
self._WIC = kwargs.get("WIC",10000) # Number of Iterations without Multiobjective Improvement #tod chuck into solution
|
|
175
175
|
self._panels = None
|
|
176
176
|
self.is_multi = True
|
|
177
177
|
self.method_ll = 'Nelder-Mead-BFGS'
|
|
@@ -1146,7 +1146,8 @@ class ObjectiveFunction(object):
|
|
|
1146
1146
|
print(np.exp(self.coeff_[-1]))
|
|
1147
1147
|
#self.coeff_[-1] = np.exp(self.coeff_[-1]) # min possible value for negbinom
|
|
1148
1148
|
|
|
1149
|
-
|
|
1149
|
+
|
|
1150
|
+
self.coeff_ = [self.round_with_padding(x, self.rounding_point) for x in self.coeff_]
|
|
1150
1151
|
|
|
1151
1152
|
self.stderr = [self.round_with_padding(x, 2) for x in self.stderr]
|
|
1152
1153
|
self.zvalues = [self.round_with_padding(
|
|
@@ -3,18 +3,18 @@ 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=
|
|
6
|
+
metacountregressor/helperprocess.py,sha256=_g5j-p5cC5ajqdG0Ab1cSLR-CkzLBCcreIGPCZK1G9s,22157
|
|
7
7
|
metacountregressor/main.py,sha256=xfpKN2w0kePHp_Q2HOPjtG15PLEN1L3sEnDw1PHBquw,23668
|
|
8
8
|
metacountregressor/main_old.py,sha256=eTS4ygq27MnU-dZ_j983Ucb-D5XfbVF8OJQK2hVVLZc,24123
|
|
9
|
-
metacountregressor/metaheuristics.py,sha256=
|
|
9
|
+
metacountregressor/metaheuristics.py,sha256=N8RwP7Y7aNkSOxCusLwtcCx357RlDkVz84haxaQGwXc,106518
|
|
10
10
|
metacountregressor/pareto_file.py,sha256=whySaoPAUWYjyI8zo0hwAOa3rFk6SIUlHSpqZiLur0k,23096
|
|
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=
|
|
14
|
+
metacountregressor/solution.py,sha256=51_7HM-wKMsHPrp-TyMFqvA5MQJfN63gE58R1QNbVUk,283381
|
|
15
15
|
metacountregressor/test_generated_paper2.py,sha256=pwOoRzl1jJIIOUAAvbkT6HmmTQ81mwpsshn9SLdKOg8,3927
|
|
16
|
-
metacountregressor-0.1.
|
|
17
|
-
metacountregressor-0.1.
|
|
18
|
-
metacountregressor-0.1.
|
|
19
|
-
metacountregressor-0.1.
|
|
20
|
-
metacountregressor-0.1.
|
|
16
|
+
metacountregressor-0.1.207.dist-info/LICENSE.txt,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
17
|
+
metacountregressor-0.1.207.dist-info/METADATA,sha256=7PVaRp9kVHTlyax6tuLps9hwpBbgQKWbVCSmyv817u4,23536
|
|
18
|
+
metacountregressor-0.1.207.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
|
19
|
+
metacountregressor-0.1.207.dist-info/top_level.txt,sha256=zGG7UC5WIpr76gsFUpwJ4En2aCcoNTONBaS3OewwjR0,19
|
|
20
|
+
metacountregressor-0.1.207.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|