Commit 5aca1789 authored by Jan-Peter Ceglarek's avatar Jan-Peter Ceglarek

extraction: erased old code debris

parent f8cf748f
Pipeline #130036530 failed with stages
in 4 minutes and 1 second
......@@ -28,7 +28,6 @@ def create_list_of_transformers(input_lags, transformer_class):
def extract_best_features(data_file,
transformers,
selection_methods,
features_file=None,
target_column=None,
time_unit=None):
......@@ -90,11 +89,8 @@ def extract_best_features(data_file,
data = pd.concat([data, data_features], axis=1)
# Preparing pipeline for extractiong of best features
selector = FeatureImportanceOptimization(transformers, selection_methods)
# Compares each feature selection method
# comparator = FeatureImportanceOptimization(selection_methods)
pipeline = Pipeline([("FeatureImportances", selector)]) #,
# [("SelectingMethod", comparator)])
selector = FeatureImportanceOptimization(transformers)
pipeline = Pipeline([("FeatureImportances", selector)])
# Running the pipeline
features_importances = pipeline.fit(data_features, data_target)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment