create_experiment {cometr} | R Documentation |
Create a new experiment
Description
Create a new experiment on Comet's servers. The return value is an Experiment
object that can be used to modify or get information about the experiment. Only one
experiment can be active at a time, so make sure to stop an experiment before creating
a new one (by calling the stop()
method on the Experiment
object).
Usage
create_experiment(
experiment_name = NULL,
project_name = NULL,
workspace_name = NULL,
api_key = NULL,
keep_active = TRUE,
log_output = TRUE,
log_error = FALSE,
log_code = TRUE,
log_system_details = TRUE,
log_git_info = FALSE
)
Arguments
experiment_name |
Experiment name. |
project_name |
Project name (can also be specified using the |
workspace_name |
Workspace name (can also be specified using the |
api_key |
Comet API key (can also be specified using the |
keep_active |
If |
log_output |
If |
log_error |
If |
log_code |
If |
log_system_details |
If |
log_git_info |
If |
Value
An Experiment
object.
Examples
## Not run:
library(cometr)
# Assuming you have COMET_API_KEY, COMET_WORKSPACE, COMET_PROJECT_NAME variables defined
exp <- create_experiment()
exp$get_key()
exp$get_metadata()
exp$add_tags(c("test", "tag2"))
exp$get_tags()
exp$log_metric("metric1", 5)
exp$get_metric("metric1")
exp$get_metrics_summary()
exp$stop()
## End(Not run)