Input sets are defined sets of input files to use for offline tests, such as batch experiments and acceptance tests. You can visualize the input sets of an app in the Console web interface. Go to the app, Experiments
> Input Sets
tab.
There are several interfaces for creating input sets:
- Console: use the web interface.
- Nextmv CLI: use your terminal.
- Python SDK: use Python.
- Cloud API: use the HTTP endpoints.
At the moment, inputs for the input sets can only be retrieved from prior runs. The basic steps for creating an input set are:
- Make runs using the desired inputs that will make part of the input set.
- Create the input set by:
- Specifying the run IDs of the runs that will make part of the input set.
- Specifying a date range and an instance ID where runs were made to gather inputs for an input set.
Note that the maximum number of inputs allowed in an input set is 20.
Console
Go to the Console web interface, and open your app. Go to the Experiments
> Input Sets
tab. Click on New Input Set
. Fill in the fields.
Nextmv CLI
Define the desired input set ID and name. After, create the input set by:
Referencing the run IDs.
Referencing a date range and an instance ID.
Python SDK
Define the desired input set ID and name. After, create the input set by:
Referencing the run IDs.
Referencing a date range and an instance ID.
Cloud API
Create new input set.
Create new application input set for experiments.
Define the desired input set ID and name. After, create the input set by:
- Referencing the run IDs.
Referencing a date range and an instance ID.
Update an input set
Update an input set (change its name, description, etc...) using the following interfaces:
Console. Go to the Console web interface, and open your app. Go to the
Experiments
>Input Sets
tab. Click on the input set you want to update. Click onEdit
. Fill in the fields.Nextmv CLI. Use the
nextmv experiment input-set update
subcommand.Cloud API. Make sure your
NEXTMV_API_KEY
is exported as an environment variable. The API uses Bearer Authentication.PUThttps://api.cloud.nextmv.io/v1/applications/{application_id}/experiments/inputsets/{input_set_id}Update input set metadata.
Update input set metadata with defined data, specified by application and input set ID.