Learn R Programming

neptune (version 0.1.2)

log_metric: Log metric to 'Neptune' experiment

Description

It logs metric like accuracy or AUC to 'Neptune' Experiment. 'Neptune' is a lightweight experiment tracking tool, for more information see <https://neptune.ai/>.

Usage

log_metric(metric, value)

Arguments

metric

string, name of the metric that you want to log to Neptune. You can log more than one value to the same metric. If you do that, a chart will be created.

value

float, a metric value that you want to log to Neptune

See Also

Useful links:

Examples

Run this code
# NOT RUN {
# We are using api token for an anonymous user neptuner. For your projects use your private token.
init_neptune(api_token = 'ANONYMOUS',
             project_name = 'shared/r-integration')

# Start logging
create_experiment(name = 'my first experiment',
                  params = list(metric='Accuracy', model='rf', 'cvFolds'=2)
)
log_metric('accuracy', 0.92)
log_metric('accuracy', 0.52)
log_metric('auc', 0.87)

# Stop logging
stop_experiment()
# See an example experiment here https://ui.neptune.ai/o/shared/org/r-integration/e/RIN-56/logs
# }

Run the code above in your browser using DataLab