Experiment is a unit of measurable research that defines a single run with some data/parameters/code/results.

Creating an Experiment object in your code will report a new experiment to your project. Your Experiment will automatically track and collect many things and will also allow you to manually report anything.

You can create multiple objects in one script (such as when looping over multiple hyper parameters).


python __init__(self, project_name=None, workspace=None, log_code=True, log_graph=True, \ auto_param_logging=True, auto_metric_logging=True, parse_args=True, \ auto_output_logging="default", log_env_details=True, log_git_metadata=True, \ log_git_patch=True, disabled=False, offline_directory=None, log_env_gpu=True, \ log_env_host=True, api_key=None, display_summary=None, log_env_cpu=True, \ display_summary_level=None, auto_weight_logging=False, auto_log_co2=False)

Creates a new experiment on the frontend.

Uses the same arguments and keywords as Experiment, and the following:


  • offline_directory: the directory used to save the offline archive for the experiment.

You can also set the offline_directory in the Comet Config Variables.

See also: