1
1
"""
2
- MLFlow(baseuri; apiversion)
2
+ MLFlow
3
3
4
4
Base type which defines location and version for MLFlow API service.
5
5
6
6
# Fields
7
7
- `baseuri::String`: base MLFlow tracking URI, e.g. `http://localhost:5000`
8
8
- `apiversion`: used API version, e.g. `2.0`
9
9
10
+ # Constructors
11
+
12
+ - `MLFlow(baseuri; apiversion=2.0)`
10
13
# Examples
11
14
``` julia-repl
12
15
julia> mlf = MLFlow("http://localhost:5000")
13
16
MLFlow("http://localhost:5000", 2.0)
14
17
```
18
+
15
19
"""
16
20
struct MLFlow
17
21
baseuri:: String
@@ -30,6 +34,12 @@ Represents an MLFlow experiment.
30
34
- `experiment_id::Integer`: experiment identifier.
31
35
- `tags::Any`: list of tags.
32
36
- `artifact_location::String`: where are experiment artifacts stored.
37
+
38
+ # Constructors
39
+
40
+ - `MLFlowExperiment(name, lifecycle_stage, experiment_id, tags, artifact_location)`
41
+ - `MLFlowExperiment(exp::Dict{String,Any})`
42
+
33
43
"""
34
44
struct MLFlowExperiment
35
45
name:: String
@@ -60,11 +70,14 @@ Represents the status of an MLFlow Run.
60
70
# Fields
61
71
- `status::String`: one of RUNNING/SCHEDULED/FINISHED/FAILED/KILLED
62
72
73
+ # Constructors
74
+
75
+ - `MLFlowRunStatus(status::String)`
63
76
"""
64
77
struct MLFlowRunStatus
65
78
status:: String
66
79
67
- function MLFlowRunStatus (status)
80
+ function MLFlowRunStatus (status:: String )
68
81
acceptable_statuses = [" RUNNING" , " SCHEDULED" , " FINISHED" , " FAILED" , " KILLED" ]
69
82
status ∈ acceptable_statuses || error (" Invalid status $status - choose one of $acceptable_statuses " )
70
83
new (status)
@@ -84,6 +97,11 @@ Represents run metadata.
84
97
- `end_time::Union{Int64,Missing}`: when did the run end, UNIX time in milliseconds.
85
98
- `artifact_uri::String`: where are artifacts from this run stored.
86
99
- `lifecycle_stage::String`: one of `active` or `deleted`.
100
+
101
+ # Constructors
102
+
103
+ - `MLFlowRunInfo(run_id, experiment_id, status, start_time, end_time, artifact_uri, lifecycle_stage)`
104
+ - `MLFlowRunInfo(info::Dict{String,Any})`
87
105
"""
88
106
struct MLFlowRunInfo
89
107
run_id:: String
@@ -137,6 +155,11 @@ Represents a metric.
137
155
- `value::Float64`: metric value.
138
156
- `step::Int64`: step.
139
157
- `timestamp::Int64`: timestamp in UNIX time in milliseconds.
158
+
159
+ # Constructors
160
+
161
+ - `MLFlowRunDataMetric(d::Dict{String,Any})`
162
+
140
163
"""
141
164
struct MLFlowRunDataMetric
142
165
key:: String
@@ -163,6 +186,10 @@ Represents run data.
163
186
- `params::Dict{String,String}`: run parameters.
164
187
- `tags`: list of run tags.
165
188
189
+ # Constructors
190
+
191
+ - `MLFlowRunData(data::Dict{String,Any})`
192
+
166
193
"""
167
194
struct MLFlowRunData
168
195
metrics:: Vector{MLFlowRunDataMetric}
@@ -192,6 +219,13 @@ Represents an MLFlow run.
192
219
- `info::MLFlowRunInfo`: Run metadata.
193
220
- `data::MLFlowRunData`: Run data.
194
221
222
+ # Constructors
223
+
224
+ - `MLFlowRun(rundata::MLFlowRunData)`
225
+ - `MLFlowRun(runinfo::MLFlowRunInfo)`
226
+ - `MLFlowRun(info::Dict{String,Any})`
227
+ - `MLFlowRun(info::Dict{String,Any}, data::Dict{String,Any})`
228
+
195
229
"""
196
230
struct MLFlowRun
197
231
info:: Union{MLFlowRunInfo,Missing}
0 commit comments