trainM method

(bool, Mat, Mat, Mat) trainM(
  1. Mat samples,
  2. Mat probs0
)

Like trainEM, starting with the Maximization step from the initial probabilities probs0.

Implementation

(bool, Mat logLikelihoods, Mat labels, Mat probs) trainM(Mat samples, Mat probs0) => _train(
  (l, lb, pr, p) => cml.cv_ml_EM_trainM(ref, samples.ref, probs0.ref, l, lb, pr, p, ffi.nullptr),
);