tuner_trial module#

class edgeimpulse_api.models.tuner_trial.TunerTrial(
*,
id: StrictStr,
status: StrictStr,
lastCompletedEpoch: datetime | None = None,
lastCompletedTraining: datetime | None = None,
retries: StrictInt | None = None,
currentEpoch: StrictInt | None = None,
workerId: StrictStr | None = None,
blocks: List[TunerTrialBlocksInner],
impulse: TunerTrialImpulse,
experiment: StrictStr | None = None,
original_trial_id: StrictStr | None = None,
model: Dict[str, Any] | None = None,
dspJobId: TunerTrialDspJobId | None = None,
learnJobId: float | None = None,
devicePerformance: Dict[str, Any] | None = None,
)[source]#

Bases: BaseModel

class Config[source]#

Bases: object

allow_population_by_field_name = True#
validate_assignment = False#
blocks: List[TunerTrialBlocksInner]#
current_epoch: StrictInt | None#
device_performance: Dict[str, Any] | None#
dsp_job_id: TunerTrialDspJobId | None#
experiment: StrictStr | None#
classmethod from_dict(
obj: dict,
) TunerTrial[source]#

Create an instance of TunerTrial from a dict

classmethod from_json(
json_str: str,
) TunerTrial[source]#

Create an instance of TunerTrial from a JSON string

id: StrictStr#
impulse: TunerTrialImpulse#
last_completed_epoch: datetime | None#
last_completed_training: datetime | None#
learn_job_id: float | None#
model: Dict[str, Any] | None#
original_trial_id: StrictStr | None#
retries: StrictInt | None#
status: StrictStr#
classmethod status_validate_enum(v)[source]#
to_dict()[source]#

Returns the dictionary representation of the model using alias

to_json() str[source]#

Returns the JSON representation of the model using alias

to_str() str[source]#

Returns the string representation of the model using alias

worker_id: StrictStr | None#