Skip to content

Latest commit

 

History

History
74 lines (35 loc) · 1.04 KB

File metadata and controls

74 lines (35 loc) · 1.04 KB

Home > @josh-brown/vector > Classifier > predict

Classifier.predict() method

Uses the learned parameters to make predictions based on a set of input data.

Signature:

predict(data: Matrix, pThreshold: number): Vector;

Parameters

Parameter

Type

Description

data

Matrix

A Vector whose rows are the observations in the test set

pThreshold

number

The probability threshold above which an event will be predicted

Returns:

Vector

Remarks

Must be called after Classifier.train()