model_prediction

edgeimpulse_api v1.0.0

edgeimpulse_api.models.model_prediction module

class edgeimpulse_api.models.model_prediction.ModelPrediction(*, sampleId: StrictInt, startMs: float, endMs: float, prediction: StrictStr, predictionCorrect: Optional[StrictBool] = None, f1Score: Optional[float] = None)

Bases: BaseModel

class Config()

Bases: object

allow_population_by_field_name(_ = Tru_ )

validate_assignment(_ = Tru_ )

end_ms(: floa )

f1_score(: Optional[float )

classmethod from_dict(obj: dict)

Create an instance of ModelPrediction from a dict

classmethod from_json(json_str: str)

Create an instance of ModelPrediction from a JSON string

prediction(: StrictSt )

prediction_correct(: Optional[StrictBool )

sample_id(: StrictIn )

start_ms(: floa )

to_dict()

Returns the dictionary representation of the model using alias

to_json()

Returns the JSON representation of the model using alias

to_str()

Returns the string representation of the model using alias

Last updated

Was this helpful?