

def error_calculation_test(self):
    'Test the calculation of the Mean Absolute Deviation Error.'
    tsOrg = TimeSeries()
    tsCalc = TimeSeries()
    for idx in xrange(len(self.dataOrg)):
        tsOrg.add_entry(float(idx), self.dataOrg[idx])
        mad.add_entry(float(idx), self.dataCalc[idx])
    mad = MeanAbsoluteDeviationError()
    mad.initialize(tsOrg, tsCalc)
    self.assertEqual('0.3454', str(mad.get_error())[:6])

dataset/ETHPy150Open T-002/pycast/pycast/tests/meanabsolutedeviationerrortest.py MeanAbsoluteDeviationErrorTest.error_calculation_test/VarMisuse@56/93 `tsCalc`->`mad`