create_experiment | R Documentation |
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).
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
)
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 |
An Experiment
object.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.