def reportError(predictedValues, realValueFile): return averageSquaredError(predictedValues, gam.getMat(realValueFile, False), predictedValues.shape[0])
def predictValue(ValidationOrTestSetFile, thetas, quadratic, std, mean, resultFileName, rounded): inputs = gam.getMat(ValidationOrTestSetFile, quadratic) ## True means add quadratic features return calculateInputMatrix(thetas, inputs, std, mean, resultFileName, rounded)