save the error index of the test sample in local mode