Skip to main content
The openlayer batch command runs the command specified in the batchCommand field of your openlayer.json.

Usage

openlayer batch
The batchCommand field in the openlayer.json specifies the command that runs your model. Therefore, the openlayer batch is a streamlined command to run your model on all the datasets referenced in the openlayer.json file.

Run on a specific dataset

If you want to specify a dataset to generate outputs on, you can use the --dataset option:
openlayer batch --dataset=[dataset name]

Run with custom arguments

You can pass custom arguments to your batch command using the --custom-args flag. Arguments should be provided as a comma-separated list of key=value pairs:
openlayer batch --custom-args learning_rate=0.01,batch_size=32
These arguments will be merged with any defaults specified in your openlayer.json. If the same key appears in both places, the CLI flag value takes precedence.

Flags

FlagDefaultDescription
--dataset""Run the batch command only on the specified dataset.
--custom-args""Comma-separated list of key=value pairs to pass as custom arguments.
I