MachineLearningNotebooks icon indicating copy to clipboard operation
MachineLearningNotebooks copied to clipboard

Can't use AutoArima or Prophet for AutoMLConfig

Open tthpham opened this issue 6 years ago • 6 comments

The config we try:

automl_settings = {
    'time_column_name': time_column_name,
    'max_horizon': max_horizon,
}

automl_config = AutoMLConfig(task='forecasting',                             
                             primary_metric='normalized_root_mean_squared_error',
                             #blacklist_models = ['ExtremeRandomTrees', 'AutoArima', 'Prophet'],                             
                             whitelist_models=['Prophet'],
                             experiment_timeout_hours=0.3,
                             training_data=train,
                             label_column_name='demand',
                             compute_target=compute_target,
                             enable_early_stopping=True,
                             #enable_tf=True,
                             n_cross_validations=3,                             
                             verbosity=logging.INFO,
                            **automl_settings)

The error message:

ValidationException: ValidationException:
	Message: Validation error(s): [{
    "additional_properties": {},
    "code": "UserError",
    "message": "'iterations' value should be less than or equal to 'whitelisted_models' count, if 'whitelisted_models' is subset of ['AutoArima', 'Prophet']",

tthpham avatar May 20 '20 17:05 tthpham

@tthpham we will review your feedback and get back to your shortly. Thanks.

GiftA-MSFT avatar May 21 '20 04:05 GiftA-MSFT

@tthpham this is the expected behavior. Since we only recommend one iteration of prophet. If you only whitelist Prophet, then only 1 iteration will be run. We will work on defaulting this behavior so you don't run into this error.

Aniththa avatar Jun 02 '20 18:06 Aniththa

@Aniththa Thank you for the response. Unfortunately, I retried with this settings below (I have already tried with and without blacklist_models parameter) and have another error.

automl_settings = {
    'time_column_name': time_column_name,
    'max_horizon': max_horizon,
}

automl_config = AutoMLConfig(task='forecasting',  
                             iterations=1,
                             primary_metric='normalized_root_mean_squared_error',  
                             whitelist_models=whitelist_model,
                             blacklist_models=[],
                             experiment_timeout_minutes=45,
                             training_data=train_dataset,
                             label_column_name=target,
                             compute_target=compute_target,
                             enable_early_stopping=True,
                             n_cross_validations=3,                             
                             verbosity=logging.INFO,
                             drop_column_names=dropColumns,
                             enable_voting_ensemble=False, 
                             enable_stack_ensemble=False,
                             max_cores_per_iteration=-1,
                             enable_dnn=True,
                            **automl_settings)

The error message:

ConfigException: ConfigException:
	Message: blacklisted and whitelisted models are exactly the same.Please remove models from the blacklist or add models to the whitelist.
	InnerException: None
	ErrorResponse 
{
    "error": {
        "code": "UserError",
        "inner_error": {
            "code": "ValidationError"
        },
        "message": "blacklisted and whitelisted models are exactly the same.Please remove models from the blacklist or add models to the whitelist."
    }
}

tthpham avatar Jun 02 '20 19:06 tthpham

@tthpham did you specify the white list models: this doesnt look correct in the configuration: whitelist_models=whitelist_model, blacklist_models=[],

Aniththa avatar Jun 03 '20 19:06 Aniththa

Hello @tthpham, I was reaching out to see if you were unblocked from this issue?

cartacioS avatar Aug 06 '20 21:08 cartacioS

closing given no response - feel free to reopen

lostmygithubaccount avatar Aug 27 '20 19:08 lostmygithubaccount