@Test public void testGetCurrentError() { assertEquals(0.9111995717892043, m.getCurrentError(), 0.0000001); }
@Override public double getCurrentError() { if(weightSeen==0) return Double.MAX_VALUE; else { double sum=0; int numOutputs=sumError.length; for (int i=0; i<numOutputs; i++) sum+=getCurrentError(i); return sum/numLearnedOutputs; } }
RelativeMeanAbsoluteDeviationMT extends AbstractMultiTargetErrorMeasurer { @Override public double getCurrentError() { if(weightSeen==0) return Double.MAX_VALUE; else { double sum=0; int numOutputs=sumError.length; for (int i=0; i<numOutputs; i++) sum+=getCurrentError(i); return sum/numLearnedOutputs; } } }
RelativeMeanAbsoluteDeviationMT extends AbstractMultiTargetErrorMeasurer { @Override public double getCurrentError() { if(weightSeen==0) return Double.MAX_VALUE; else { double sum=0; int numOutputs=sumError.length; for (int i=0; i<numOutputs; i++) sum+=getCurrentError(i); return sum/numLearnedOutputs; } }  }
RelativeMeanAbsoluteDeviationMT extends AbstractMultiTargetErrorMeasurer { @Override public double getCurrentError() { if(weightSeen==0) return Double.MAX_VALUE; else { double sum=0; int numOutputs=sumError.length; for (int i=0; i<numOutputs; i++) sum+=getCurrentError(i); return sum/numLearnedOutputs; } }  @Override void addPrediction(Prediction prediction, Prediction trueClass, double weight); @Override double getCurrentError(); @Override double getCurrentError(int index); @Override double[] getCurrentErrors(); }
RelativeMeanAbsoluteDeviationMT extends AbstractMultiTargetErrorMeasurer { @Override public double getCurrentError() { if(weightSeen==0) return Double.MAX_VALUE; else { double sum=0; int numOutputs=sumError.length; for (int i=0; i<numOutputs; i++) sum+=getCurrentError(i); return sum/numLearnedOutputs; } }  @Override void addPrediction(Prediction prediction, Prediction trueClass, double weight); @Override double getCurrentError(); @Override double getCurrentError(int index); @Override double[] getCurrentErrors();  }