cancel
Showing results for 
Search instead for 
Did you mean: 
Machine Learning
Dive into the world of machine learning on the Databricks platform. Explore discussions on algorithms, model training, deployment, and more. Connect with ML enthusiasts and experts.
cancel
Showing results for 
Search instead for 
Did you mean: 

Run with UUID *** is already active when running automl

ALIDI
New Contributor II

Hi,

I'm tried using databricks autoML API following the documentation and example notebook. The documentation and example are pretty straight forward howeve... I encountered the following error:

Exception: Run with UUID 1315376a0cbb4657b5d23fa552efba4b is already active. To start a new run, first end the current run with mlflow.end_run(). To start a nested run, call start_run with nested=True

The code I used:

mlflow.end_run()
mlflow.start_run(nested=True,run_name='autoML')
mlflow.autolog()
train_df = pd.DataFrame(preprocessor1.fit_transform(X_train,y_train),columns=preprocessor1.get_feature_names_out())
train_df['target'] = y_train.tolist()
summary = automl.classify(train_df, target_col="target", timeout_minutes=30)

Any ideas? Thanks.

1 REPLY 1

shan_chandra
Databricks Employee
Databricks Employee

@Al IDI​ - could you please let us know the ML runtime version you have ran into this?

could you please try setting and see if it works?

spark.conf.set("spark.databricks.mlflow.trackHyperopt.enabled", "false")

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group