'TypeError: AutoMLConfig() takes no arguments in Azure Synapse

I am receiving below error in Azure synapse Pyspark notebook

TypeError: AutoMLConfig() takes no arguments

while running below code:

automl_settings = { "primary_metric": 'r2_score', "enable_early_stopping": True, "experiment_timeout_hours": 0.5, "max_cores_per_iteration": 1, "max_concurrent_iterations": 2, "enforce_time_on_windows": True, "exclude_nan_labels": True, "enable_tf": False, "verbosity": 20 }

automl_config = AutoMLConfig("task": 'regression', "label_column_name": label, "compute_target": compute_target, "featurization": 'auto', "training_data": train_data
**automl_settings)



Solution 1:[1]

You're using the wrong version of Apache spark pool. If you change to a pool with version 2.4, then it should fix your problem.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 user19088887