classify_sample_response_classification module#

class edgeimpulse_api.models.classify_sample_response_classification.ClassifySampleResponseClassification(
*,
learnBlock: ImpulseLearnBlock,
result: List[Dict[str, float]],
anomalyResult: List[AnomalyResult] | None = None,
structuredResult: List[StructuredClassifyResult] | None = None,
minimumConfidenceRating: float,
details: List[ClassifySampleResponseClassificationDetails] | None = None,
objectDetectionLastLayer: ObjectDetectionLastLayer | None = None,
expectedLabels: List[StructuredLabel],
)[source]#

Bases: BaseModel

class Config[source]#

Bases: object

allow_population_by_field_name = True#
validate_assignment = False#
anomaly_result: List[AnomalyResult] | None#
details: List[ClassifySampleResponseClassificationDetails] | None#
expected_labels: List[StructuredLabel]#
classmethod from_dict(
obj: dict,
) ClassifySampleResponseClassification[source]#

Create an instance of ClassifySampleResponseClassification from a dict

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

Create an instance of ClassifySampleResponseClassification from a JSON string

learn_block: ImpulseLearnBlock#
minimum_confidence_rating: float#
object_detection_last_layer: ObjectDetectionLastLayer | None#
result: List[Dict[str, float]]#
structured_result: List[StructuredClassifyResult] | None#
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