Predicts responses for input samples
[results,f] = model.predict(samples)
[...] = model.predict(..., 'OptionName', optionValue, ...)
Input
- samples The input data for the prediction algorithm.
MxN
matrix, where each row contains variables (features) of one
object being classified. Should have single
data type.
Output
- results Predicted labels as a column vector of
int32
type. In case RawOutput
was set, it returns a single
matrix of size size(samples,1)-by-size(thetas,1)
which
contains the raw output of the sigmoid function(s).
- f The same as the response of the first sample, i.e
results(1)
.
Options
- Flags The optional predict flags, model-dependent. For
convenience, you can set the individual flag options below,
instead of directly setting bits here. default 0
- RawOutput makes the method return the raw results (the
value of the sigmoid function), not the class label.
default false