diff --git a/docs/src/tutorial.md b/docs/src/tutorial.md index d7565c3..f1aa50c 100644 --- a/docs/src/tutorial.md +++ b/docs/src/tutorial.md @@ -95,7 +95,10 @@ for (idx, pricepath) in enumerate(pricepaths) ylabel="Price" ) - logmetric(mlf, exprun, "pricepath$(idx)", pricepath) + # Log each point in the price path as a separate metric with step parameter + for (step, value) in enumerate(pricepath) + logmetric(mlf, exprun, "pricepath$(idx)", Float64(value); step=step-1) + end end # Save the price path plot as an image diff --git a/examples/simple-with-mlflow.jl b/examples/simple-with-mlflow.jl index 13990f0..6999480 100644 --- a/examples/simple-with-mlflow.jl +++ b/examples/simple-with-mlflow.jl @@ -44,7 +44,10 @@ for (idx, pricepath) in enumerate(pricepaths) ylabel="Price" ) - logmetric(mlf, exprun, "pricepath$(idx)", pricepath) + # Log each point in the price path as a separate metric with step parameter + for (step, value) in enumerate(pricepath) + logmetric(mlf, exprun, "pricepath$(idx)", Float64(value); step=step-1) + end end # Save the price path plot as an image