getWeights method

Mat getWeights(
  1. int layerIdx
)

Weights of the network: index 0 holds the input scale, 1 to layerSizes.total - 1 the weights between consecutive layers, the next index the output scale and the last one its inverse.

Implementation

Mat getWeights(int layerIdx) {
  final rval = Mat.empty();
  cvRun(() => cml.cv_ml_ANN_MLP_getWeights(ref, layerIdx, rval.ref));
  return rval;
}