'predict new y values for a given array of explanatory variables'

def predict(self, x):

    self.xpredict = x
    distxpredict = self.kernel(x, self.x, scale=self.scale)
    self.ypredict = np.dot(distxpredict, self.parest)
    return self.ypredict
