metacountregressor 0.1.308__tar.gz → 0.1.310__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.
- {metacountregressor-0.1.308/metacountregressor.egg-info → metacountregressor-0.1.310}/PKG-INFO +1 -1
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor/helperprocess.py +5 -3
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor/solution.py +25 -26
- {metacountregressor-0.1.308 → metacountregressor-0.1.310/metacountregressor.egg-info}/PKG-INFO +1 -1
- metacountregressor-0.1.310/version.txt +1 -0
- metacountregressor-0.1.308/version.txt +0 -1
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/LICENSE.txt +0 -0
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/MANIFEST.in +0 -0
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/README.md +0 -0
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/README.rst +0 -0
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor/__init__.py +0 -0
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor/_device_cust.py +0 -0
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor/app_main.py +0 -0
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor/data_split_helper.py +0 -0
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor/halton.py +0 -0
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor/main.py +0 -0
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor/main_old.py +0 -0
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor/metaheuristics.py +0 -0
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor/pareto_file.py +0 -0
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor/pareto_logger__plot.py +0 -0
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor/setup.py +0 -0
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor/single_objective_finder.py +0 -0
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor/test_generated_paper2.py +0 -0
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor.egg-info/SOURCES.txt +0 -0
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor.egg-info/dependency_links.txt +0 -0
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor.egg-info/not-zip-safe +0 -0
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor.egg-info/requires.txt +0 -0
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor.egg-info/top_level.txt +0 -0
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/setup.cfg +0 -0
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/setup.py +0 -0
- {metacountregressor-0.1.308 → metacountregressor-0.1.310}/tests/test.py +0 -0
{metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor/helperprocess.py
RENAMED
@@ -414,10 +414,12 @@ def transform_dataframe(df, config):
|
|
414
414
|
data = data.apply(settings['apply_func'])
|
415
415
|
output_df[column] = data
|
416
416
|
elif settings['type'] == 'normalized':
|
417
|
+
if column in df.columns:
|
417
418
|
# Normalize the column
|
418
|
-
|
419
|
-
|
420
|
-
|
419
|
+
scaler = MinMaxScaler
|
420
|
+
output_df[column] = scaler.fit_transform(df[[column]]).flatten()
|
421
|
+
else:
|
422
|
+
print(f'config variable {column} is not in the data. Ignoring ...')
|
421
423
|
elif settings['type'] == 'none':
|
422
424
|
# Leave the column unchanged
|
423
425
|
if column in df.columns:
|
@@ -3549,37 +3549,27 @@ class ObjectiveFunction(object):
|
|
3549
3549
|
|
3550
3550
|
return inv_hess
|
3551
3551
|
|
3552
|
+
def _correlated_pos(self, correlation, varnames):
|
3553
|
+
if (isinstance(correlation, list)):
|
3554
|
+
correlationpos = [varnames.tolist().index(x) for x in
|
3555
|
+
varnames if x in correlation]
|
3556
|
+
uncorrelatedpos = [varnames.tolist().index(x) for x in
|
3557
|
+
varnames if x not in correlation]
|
3558
|
+
return
|
3559
|
+
|
3552
3560
|
def _chol_mat(self, correlationLength, br, Br_w, correlation):
|
3553
3561
|
# if correlation = True correlation pos is randpos, if list get correct pos
|
3554
|
-
|
3555
|
-
|
3556
|
-
|
3557
|
-
|
3558
|
-
varnames = np.asarray(varnames)
|
3559
|
-
randvars = ['c', 'd', 'e', 'f']
|
3560
|
-
correlation = ['e', 'f']
|
3561
|
-
if randvars:
|
3562
|
-
# Position of correlated variables within randvars
|
3563
|
-
correlationpos = [varnames.tolist().index(x)
|
3564
|
-
for x in varnames if x in randvars]
|
3565
|
-
if (isinstance(correlation, list)):
|
3566
|
-
self.correlationpos = [varnames.tolist().index(x) for x in
|
3567
|
-
varnames if x in correlation]
|
3568
|
-
self.uncorrelatedpos = [varnames.tolist().index(x) for x in
|
3569
|
-
varnames if x not in correlation]
|
3570
|
-
# if correlation = True correlation pos is randpos, if list get correct pos
|
3571
|
-
correlationpos = []
|
3572
|
-
else:
|
3573
|
-
varnames = self.none_handler(
|
3562
|
+
|
3563
|
+
|
3564
|
+
|
3565
|
+
varnames = self.none_handler(
|
3574
3566
|
self.rdm_fit) + self.none_handler(self.rdm_cor_fit)
|
3575
3567
|
|
3576
|
-
|
3568
|
+
|
3577
3569
|
# Kchol, permutations of specified params in correlation list
|
3578
|
-
|
3570
|
+
Kchol = int((len(correlation) *
|
3579
3571
|
(len(correlation) + 1)) / 2)
|
3580
|
-
|
3581
|
-
# i.e. correlation = True, Kchol permutations of random paramaters
|
3582
|
-
Kchol = int((len(br) * (len(br) + 1)) / 2)
|
3572
|
+
|
3583
3573
|
|
3584
3574
|
# creating cholesky matrix for the variance-covariance matrix
|
3585
3575
|
# all random variables not included in correlation will only
|
@@ -3608,7 +3598,16 @@ class ObjectiveFunction(object):
|
|
3608
3598
|
is_correlated = True
|
3609
3599
|
else:
|
3610
3600
|
is_correlated = False
|
3611
|
-
|
3601
|
+
try:
|
3602
|
+
rv_val = chol[chol_count] if is_correlated else br_w[rv_count]
|
3603
|
+
except:
|
3604
|
+
print(self.rdm_cor_fit, 'rdm_cor_fit')
|
3605
|
+
print(self.rdm_fit, 'rdm_fit')
|
3606
|
+
print('varnames', varnames)
|
3607
|
+
print(br, 'br')
|
3608
|
+
print(Br_w, 'Br_w')
|
3609
|
+
print(chol, 'chol')
|
3610
|
+
print(br_w, 'br_w')
|
3612
3611
|
chol_mat_temp[rv_count_all, rv_count_all] = rv_val
|
3613
3612
|
rv_count_all += 1
|
3614
3613
|
if is_correlated:
|
@@ -0,0 +1 @@
|
|
1
|
+
0.1.310
|
@@ -1 +0,0 @@
|
|
1
|
-
0.1.308
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor/_device_cust.py
RENAMED
File without changes
|
File without changes
|
{metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor/data_split_helper.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor/metaheuristics.py
RENAMED
File without changes
|
File without changes
|
{metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor/pareto_logger__plot.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor.egg-info/not-zip-safe
RENAMED
File without changes
|
{metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor.egg-info/requires.txt
RENAMED
File without changes
|
{metacountregressor-0.1.308 → metacountregressor-0.1.310}/metacountregressor.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|