cancel
Showing results for 
Search instead for 
Did you mean: 
Machine Learning
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
Honored Contributor III
Honored Contributor III

@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")

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.