The outcome of identifying a single input.
Fields:
:output— theMagika.ContentTypeInfoMagika returns to the user. This accounts for confidence thresholds and the overwrite map.:dl— theMagika.ContentTypeInfoof the raw deep-learning model prediction. For inputs handled without the model (empty files, very small files, directories, symlinks) this is the specialundefinedtype.:score— the model's confidence for:dlin[0.0, 1.0]. For inputs handled without the model this is1.0.:overwrite_reason— why:outputdiffers from:dl, one of:none,:low_confidence,:overwrite_map.
Summary
Types
@type overwrite_reason() :: :none | :low_confidence | :overwrite_map
@type t() :: %Magika.Prediction{ dl: Magika.ContentTypeInfo.t(), output: Magika.ContentTypeInfo.t(), overwrite_reason: overwrite_reason(), score: float() }