dfd23ba635f59f0dbc2c0cdf04445e5f6eda3c66,AutoSklearn/autosklearn.py,AutoSklearnClassifier,fit,#AutoSklearnClassifier#Any#Any#,84
Before Change
split(":")[1]
parameters[name_] = instantiated_hyperparameter.value
random_state = check_random_state(self.random_state)
self._estimator = components.classification_components._classifiers\
[name](random_state=random_state, **parameters)
self._validate_input_X(X)
self._validate_input_Y(Y)
preprocessor = self.configuration["preprocessor"]
if preprocessor.value != "None":
preproc_name = preprocessor.value
preproc_params = {}
for instantiated_hyperparameter in self.configuration:
if not instantiated_hyperparameter.hyperparameter.name\
.startswith(preproc_name):
continue
if isinstance(instantiated_hyperparameter, InactiveHyperparameter):
continue
name_ = instantiated_hyperparameter.hyperparameter.name. \
split(":")[1]
preproc_params[name_] = instantiated_hyperparameter.value
self._preprocessor = components.preprocessing_components.\
_preprocessors[preproc_name](random_state=random_state, **preproc_params)
self._preprocessor.fit(X, Y)
X = self._preprocessor.transform(X)
self._estimator.fit(X, Y)
return self
After Change
preprocessor_object = components.preprocessing_components. \
_preprocessors[preproc_name](random_state=self.random_state,
**preproc_params)
steps.append((preproc_name, preprocessor_object))
// Extract Hyperparameters from the configuration object
classifier_name = self.configuration["classifier"].value
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: automl/auto-sklearn
Commit Name: dfd23ba635f59f0dbc2c0cdf04445e5f6eda3c66
Time: 2014-12-11
Author: feurerm@informatik.uni-freiburg.de
File Name: AutoSklearn/autosklearn.py
Class Name: AutoSklearnClassifier
Method Name: fit
Project Name: scikit-learn-contrib/lightning
Commit Name: c765d1e7e8af81d5a09b53e592d768d7318c963a
Time: 2012-01-12
Author: mathieu@mblondel.org
File Name: lightning/tests/test_primal.py
Class Name:
Method Name:
Project Name: scipy/scipy
Commit Name: e5df4608b3ba40133087db882539945f165b1d5c
Time: 2021-02-02
Author: roy.pamphile@gmail.com
File Name: doc/source/tutorial/stats/plots/qmc_plot_mc_qmc.py
Class Name:
Method Name: