@Override public void countExample(Example example){
  int label=classNameMap.get(example.getNominalValue(labelAttribute));
  int plabel=classNameMap.get(example.getNominalValue(predictedLabelAttribute));
  double weight=1.0d;
  if (weightAttribute != null) {
    weight=example.getValue(weightAttribute);
  }
  counter[label][plabel]+=weight;
}

@ Override public void countExample ( Example example ) { int label = classNameMap . get ( example . getNominalValue ( labelAttribute ) ) ; int plabel = classNameMap . get ( example . getNominalValue ( predictedLabelAttribute ) ) ; double weight = 1.0d ; if ( weightAttribute != null ) { weight = example . getValue ( weightAttribute ) ; } counter [ label ] [ plabel ] += weight ; }
increases the prediction value in the matrix .
