new parameter AutoMLConfig "blacklist_models" not properly implemented.
docs say the parameter is called blacklist_models. blacklist_models wasn't working for me so I checked the logs and saw that the source is still using 'blacklist_algos'. Switching to old param name gave expected behavior.
Source Code
automl_config = AutoMLConfig(
task = 'classification',
num_classes = 2,
debug_log = 'automl_errors.log',
primary_metric = 'AUC_weighted',
iteration_timeout_minutes = 200,
max_cores_per_iteration = 2,
iterations = 1,
verbosity = logging.DEBUG,
X = X_train,
y = y_train,
X_valid = X_test,
y_valid = y_test,
path=project_folder,
preprocess = False,
whitelist_models = ['LightGBM'],
blacklist_models = ['SparseNormalizer', 'MaxAbsScaler'],
enable_ensembling = False,
enable_cache = False
)
local_run = experiment.submit(automl_config, show_output=True)
Log
see - blacklist_algos: [] below
2018-12-12 15:43:10,569 - INFO - 494 : Running with the following AutoML settings:
- name: automl-local-classification
- subscription_id: ff2e23ae-7d7c-4cbd-99b8-116bb94dca6e
- iterations: 1
- primary_metric: AUC_weighted
- compute_target: local
- task_type: classification
- validation_size: 0.0
- n_cross_validations: None
- y_min: None
- y_max: None
- num_classes: 2
- preprocess: False
- lag_length: 0
- is_timeseries: False
- max_cores_per_iteration: 2
- max_concurrent_iterations: 1
- iteration_timeout_minutes: 200
- mem_in_mb: None
- enforce_time_on_windows: True
- experiment_timeout_minutes: None
- experiment_exit_score: None
- whitelist_models: ['LightGBM', 'LightGBMClassifier']
- blacklist_algos: []
- auto_blacklist: True
- blacklist_samples_reached: False
- exclude_nan_labels: True
- verbosity: 10
- show_warnings: False
- model_explainability: False
- service_url: None
- sdk_url: None
- sdk_packages: None
- telemetry_verbosity: INFO
- send_telemetry: True
- spark_context: None
- spark_service: None
- metrics: None
- enable_ensembling: False
- ensemble_iterations: None
- enable_tf: True
- enable_cache: False
- enable_subsampling: False
- subsample_seed: None
- cost_mode: 0
- metric_operation: maximize
@chaoqian
Hi swanderz, can you use the latest SDK? blacklist_models is what we should use. algo is an internal term that we used for backward compatibility.
@swanderz Also, for your config, you are whitelisting LightGBM only, so ur Blacklisting won't take affect anyway, because only LightGBM pipelines will be returned.
@chaoqian thanks for getting back to me. My attempt to blacklist models really comes from #135 in that I wanted to disable all pre-processing algorithms