# NOT RUN {
library(mlflow)
# save simple model which roundtrips data as prediction
mlflow_save_model(function(df) df, "mlflow_roundtrip")
# save data as json
jsonlite::write_json(iris, "iris.json")
# predict existing model from json data
mlflow_rfunc_predict("mlflow_roundtrip", "iris.json")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab