metacountregressor 0.1.161__tar.gz → 0.1.163__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.161 → metacountregressor-0.1.163}/PKG-INFO +1 -1
- {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/helperprocess.py +2 -1
- {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/solution.py +4 -0
- {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor.egg-info/PKG-INFO +1 -1
- {metacountregressor-0.1.161 → metacountregressor-0.1.163}/LICENSE.txt +0 -0
- {metacountregressor-0.1.161 → metacountregressor-0.1.163}/README.rst +0 -0
- {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/__init__.py +0 -0
- {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/_device_cust.py +0 -0
- {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/app_main.py +0 -0
- {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/data_split_helper.py +0 -0
- {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/halton.py +0 -0
- {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/main.py +0 -0
- {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/main_old.py +0 -0
- {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/metaheuristics.py +0 -0
- {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/pareto_file.py +0 -0
- {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/pareto_logger__plot.py +0 -0
- {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/setup.py +0 -0
- {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/single_objective_finder.py +0 -0
- {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/test_generated_paper2.py +0 -0
- {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor.egg-info/SOURCES.txt +0 -0
- {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor.egg-info/dependency_links.txt +0 -0
- {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor.egg-info/not-zip-safe +0 -0
- {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor.egg-info/requires.txt +0 -0
- {metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor.egg-info/top_level.txt +0 -0
- {metacountregressor-0.1.161 → metacountregressor-0.1.163}/setup.cfg +0 -0
- {metacountregressor-0.1.161 → metacountregressor-0.1.163}/setup.py +0 -0
- {metacountregressor-0.1.161 → metacountregressor-0.1.163}/tests/test.py +0 -0
{metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/helperprocess.py
RENAMED
|
@@ -95,6 +95,7 @@ def findCorrelation(corr, cutoff=0.9, exact=None): """
|
|
|
95
95
|
findCorrelation(R1, cutoff=0.6, exact=True) # ['x1', 'x5', 'x4']
|
|
96
96
|
"""
|
|
97
97
|
|
|
98
|
+
|
|
98
99
|
def _findCorrelation_fast(corr, avg, cutoff):
|
|
99
100
|
|
|
100
101
|
combsAboveCutoff = corr.where(lambda x: (np.tril(x) == 0) & (x > cutoff)).stack().index
|
|
@@ -434,7 +435,7 @@ def interactions(df, keep=None, drop_this_perc=0.6, interact = False):
|
|
|
434
435
|
|
|
435
436
|
if missing_columns:
|
|
436
437
|
print(f"The following columns are not in the DataFrame and will be ignored: {missing_columns}")
|
|
437
|
-
keep = [col for col in keep if col not in
|
|
438
|
+
keep = [col for col in keep if col not in missing_columns]
|
|
438
439
|
df_corr = df.drop(columns=keep, errors='ignore', inplace=False) # Exclude `keep` columns
|
|
439
440
|
else:
|
|
440
441
|
df_corr = df
|
|
@@ -351,6 +351,7 @@ class ObjectiveFunction(object):
|
|
|
351
351
|
K = X.shape[1]
|
|
352
352
|
self.columns_names = X.columns
|
|
353
353
|
X = X.values.reshape(self.N_test, self.P_test, K)
|
|
354
|
+
X = X.astype('float')
|
|
354
355
|
self.group_halton_test = self.group_halton_test.reshape(self.N_test, self.P_test)[:, 0]
|
|
355
356
|
Y = Y.values.reshape(self.N_test, self.P_test, 1)
|
|
356
357
|
Y = Y.astype('float')
|
|
@@ -396,7 +397,9 @@ class ObjectiveFunction(object):
|
|
|
396
397
|
K = X.shape[1]
|
|
397
398
|
self.columns_names = X.columns
|
|
398
399
|
X = X.values.reshape(self.N_test, self.P_test, K)
|
|
400
|
+
X = X.astype('float')
|
|
399
401
|
Y = Y.values.reshape(self.N_test, self.P_test, 1)
|
|
402
|
+
Y = Y.astype('float')
|
|
400
403
|
self._x_data_test = X.copy()
|
|
401
404
|
self.y_data_test = Y.copy()
|
|
402
405
|
|
|
@@ -531,6 +534,7 @@ class ObjectiveFunction(object):
|
|
|
531
534
|
if self.is_multi:
|
|
532
535
|
self._offsets_test = self._x_data_test[:, :, val_od]
|
|
533
536
|
self._x_data_test = self.remove_offset(self._x_data_test, val_od)
|
|
537
|
+
print(self._offsets)
|
|
534
538
|
else:
|
|
535
539
|
self.initialize_empty_offsets()
|
|
536
540
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/_device_cust.py
RENAMED
|
File without changes
|
|
File without changes
|
{metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/data_split_helper.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/metaheuristics.py
RENAMED
|
File without changes
|
|
File without changes
|
{metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor/pareto_logger__plot.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor.egg-info/requires.txt
RENAMED
|
File without changes
|
{metacountregressor-0.1.161 → metacountregressor-0.1.163}/metacountregressor.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|