How to specify Search Space in Auto-Sklearn

Solution 1:

You need to edit the config as specified in the docs.

In your case it would be something like:

cs = mdl.get_configuration_space(X, y)
config = cs.sample_configuration()
config._values['classifier:random_forest:n_estimators'] = 1000
pipeline, run_info, run_value = mdl.fit_pipeline(X=X_train, y=y_train,
                                                 config=config,
                                                 X_test=X_test, y_test=y_test)