Skip to content

Commit 6d9bfeb

Browse files
authored
Merge pull request #52 from vonpetersenn/main
Improve documentation clarity for `tags` variable and update type in function definition.
2 parents 5345a0b + 869886e commit 6d9bfeb

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/experiments.jl

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ Creates an MLFlow experiment.
77
- `mlf`: [`MLFlow`](@ref) configuration.
88
- `name`: experiment name. If not specified, MLFlow sets it.
99
- `artifact_location`: directory where artifacts of this experiment will be stored. If not specified, MLFlow uses its default configuration.
10-
- `tags`: a Dictionary of key-values which tag the experiment.
10+
- `tags`: a Vector of Dictionaries which tag the experiment.
11+
- example tags: [Dict("key" => "foo", "value" => "bar"), Dict("key" => "missy", "value" => "gala")]
1112
1213
# Returns
1314
An object of type [`MLFlowExperiment`](@ref).
@@ -97,7 +98,8 @@ Gets an experiment if one alrady exists, or creates a new one.
9798
- `mlf`: [`MLFlow`](@ref) configuration.
9899
- `experiment_name`: Experiment name.
99100
- `artifact_location`: directory where artifacts of this experiment will be stored. If not specified, MLFlow uses its default configuration.
100-
- `tags`: a Dictionary of key-values which tag the experiment.
101+
- `tags`: a Vector of Dictionaries which tag the experiment.
102+
- example tags: [Dict("key" => "foo", "value" => "bar"), Dict("key" => "missy", "value" => "gala")]
101103
102104
# Returns
103105
An instance of type [`MLFlowExperiment`](@ref)

src/runs.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ Creates a run associated to an experiment.
1010
# Keywords
1111
- `run_name`: run name. If not specified, MLFlow sets it.
1212
- `start_time`: if provided, must be a UNIX timestamp in milliseconds. By default, set to current time.
13-
- `tags`: if provided, must be a key-value structure such as a dictionary.
13+
- `tags`: if provided, must be a key-value structure such as for example:
14+
- [Dict("key" => "foo", "value" => "bar"), Dict("key" => "missy", "value" => "gala")]
1415
1516
# Returns
1617
- an instance of type [`MLFlowRun`](@ref)

0 commit comments

Comments
 (0)