model_variant_stats module#

class edgeimpulse_api.models.model_variant_stats.ModelVariantStats(
*,
modelType: KerasModelTypeEnum,
learnBlockId: StrictInt,
learnBlockType: LearnBlockType,
confusionMatrix: Dict[str, Dict[str, Dict[str, Any]]],
trainingLabels: List[StrictStr],
classificationLabels: List[StrictStr],
totalWindowCount: StrictInt | None = None,
totalCorrectWindowCount: EvaluateResultValue | None = None,
accuracy: EvaluateResultValue,
)[source]#

Bases: BaseModel

class Config[source]#

Bases: object

allow_population_by_field_name = True#
validate_assignment = False#
accuracy: EvaluateResultValue#
classification_labels: List[StrictStr]#
confusion_matrix: Dict[str, Dict[str, Dict[str, Any]]]#
classmethod from_dict(
obj: dict,
) ModelVariantStats[source]#

Create an instance of ModelVariantStats from a dict

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

Create an instance of ModelVariantStats from a JSON string

learn_block_id: StrictInt#
learn_block_type: LearnBlockType#
model_type: KerasModelTypeEnum#
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

total_correct_window_count: EvaluateResultValue | None#
total_window_count: StrictInt | None#
training_labels: List[StrictStr]#