-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathloggers.jl
26 lines (21 loc) · 972 Bytes
/
loggers.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"""
MLFlowLogger(; base_uri="localhost:5000", experiment_name=missing)
Base type for MLFlow logger. Creates an instance of MLFlow, as defined in
[`MLFlowClient.jl`](https://juliaai.github.io/MLFlowClient.jl/dev/), and logs
to an experiment.
### Summary of key-word arguments
- `base_uri`: URI of the MLFlow server. Defaults to `localhost:5000`.
- `experiment_name`: Name of the experiment to log to.
If `experiment_name` is not provided, a new experiment with the name
"MLJ.jl experiments" will be created.
### Return value
A `MLFlowInstance` object, containing a
[`MLFlow`](https://juliaai.github.io/MLFlowClient.jl/dev/reference/#MLFlowClient.MLFlow)
object and the experiment name
"""
MLFlowLogger(; base_uri="http://localhost:5000",
experiment_name="MLJ experiments",
artifact_location=missing) =
MLFlowLogger(base_uri, experiment_name, artifact_location)
MLFlowLogger(_, _, _) =
error("Please run `import MLFlowClient` to use MLFlowLogger.")