|
1 | 1 | """
|
2 |
| - MLFlowExperiment |
3 |
| -
|
4 |
| -Represents an MLFlow experiment. |
| 2 | + Experiment |
5 | 3 |
|
6 | 4 | # Fields
|
7 |
| -- `name::String`: experiment name. |
8 |
| -- `lifecycle_stage::String`: life cycle stage, one of ["active", "deleted"] |
9 |
| -- `experiment_id::Integer`: experiment identifier. |
10 |
| -- `tags::Any`: list of tags. |
11 |
| -- `artifact_location::String`: where are experiment artifacts stored. |
12 |
| -
|
13 |
| -# Constructors |
14 |
| -
|
15 |
| -- `MLFlowExperiment(name, lifecycle_stage, experiment_id, tags, artifact_location)` |
16 |
| -- `MLFlowExperiment(exp::Dict{String,Any})` |
17 |
| -
|
| 5 | +- `experiment_id::Integer`: Unique identifier for the experiment. |
| 6 | +- `name::String`: Human readable name that identifies the experiment. |
| 7 | +- `artifact_location::String`: Location where artifacts for the experiment are |
| 8 | +stored. |
| 9 | +- `lifecycle_stage::String`: Current life cycle stage of the experiment: |
| 10 | +“active” or “deleted”. Deleted experiments are not returned by APIs. |
| 11 | +- `last_update_time::Int64`: Last update time. |
| 12 | +- `creation_time::Int64`: Creation time. |
| 13 | +- `tags::Array{Tag}`: Additional metadata key-value pairs. |
18 | 14 | """
|
19 |
| -struct MLFlowExperiment |
| 15 | +struct Experiment |
| 16 | + experiment_id::String |
20 | 17 | name::String
|
21 |
| - lifecycle_stage::String |
22 |
| - experiment_id::Integer |
23 |
| - tags::Any |
24 | 18 | artifact_location::String
|
| 19 | + lifecycle_stage::String |
| 20 | + last_update_time::Int64 |
| 21 | + creation_time::Int64 |
| 22 | + tags::Array{Tag} |
25 | 23 | end
|
26 |
| -function MLFlowExperiment(exp::Dict{String,Any}) |
27 |
| - name = get(exp, "name", missing) |
28 |
| - lifecycle_stage = get(exp, "lifecycle_stage", missing) |
29 |
| - experiment_id = parse(Int, get(exp, "experiment_id", missing)) |
30 |
| - tags = get(exp, "tags", missing) |
31 |
| - artifact_location = get(exp, "artifact_location", missing) |
32 |
| - MLFlowExperiment(name, lifecycle_stage, experiment_id, tags, artifact_location) |
33 |
| -end |
34 |
| -Base.show(io::IO, t::MLFlowExperiment) = show(io, ShowCase(t, new_lines=true)) |
| 24 | +Base.show(io::IO, t::Experiment) = show(io, ShowCase(t, new_lines=true)) |
0 commit comments