Batch Experiment Module¶
This section documents the batch experiment components of the Nextmv Cloud API.
batch_experiment
¶
This module contains definitions for batch experiments.
CLASS | DESCRIPTION |
---|---|
BatchExperimentInformation |
Base class for all batch experiment models containing common information. |
BatchExperiment |
Class representing a batch experiment that compares two or more instances. |
BatchExperimentRun |
Class representing a single execution of a batch experiment. |
BatchExperimentMetadata |
Class containing metadata of a batch experiment. |
BatchExperiment
¶
Bases: BatchExperimentInformation
A batch experiment compares two or more instances by executing all the inputs contained in the input set.
You can import the BatchExperiment
class directly from cloud
:
This class extends BatchExperimentInformation
with attributes specific
to a full batch experiment.
PARAMETER | DESCRIPTION |
---|---|
|
ID of the input set used for the experiment.
TYPE:
|
|
List of instance IDs used for the experiment.
TYPE:
|
|
Grouped distributional summaries of the batch experiment. Defaults to None.
TYPE:
|
description
class-attribute
instance-attribute
¶
Description of the batch experiment.
grouped_distributional_summaries
class-attribute
instance-attribute
¶
Grouped distributional summaries of the batch experiment.
instance_ids
instance-attribute
¶
List of instance IDs used for the experiment.
number_of_completed_runs
class-attribute
instance-attribute
¶
Number of completed runs in the batch experiment.
number_of_requested_runs
class-attribute
instance-attribute
¶
Number of runs requested for the batch experiment.
number_of_runs
class-attribute
instance-attribute
¶
Number of runs in the batch experiment.
option_sets
class-attribute
instance-attribute
¶
Option sets used for the experiment.
status
class-attribute
instance-attribute
¶
Status of the batch experiment.
BatchExperimentInformation
¶
Bases: BaseModel
Information about a batch experiment.
You can import the BatchExperimentInformation
class directly from cloud
:
This class serves as a base for all the other batch experiment models and contains common attributes shared by different types of batch experiments.
PARAMETER | DESCRIPTION |
---|---|
|
ID of the batch experiment.
TYPE:
|
|
Name of the batch experiment.
TYPE:
|
|
Creation date of the batch experiment.
TYPE:
|
|
Last update date of the batch experiment.
TYPE:
|
|
Status of the batch experiment. Defaults to None.
TYPE:
|
|
Description of the batch experiment. Defaults to None.
TYPE:
|
|
Number of runs requested for the batch experiment. Defaults to None.
TYPE:
|
|
Number of runs in the batch experiment. Defaults to None.
TYPE:
|
|
Number of completed runs in the batch experiment. Defaults to None.
TYPE:
|
|
Type of the batch experiment. Defaults to None.
TYPE:
|
|
Option sets used for the experiment. Defaults to None.
TYPE:
|
Examples:
>>> from datetime import datetime
>>> info = BatchExperimentInformation(
... id="bexp-123",
... name="Test Experiment",
... created_at=datetime.now(),
... updated_at=datetime.now(),
... status="running",
... description="A sample batch experiment."
... )
>>> print(info.id)
bexp-123
>>> print(info.name)
Test Experiment
description
class-attribute
instance-attribute
¶
Description of the batch experiment.
number_of_completed_runs
class-attribute
instance-attribute
¶
Number of completed runs in the batch experiment.
number_of_requested_runs
class-attribute
instance-attribute
¶
Number of runs requested for the batch experiment.
number_of_runs
class-attribute
instance-attribute
¶
Number of runs in the batch experiment.
option_sets
class-attribute
instance-attribute
¶
Option sets used for the experiment.
status
class-attribute
instance-attribute
¶
Status of the batch experiment.
BatchExperimentMetadata
¶
Bases: BatchExperimentInformation
Metadata of a batch experiment.
You can import the BatchExperimentMetadata
class directly from cloud
:
This class extends BatchExperimentInformation
with application-specific
metadata.
PARAMETER | DESCRIPTION |
---|---|
|
ID of the application used for the batch experiment. Defaults to None.
TYPE:
|
app_id
class-attribute
instance-attribute
¶
ID of the application used for the batch experiment.
description
class-attribute
instance-attribute
¶
Description of the batch experiment.
number_of_completed_runs
class-attribute
instance-attribute
¶
Number of completed runs in the batch experiment.
number_of_requested_runs
class-attribute
instance-attribute
¶
Number of runs requested for the batch experiment.
number_of_runs
class-attribute
instance-attribute
¶
Number of runs in the batch experiment.
option_sets
class-attribute
instance-attribute
¶
Option sets used for the experiment.
status
class-attribute
instance-attribute
¶
Status of the batch experiment.
BatchExperimentRun
¶
Bases: BaseModel
A batch experiment run is a single execution of a batch experiment.
You can import the BatchExperimentRun
class directly from cloud
:
It contains information about the experiment, the input used, and the configuration used for the run.
PARAMETER | DESCRIPTION |
---|---|
|
Option set used for the experiment.
TYPE:
|
|
ID of the input used for the experiment.
TYPE:
|
|
ID of the instance used for the experiment. Defaults to None.
TYPE:
|
|
ID of the version used for the experiment. Defaults to None.
TYPE:
|
|
ID of the input set used for the experiment. Defaults to None.
TYPE:
|
|
If the batch experiment is a scenario test, this is the ID of that test. Defaults to None.
TYPE:
|
|
Repetition number of the experiment. Defaults to None.
TYPE:
|
|
Run number of the experiment. Defaults to None.
TYPE:
|
input_set_id
class-attribute
instance-attribute
¶
ID of the input set used for the experiment.
instance_id
class-attribute
instance-attribute
¶
ID of the instance used for the experiment.
repetition
class-attribute
instance-attribute
¶
Repetition number of the experiment.
run_number
class-attribute
instance-attribute
¶
Run number of the experiment.
scenario_id
class-attribute
instance-attribute
¶
If the batch experiment is a scenario test, this is the ID of that test.
version_id
class-attribute
instance-attribute
¶
ID of the version used for the experiment.