Package | Description |
---|---|
org.opencv.ml |
Modifier and Type | Method and Description |
---|---|
static TrainData |
TrainData.__fromPtr__(long addr) |
static TrainData |
TrainData.create(Mat samples,
int layout,
Mat responses)
Creates training data from in-memory arrays.
|
static TrainData |
TrainData.create(Mat samples,
int layout,
Mat responses,
Mat varIdx)
Creates training data from in-memory arrays.
|
static TrainData |
TrainData.create(Mat samples,
int layout,
Mat responses,
Mat varIdx,
Mat sampleIdx)
Creates training data from in-memory arrays.
|
static TrainData |
TrainData.create(Mat samples,
int layout,
Mat responses,
Mat varIdx,
Mat sampleIdx,
Mat sampleWeights)
Creates training data from in-memory arrays.
|
static TrainData |
TrainData.create(Mat samples,
int layout,
Mat responses,
Mat varIdx,
Mat sampleIdx,
Mat sampleWeights,
Mat varType)
Creates training data from in-memory arrays.
|
Modifier and Type | Method and Description |
---|---|
float |
StatModel.calcError(TrainData data,
boolean test,
Mat resp)
Computes error on the training or test dataset
|
boolean |
StatModel.train(TrainData trainData)
Trains the statistical model
|
boolean |
StatModel.train(TrainData trainData,
int flags)
Trains the statistical model
|
Copyright © 2020. All rights reserved.