tflite_support.metadata_writers.metadata_info.ScoreCalibrationMd

A container for score calibration 1 metadata information.

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.

ValueError if the score_calibration file is malformed.

Methods

create_metadata

View source

Creates the score calibration metadata based on the information.

Returns
A Flatbuffers Python object of the score calibration metadata.

create_score_calibration_file_md

View source