Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The provided component 'NoPreprocessing' for the key 'data_preprocessor' in the 'include' argument is not valid #1745

Open
CamiloMartinezM opened this issue Oct 26, 2024 · 0 comments

Comments

@CamiloMartinezM
Copy link

Describe the bug

The documentation specifies that we should go to this example, where it is shown that to turn off data preprocessing, we should use include={"data_preprocessor": ["NoPreprocessing"]}, but that option doesn't seem to exist. Is this an error on the documentation and is there another option to specify this?

To Reproduce

Steps to reproduce the behavior:

import sklearn.datasets
import sklearn.metrics
import autosklearn.classification

X, y = sklearn.datasets.load_iris(return_X_y=True)
X_train, X_test, y_train, y_test = sklearn.model_selection.train_test_split(
    X, y, random_state=1
)

automl = autosklearn.classification.AutoSklearnClassifier(
    time_left_for_this_task=120,
    per_run_time_limit=30,
    tmp_folder="./tmp/autosklearn_classification_example_tmp",
    include={"data_preprocessor": ["NoPreprocessing"]},
)
automl.fit(X_train, y_train, dataset_name="iris")

Expected behavior

It should fit normally.

Actual behavior, stacktrace or logfile

I am getting the following error: ValueError: The provided component 'NoPreprocessing' for the key 'data_preprocessor' in the 'include' argument is not valid. The supported components for the step 'data_preprocessor' for this task are ['feature_type']

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[14], [line 7](vscode-notebook-cell:?execution_count=14&line=7)
      [1](vscode-notebook-cell:?execution_count=14&line=1) automl = autosklearn.classification.AutoSklearnClassifier(
      [2](vscode-notebook-cell:?execution_count=14&line=2)     time_left_for_this_task=120,
      [3](vscode-notebook-cell:?execution_count=14&line=3)     per_run_time_limit=30,
      [4](vscode-notebook-cell:?execution_count=14&line=4)     tmp_folder="./tmp/autosklearn_classification_example_tmp",
      [5](vscode-notebook-cell:?execution_count=14&line=5)     include={"data_preprocessor": ["NoPreprocessing"]},
      [6](vscode-notebook-cell:?execution_count=14&line=6) )
----> [7](vscode-notebook-cell:?execution_count=14&line=7) automl.fit(X_train, y_train, dataset_name="iris")

File ~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/estimators.py:1448, in AutoSklearnClassifier.fit(self, X, y, X_test, y_test, feat_type, dataset_name)
   [1445](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/estimators.py:1445) # remember target type for using in predict_proba later.
   [1446](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/estimators.py:1446) self.target_type = target_type
-> [1448](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/estimators.py:1448) super().fit(
   [1449](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/estimators.py:1449)     X=X,
   [1450](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/estimators.py:1450)     y=y,
   [1451](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/estimators.py:1451)     X_test=X_test,
   [1452](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/estimators.py:1452)     y_test=y_test,
   [1453](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/estimators.py:1453)     feat_type=feat_type,
   [1454](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/estimators.py:1454)     dataset_name=dataset_name,
   [1455](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/estimators.py:1455) )
   [1457](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/estimators.py:1457) # After fit, a classifier is expected to define classes_
   [1458](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/estimators.py:1458) # A list of class labels known to the classifier, mapping each label
   [1459](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/estimators.py:1459) # to a numerical index used in the model representation our output.
   [1460](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/estimators.py:1460) self.classes_ = self.automl_.InputValidator.target_validator.classes_

File ~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/estimators.py:540, in AutoSklearnEstimator.fit(self, **kwargs)
    [538](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/estimators.py:538) if self.automl_ is None:
    [539](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/estimators.py:539)     self.automl_ = self.build_automl()
--> [540](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/estimators.py:540) self.automl_.fit(load_models=self.load_models, **kwargs)
    [542](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/estimators.py:542) return self

File ~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2304, in AutoMLClassifier.fit(self, X, y, X_test, y_test, feat_type, dataset_name, only_return_configuration_space, load_models)
   [2293](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2293) def fit(
   [2294](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2294)     self,
   [2295](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2295)     X: SUPPORTED_FEAT_TYPES,
   (...)
   [2302](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2302)     load_models: bool = True,
   [2303](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2303) ) -> AutoMLClassifier:
-> [2304](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2304)     return super().fit(
   [2305](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2305)         X,
   [2306](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2306)         y,
   [2307](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2307)         X_test=X_test,
   [2308](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2308)         y_test=y_test,
   [2309](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2309)         feat_type=feat_type,
   [2310](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2310)         dataset_name=dataset_name,
   [2311](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2311)         only_return_configuration_space=only_return_configuration_space,
   [2312](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2312)         load_models=load_models,
   [2313](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2313)         is_classification=True,
   [2314](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2314)     )

File ~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:962, in AutoML.fit(self, X, y, task, X_test, y_test, feat_type, dataset_name, only_return_configuration_space, load_models, is_classification)
    [959](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:959) except Exception as e:
    [960](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:960)     # This will be called before the _fit_cleanup
    [961](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:961)     self._logger.exception(e)
--> [962](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:962)     raise e
    [963](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:963) finally:
    [964](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:964)     self._fit_cleanup()

File ~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:751, in AutoML.fit(self, X, y, task, X_test, y_test, feat_type, dataset_name, only_return_configuration_space, load_models, is_classification)
    [743](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:743) # = Create a searchspace
    [744](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:744) # Do this before One Hot Encoding to make sure that it creates a
    [745](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:745) # search space for a dense classifier even if one hot encoding would
   (...)
    [748](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:748) # like this we can't use some of the preprocessing methods in case
    [749](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:749) # the data became sparse)
    [750](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:750) with self._stopwatch.time("Create Search space"):
--> [751](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:751)     self.configuration_space, configspace_path = self._create_search_space(
    [752](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:752)         self._backend.temporary_directory,
    [753](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:753)         self._backend,
    [754](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:754)         datamanager,
    [755](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:755)         include=self._include,
    [756](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:756)         exclude=self._exclude,
    [757](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:757)     )
    [759](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:759) if only_return_configuration_space:
    [760](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:760)     return self.configuration_space

File ~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2252, in AutoML._create_search_space(self, tmp_dir, backend, datamanager, include, exclude)
   [2243](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2243) def _create_search_space(
   [2244](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2244)     self,
   [2245](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2245)     tmp_dir: str,
   (...)
   [2249](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2249)     exclude: Optional[Mapping[str, list[str]]] = None,
   [2250](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2250) ) -> Tuple[ConfigurationSpace, str]:
   [2251](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2251)     configspace_path = os.path.join(tmp_dir, "space.json")
-> [2252](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2252)     configuration_space = pipeline.get_configuration_space(
   [2253](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2253)         datamanager,
   [2254](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2254)         include=include,
   [2255](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2255)         exclude=exclude,
   [2256](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2256)     )
   [2257](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2257)     backend.write_txt_file(
   [2258](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2258)         configspace_path,
   [2259](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2259)         cs_json.write(configuration_space),
   [2260](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2260)         "Configuration space",
   [2261](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2261)     )
   [2263](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/automl.py:2263)     return configuration_space, configspace_path

File ~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/util/pipeline.py:53, in get_configuration_space(datamanager, include, exclude, random_state)
     [49](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/util/pipeline.py:49)     return _get_regression_configuration_space(
     [50](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/util/pipeline.py:50)         datamanager, include, exclude, random_state
     [51](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/util/pipeline.py:51)     )
     [52](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/util/pipeline.py:52) else:
---> [53](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/util/pipeline.py:53)     return _get_classification_configuration_space(
     [54](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/util/pipeline.py:54)         datamanager, include, exclude, random_state
     [55](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/util/pipeline.py:55)     )

File ~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/util/pipeline.py:155, in _get_classification_configuration_space(datamanager, include, exclude, random_state)
    [147](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/util/pipeline.py:147)     sparse = True
    [149](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/util/pipeline.py:149) dataset_properties = {
    [150](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/util/pipeline.py:150)     "multilabel": multilabel,
    [151](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/util/pipeline.py:151)     "multiclass": multiclass,
    [152](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/util/pipeline.py:152)     "sparse": sparse,
    [153](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/util/pipeline.py:153) }
--> [155](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/util/pipeline.py:155) return SimpleClassificationPipeline(
    [156](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/util/pipeline.py:156)     feat_type=datamanager.feat_type,
    [157](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/util/pipeline.py:157)     dataset_properties=dataset_properties,
    [158](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/util/pipeline.py:158)     include=include,
    [159](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/util/pipeline.py:159)     exclude=exclude,
    [160](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/util/pipeline.py:160)     random_state=random_state,
    [161](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/util/pipeline.py:161) ).get_hyperparameter_search_space(feat_type=datamanager.feat_type)

File ~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/classification.py:88, in SimpleClassificationPipeline.__init__(self, config, feat_type, steps, dataset_properties, include, exclude, random_state, init_params)
     [86](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/classification.py:86) if "target_type" not in dataset_properties:
     [87](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/classification.py:87)     dataset_properties["target_type"] = "classification"
---> [88](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/classification.py:88) super().__init__(
     [89](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/classification.py:89)     feat_type=feat_type,
     [90](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/classification.py:90)     config=config,
     [91](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/classification.py:91)     steps=steps,
     [92](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/classification.py:92)     dataset_properties=dataset_properties,
     [93](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/classification.py:93)     include=include,
     [94](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/classification.py:94)     exclude=exclude,
     [95](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/classification.py:95)     random_state=random_state,
     [96](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/classification.py:96)     init_params=init_params,
     [97](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/classification.py:97) )

File ~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/base.py:64, in BasePipeline.__init__(self, config, feat_type, steps, dataset_properties, include, exclude, random_state, init_params)
     [61](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/base.py:61) else:
     [62](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/base.py:62)     self.steps = steps
---> [64](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/base.py:64) self._validate_include_exclude_params()
     [66](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/base.py:66) self.config_space = self.get_hyperparameter_search_space(feat_type=feat_type)
     [68](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/base.py:68) if config is None:

File ~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/base.py:609, in BasePipeline._validate_include_exclude_params(self)
    [607](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/base.py:607) for component in candidate_components:
    [608](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/base.py:608)     if component not in available_components:
--> [609](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/base.py:609)         raise ValueError(
    [610](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/base.py:610)             "The provided component '{}' for the key '{}' in the '{}'"
    [611](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/base.py:611)             " argument is not valid. The supported components for the"
    [612](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/base.py:612)             " step '{}' for this task are {}".format(
    [613](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/base.py:613)                 component, key, arg, key, available_components
    [614](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/base.py:614)             )
    [615](https://file+.vscode-resource.vscode-cdn.net/home/camilo/Documentos/EXPECT_Gestures/~/Documentos/EXPECT_Gestures/.conda/lib/python3.9/site-packages/autosklearn/pipeline/base.py:615)         )

ValueError: The provided component 'NoPreprocessing' for the key 'data_preprocessor' in the 'include' argument is not valid. The supported components for the step 'data_preprocessor' for this task are ['feature_type']

Environment and installation:

  • OS: Fedora 40
  • Is your installation in a virtual environment or conda environment?: conda
  • Python version: 3.9.20
  • Auto-sklearn version: 0.15.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant