### Question:
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();  }### Answer:
@Test public void testGetCurrentError() { assertEquals(0.9111995717892043, m.getCurrentError(), 0.0000001); }
@Test public void testGetCurrentErrorInt() { assertEquals(0.7116760869790253, m.getCurrentError(0), 0.0000001); assertEquals(0.5077398163068827, m.getCurrentError(1), 0.0000001); assertEquals(1.5141828120817051, m.getCurrentError(2), 0.0000001); }