Commit e9fa730
Fix logmetric array handling in tutorial and examples
Fixes type error where arrays were passed to logmetric instead of individual Float64 values.
Now properly logs each point in the price path as a separate metric with step parameters.
Before: logmetric(mlf, exprun, "pricepath$(idx)", pricepath) # ❌ Array
After: Loop through array and log individual values with step parameter
This approach:
- Maintains the original intent of logging price paths over time
- Uses MLFlow's step parameter to track the temporal sequence
- Creates proper time-series metrics that can be visualized in MLFlow UI
- Follows logmetric API requirements (Float64 values only)
Fixes #63
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent b5bad10 commit e9fa730
2 files changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
99 | 102 | | |
100 | 103 | | |
101 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
0 commit comments