jobs.SweepConfig

jobs.SweepConfig(parameters=list())

Configuration for parameter sweep expansion.

Attributes

Name Type Description
parameters list[SweepParameter] List of parameters to sweep over.

Methods

Name Description
expand Generate cartesian product of all parameter values.
from_dict Create from dict.
to_dict Convert to dict for serialization.

expand

jobs.SweepConfig.expand()

Generate cartesian product of all parameter values.

Returns a List of dicts, each representing one parameter combination. For example, with parameters A=[1,2] and B=[x,y], returns: [{“A”: 1, “B”: “x”}, {“A”: 1, “B”: “y”}, {“A”: 2, “B”: “x”}, {“A”: 2, “B”: “y”}]

from_dict

jobs.SweepConfig.from_dict(data)

Create from dict.

to_dict

jobs.SweepConfig.to_dict()

Convert to dict for serialization.