evalml
evalml copied to clipboard
Trained pipelines must be unique but get_pipeline() returns same pipeline names
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)