Skip to content

Commit

Permalink
Merge branch 'master' of github.com:jeffrey-hokanson/PSDR
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffrey-hokanson committed Oct 10, 2019
2 parents 8c602bb + 07faf5f commit f0c45f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions psdr/function.py
Expand Up @@ -35,6 +35,11 @@ def __call__(self, X, return_grad = False, **kwargs):
else:
return self.eval(X, **kwargs)

def predict(self, X):
r""" Alias of __call__ to match scikit learn API
"""
return self.__call__(X)


class Function(BaseFunction):
r"""Wrapper around function specifying the domain
Expand Down
1 change: 0 additions & 1 deletion psdr/polyridge.py
Expand Up @@ -406,7 +406,6 @@ def _fit_affine(self, X, fX):
U /= np.linalg.norm(U)
return U


def _fit_coef(self, X, fX, U):
r""" Returns the linear coefficients
"""
Expand Down

0 comments on commit f0c45f6

Please sign in to comment.