View source on GitHub |
A container for score calibration 1 metadata information.
tflite_support.metadata_writers.metadata_info.ScoreCalibrationMd(
score_transformation_type: tflite_support.metadata_schema_py_generated.ScoreTransformationType
,
default_score: float,
file_path: str
)
Args | |
---|---|
score_transformation_type
|
type of the function used for transforming the uncalibrated score before applying score calibration. |
default_score
|
the default calibrated score to apply if the uncalibrated score is below min_score or if no parameters were specified for a given index. |
file_path
|
file_path of the score calibration file 1. |
Raises | |
---|---|
ValueError
|
if the score_calibration file is malformed. |
Methods
create_metadata
create_metadata() -> tflite_support.metadata_schema_py_generated.ProcessUnitT
Creates the score calibration metadata based on the information.
Returns | |
---|---|
A Flatbuffers Python object of the score calibration metadata. |
create_score_calibration_file_md
create_score_calibration_file_md() -> tflite_support.metadata_writers.metadata_info.AssociatedFileMd