Struct owlyshield_ransom::predictions::prediction_malware::TfLiteMalware[][src]

pub struct TfLiteMalware {
    model: Model,
    means: Vec<f32>,
    stdvs: Vec<f32>,
}
Expand description

A record to describe a tflite model

Fields

model: Modelmeans: Vec<f32>

Needed by Standard Scaling and set to MEANS

stdvs: Vec<f32>

Needed by Standard Scaling and set to STDVS

Implementations

Make a prediction on the sequence predmtrx. The prediction can be costly. The model input tensor dimensions are (None, PREDMTRXCOLS) and is dimensioned accordingly by the InterpreterBuilder. The model returns only the last prediction (it does not returns sequences).

Standard Scaling of the input vectors with MEANS and STDVS.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.