Fix logmetric array handling in tutorial and examples #67
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes type error where arrays were passed to
logmetric
instead of individualFloat64
values. Now properly logs each point in the price path as a separate metric with step parameters.Changes
docs/src/tutorial.md:98-101
: Replaced singlelogmetric
call with loop through array valuesexamples/simple-with-mlflow.jl:47-50
: Applied same correctionProblem
The tutorial and examples attempted to log entire arrays:
But
logmetric
only accepts singleFloat64
values:Solution
Updated to log each array element individually with step parameter:
Benefits
logmetric
API requirementsImpact
Test plan
logmetric
method signature requiresFloat64
valuesFixes #63
🤖 Generated with Claude Code