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