Skip to content

Instantly share code, notes, and snippets.

@kvnkho
Created January 13, 2022 03:14
Show Gist options
  • Save kvnkho/90bf256c134de03630497d644d0e63d9 to your computer and use it in GitHub Desktop.
Save kvnkho/90bf256c134de03630497d644d0e63d9 to your computer and use it in GitHub Desktop.
from prefect import Flow
with Flow("distributed") as flow:
X_train, X_test, y_train, y_test = create_data()
models = get_models()
training_runs = train_model.map(models, unmapped(X_train),
unmapped(X_test), unmapped(y_train),
unmapped(y_test))
get_results(training_runs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment