Predicts responses for input samples
[results,f] = model.predict(samples)
[...] = model.predict(..., 'OptionName', optionValue, ...)
Input
- samples The input samples, floating-point matrix. One or
more vectors stored as rows of the matrix.
Output
- results The predicted class for each sample.
- f unused and returns 0.
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 (class
index without mapping to class labels). default false
The method is an alias for cv.NormalBayesClassifier.predictProb,
without returning the probabilities.