optimize calc accuracy function and return predicted values