|
1 | 1 | """
|
2 |
| - createexperiment(mlf::MLFlow; name=missing, artifact_location=missing, tags=missing) |
| 2 | + createexperiment(mlf::MLFlow; name=missing, artifact_location=missing, tags::Vector{Dict{String, String}}=missing) |
3 | 3 |
|
4 | 4 | Creates an MLFlow experiment.
|
5 | 5 |
|
6 | 6 | # Arguments
|
7 | 7 | - `mlf`: [`MLFlow`](@ref) configuration.
|
8 | 8 | - `name`: experiment name. If not specified, MLFlow sets it.
|
9 | 9 | - `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")] |
11 | 12 |
|
12 | 13 | # Returns
|
13 | 14 | An object of type [`MLFlowExperiment`](@ref).
|
14 | 15 |
|
15 | 16 | """
|
16 |
| -function createexperiment(mlf::MLFlow; name=missing, artifact_location=missing, tags=missing) |
| 17 | +function createexperiment(mlf::MLFlow; name=missing, artifact_location=missing, tags::Vector{Dict{String, String}}=missing) |
17 | 18 | endpoint = "experiments/create"
|
18 | 19 |
|
19 | 20 | if ismissing(name)
|
@@ -89,21 +90,22 @@ function getexperiment(mlf::MLFlow, experiment_name::String)
|
89 | 90 | end
|
90 | 91 |
|
91 | 92 | """
|
92 |
| - getorcreateexperiment(mlf::MLFlow, experiment_name::String; artifact_location=missing, tags=missing) |
| 93 | + getorcreateexperiment(mlf::MLFlow, experiment_name::String; artifact_location=missing, tags::Vector{Dict{String, String}}=missing) |
93 | 94 |
|
94 | 95 | Gets an experiment if one alrady exists, or creates a new one.
|
95 | 96 |
|
96 | 97 | # Arguments
|
97 | 98 | - `mlf`: [`MLFlow`](@ref) configuration.
|
98 | 99 | - `experiment_name`: Experiment name.
|
99 | 100 | - `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")] |
101 | 103 |
|
102 | 104 | # Returns
|
103 | 105 | An instance of type [`MLFlowExperiment`](@ref)
|
104 | 106 |
|
105 | 107 | """
|
106 |
| -function getorcreateexperiment(mlf::MLFlow, experiment_name::String; artifact_location=missing, tags=missing) |
| 108 | +function getorcreateexperiment(mlf::MLFlow, experiment_name::String; artifact_location=missing, tags::Vector{Dict{String, String}}=missing) |
107 | 109 | experiment = getexperiment(mlf, experiment_name)
|
108 | 110 |
|
109 | 111 | if ismissing(experiment)
|
|
0 commit comments