Home > @josh-brown/vector > Classifier > predict
Uses the learned parameters to make predictions based on a set of input data.
Signature:
predict(data: Matrix, pThreshold: number): Vector;|
Parameter |
Type |
Description |
|---|---|---|
|
data |
A Vector whose rows are the observations in the test set | |
|
pThreshold |
number |
The probability threshold above which an event will be predicted |
Returns:
Must be called after Classifier.train()