gizai:ml/predict
prediction with a trained model.
import * as Predict from "gizai:ml/predict";Functions
partOutputs
function partOutputs(e: Estimator, row: Vec<f64>, d: i64, out: mut Vec<f64>): voidAppends the raw outputs of estimator e for one row of d features to out.
Effects: fail.
outputsRows
function outputsRows(m: Model, x: Vec<f64>, from: i64, to: i64): Vec<Vec<f64>>The raw outputs of rows from..to of x, one Vec for each row.
Effects: fail.
classIndex
function classIndex(m: Model, s: Vec<f64>): i64The class index of raw outputs.
Effects: fail.
probabilities
function probabilities(m: Model, s: Vec<f64>): Vec<f64>The class probabilities of model m for raw scores s, by its link.
Effects: fail.
rowParts
function rowParts(n: i64): i64How many parts n rows are predicted in (Task.parallel spreads them on the threads): one part each 1,024 rows, 64 at most.
Effects: fail.