tuner_trial module

TunerTrial

class edgeimpulse_api.models.tuner_trial.TunerTrial(
		**data: Any
)

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

Parameters

  • **data: Any

Bases

  • pydantic.main.BaseModel

  • pydantic.utils.Representation

Class variables

  • Config

  • blocks: List[edgeimpulse_api.models.tuner_trial_blocks_inner.TunerTrialBlocksInner]

  • current_epoch: Optional[pydantic.types.StrictInt]

  • device_performance: Optional[Dict[str, Any]]

  • dsp_job_id: Optional[edgeimpulse_api.models.tuner_trial_dsp_job_id.TunerTrialDspJobId]

  • experiment: Optional[pydantic.types.StrictStr]

  • id: pydantic.types.StrictStr

  • impulse: edgeimpulse_api.models.tuner_trial_impulse.TunerTrialImpulse

  • last_completed_epoch: Optional[datetime.datetime]

  • last_completed_training: Optional[datetime.datetime]

  • learn_job_id: Optional[float]

  • model: Optional[Dict[str, Any]]

  • original_trial_id: Optional[pydantic.types.StrictStr]

  • retries: Optional[pydantic.types.StrictInt]

  • status: pydantic.types.StrictStr

  • worker_id: Optional[pydantic.types.StrictStr]

Static methods

from_dict

edgeimpulse_api.models.tuner_trial.from_dict(
		obj: dict
)> edgeimpulse_api.models.tuner_trial.TunerTrial

Create an instance of TunerTrial from a dict

Parameters

  • obj: dict

Return

edgeimpulse_api.models.tuner_trial.TunerTrial

from_json

edgeimpulse_api.models.tuner_trial.from_json(
		json_str: str
)> edgeimpulse_api.models.tuner_trial.TunerTrial

Create an instance of TunerTrial from a JSON string

Parameters

  • json_str: str

Return

edgeimpulse_api.models.tuner_trial.TunerTrial

status_validate_enum

edgeimpulse_api.models.tuner_trial.status_validate_enum(
		v
)

Parameters

  • v

Methods

to_dict

edgeimpulse_api.models.tuner_trial.to_dict(
		self
)

Returns the dictionary representation of the model using alias