unable to set holiday country parameter in Forecastingparameters when running Auto-ml from Python Notebook in azure ml studio

Muhammad Ali 6 Reputation points
2021-08-30T12:45:08.67+00:00

As the question suggests, I am trying to setup an Azure Auto-ML experiment from Jupyter Notebook from Azure ML Workspace, and trying to configure the holiday country for the forecasting parameters.

MSDN for ForecastingParameters Class suggests all the Holiday Country related parameters have been deprecated.

I have also tried using the parameter for Holiday Country in the AutoMLConfig but in MSDN the country parameter has also been deprecated. AutoMLConfig AutoMLConfig

Does anyone know how can I use Country Region settings in either ForecastingParameters or AutoMLConfig?

My Attempt with Forecasting Parameters:

 forecastingParam_dict = {   'time_column_name':'DateColumn',  
                            'forecast_horizon':365,  
                            'time_series_id_column_names': 'GroupColumn',  
                            'target_lags':None,  
                            'feature_lags':None,  
                            'target_rolling_window_size':None,  
                            'holiday_country':'GB',                             # <-- Tried both values with no luck  
                            'country_or_region_for_holidays':'GB',              # <-- Tried both values with no luck  
                            'use_stl':'season_trend',  
                            'short_series_handling':True,  
                            'short_series_handling_configuration': 'auto',  
                            'freq':'D',  
                            'target_aggregation_function':None,  
                            'validate_parameters':True,  
                }   
  
  
fcpm = ForecastingParameters.from_parameters_dict(forecastingParam_dict,  
                                                  validate_params=True ,  
                                                  show_deprecate_warnings=True)  

My Attempt with AutoMLConfig:

automl_settings = {  
                    'enable_early_stopping':True,  
                    'enable_ensembling':True,  
                    'enable_stack_ensembling':False,  
                    'ensemble_iterations':15,  
                    'enable_onnx_compatible_models':False,  
                    'max_cores_per_iteration':-1,  
                    'send_telemetry':True,  
                    'blacklist_algos':['TensorFlowDNN','TensorFlowLinearRegressor'],  
                    'enable_dnn':False,  
                    'enable_code_generation':False,  
                    'experiment_exit_score':None,  
                    'experiment_timeout_minutes':360,  
                    'featurization':'auto',  
                    'is_timeseries':True,  
                    'iteration_timeout_minutes':360,  
                    'country_or_region':'GB',                 # <-- Tried both values with no luck  
                    'country_or_region_for_holidays':'GB',    # <-- Tried both values with no luck  
                    'max_concurrent_iterations':1,  
                    'metric_operation':'minimize',  
                    'model_explainability':True,  
                    'n_cross_validations':5,  
                    'primary_metric':'normalized_root_mean_squared_error',  
                    'task_type':'regression',  
                    'validation_size':None,  
                    'test_size':None,  
                    'label_column_name':'Sales',  
                    'target_lags':None,  
                    'enable_batch_run':True,  
                    'enable_run_restructure':True  
                    }  
Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,664 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ramr-msft 17,641 Reputation points
    2021-08-31T16:01:28.277+00:00

    @Muhammad Ali Thanks for the question. Can you please add more details about the error that you are getting. Please check the following BikeShare Demand Forecasting sample using Automated Machine Learning. If you are still facing an issue we would recommend raising an issue in the following Machine leaning notebooks link.