evalml icon indicating copy to clipboard operation
evalml copied to clipboard

Trained pipelines must be unique but get_pipeline() returns same pipeline names

Open ZacharakisAndreas opened this issue 2 years ago • 0 comments

I want to store all the pipelines of an analysis trained using the train_pipelines() function. However when iterating through all the pipelines i get the following error:

ValueError: All pipeline names must be unique. The names '...', '...', '...' were repeated.

I am using the following code:

from evalml.automl import AutoMLSearch

automl = AutoMLSearch(X_train=X_train, y_train=y_train, problem_type='binary', max_time=100)
automl.search()
result = automl.train_pipelines(
            [
                automl.get_pipeline(i)
                for i in range(len(automl._results["search_order"]))
            ]
        )
print(result)

ZacharakisAndreas avatar May 30 '23 14:05 ZacharakisAndreas