Skip to content

Conversation

RomeoV
Copy link

@RomeoV RomeoV commented Sep 2, 2025

Summary

Fixes incorrect keyword argument usage for the name parameter in createexperiment function calls in both the tutorial and example code.

Changes

  • Fixed docs/src/tutorial.md:75: Changed createexperiment(mlf; name="price-paths") to createexperiment(mlf, "price-paths")
  • Fixed examples/simple-with-mlflow.jl:24: Applied same correction

Problem

The tutorial and examples used incorrect syntax:

createexperiment(mlf; name="price-paths")  # ❌ Wrong

But the actual method signature requires name as a positional argument:

createexperiment(instance::MLFlow, name::String; artifact_location, tags)

Solution

Updated to correct syntax:

createexperiment(mlf, "price-paths")  # ✅ Correct

Impact

  • Fixes MethodError that users encounter when following the tutorial
  • Makes the tutorial examples functional
  • Resolves the first API call failure in the learning path

Test plan

  • Verified method signature using julia --project -e "using MLFlowClient; methods(createexperiment)"
  • Confirmed syntax matches actual function signature
  • Both tutorial and example files updated consistently

Fixes #62

🤖 Generated with Claude Code

@RomeoV RomeoV mentioned this pull request Sep 3, 2025
Fixes incorrect keyword argument usage for the 'name' parameter.
The createexperiment function requires 'name' as a positional argument,
not a keyword argument.

Before: createexperiment(mlf; name="price-paths")
After:  createexperiment(mlf, "price-paths")

Fixes JuliaAI#62

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@RomeoV RomeoV force-pushed the fix-createexperiment-tutorial-syntax branch from ac5cd85 to e9af669 Compare September 3, 2025 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tutorial uses incorrect createexperiment API syntax
1 participant