compute predictions given a new X

def _compute_prediction(self,X):
        """ compute predictions given a new X """
        A_pred = np.dot(X,self._Bhat)
        Y_pred = self._basis_object.inverse_transform(A_pred)
        return Y_pred