-
-
Save cosmic-cortex/6be20d0476eb39955164bb267080bbb9 to your computer and use it in GitHub Desktop.
MLFlow pseudocode example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mlflow | |
with mlflow.start_run(): | |
model = ... # define model here | |
mlflow.log_params(config) # log hyperparameter dictionary | |
for epoch_idx in range(num_epochs): | |
train_loss = train(model, data) | |
val_loss = validate(model, data) | |
mlflow.log_param("train_loss", train_loss) # log training loss | |
mlflow.log_param("val_loss", val_loss) # log validation loss | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment