metacountregressor 0.1.143__tar.gz → 0.1.145__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/PKG-INFO +1 -1
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor/helperprocess.py +5 -3
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor.egg-info/PKG-INFO +1 -1
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/LICENSE.txt +0 -0
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/README.rst +0 -0
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor/__init__.py +0 -0
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor/_device_cust.py +0 -0
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor/app_main.py +0 -0
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor/data_split_helper.py +0 -0
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor/halton.py +0 -0
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor/main.py +0 -0
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor/main_old.py +0 -0
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor/metaheuristics.py +0 -0
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor/pareto_file.py +0 -0
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor/pareto_logger__plot.py +0 -0
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor/setup.py +0 -0
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor/single_objective_finder.py +0 -0
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor/solution.py +0 -0
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor/test_generated_paper2.py +0 -0
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor.egg-info/SOURCES.txt +0 -0
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor.egg-info/dependency_links.txt +0 -0
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor.egg-info/not-zip-safe +0 -0
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor.egg-info/requires.txt +0 -0
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor.egg-info/top_level.txt +0 -0
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/setup.cfg +0 -0
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/setup.py +0 -0
- {metacountregressor-0.1.143 → metacountregressor-0.1.145}/tests/test.py +0 -0
{metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor/helperprocess.py
RENAMED
@@ -390,7 +390,7 @@ def PCA_code(X, n_components=5):
|
|
390
390
|
|
391
391
|
|
392
392
|
def interactions(df, keep=None, drop_this_perc=0.6, interact = False):
|
393
|
-
|
393
|
+
full_columns = df.columns
|
394
394
|
if interact:
|
395
395
|
interactions_list = []
|
396
396
|
for i, var_i in enumerate(df.columns):
|
@@ -419,9 +419,11 @@ def interactions(df, keep=None, drop_this_perc=0.6, interact = False):
|
|
419
419
|
# Remove `keep` columns from the correlation matrix
|
420
420
|
if keep is not None:
|
421
421
|
missing_columns = [col for col in keep if col not in df.columns]
|
422
|
+
|
422
423
|
if missing_columns:
|
423
424
|
print(f"The following columns are not in the DataFrame and will be ignored: {missing_columns}")
|
424
|
-
|
425
|
+
keep = [col for col in keep if col not in df.columns]
|
426
|
+
df_corr = df.drop(columns=keep, errors='ignore', inplace=False) # Exclude `keep` columns
|
425
427
|
else:
|
426
428
|
df_corr = df
|
427
429
|
|
@@ -436,7 +438,7 @@ def interactions(df, keep=None, drop_this_perc=0.6, interact = False):
|
|
436
438
|
|
437
439
|
# Ensure `keep` columns are not dropped
|
438
440
|
if keep is not None:
|
439
|
-
to_drop = [column for column in to_drop if column not in
|
441
|
+
to_drop = [column for column in to_drop if column not in full_columns]
|
440
442
|
|
441
443
|
# Drop the identified features
|
442
444
|
df.drop(to_drop, axis=1, inplace=True)
|
File without changes
|
File without changes
|
File without changes
|
{metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor/_device_cust.py
RENAMED
File without changes
|
File without changes
|
{metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor/data_split_helper.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor/metaheuristics.py
RENAMED
File without changes
|
File without changes
|
{metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor/pareto_logger__plot.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor.egg-info/not-zip-safe
RENAMED
File without changes
|
{metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor.egg-info/requires.txt
RENAMED
File without changes
|
{metacountregressor-0.1.143 → metacountregressor-0.1.145}/metacountregressor.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|