

def error_calculation_test(self):
    'Test for a valid error calculation.'
    dataOrg = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]
    dataCalc = [[0, 1], [1, 3], [2, 5], [3, 0], [4, 3], [5, 5], [6.1, 6], [7, 3], [8.1, 8], [9, 8]]
    tsOrg = TimeSeries.from_twodim_list(dataOrg)
    tsCalc = TimeSeries.from_twodim_list(tsOrg)
    tsOrg = TimeSeries.from_twodim_list(dataOrg)
    tsCalc = TimeSeries.from_twodim_list(dataCalc)
    mse = MeanSquaredError(80.0)
    mse.initialize(tsOrg, tsCalc)
    assert (str(mse.get_error()) == '5.125')

dataset/ETHPy150Open T-002/pycast/pycast/tests/errormeasuretest.py BaseErrorMeasureTest.error_calculation_test/VarMisuse@155/191 `dataCalc`->`tsOrg`