Well, it returns the equivalent of
lambda estimator, X, y: estimator.score(X, y)
On 5 January 2017 at 08:47, Jonathan Taylor
wrote:
> (Think this is right reply to from a digest... If not, apologies)
>
> Thanks for the pointers. From what I read on the API, I gather that for an
> estimator wi
> I've been trying to understand how to use sklearn for this as there is
> no need for me to rewrite the basic CV functions. I'd like to be able
> to use my own custom estimator (so I guess I just need a subclass of
> BaseEstimator with a `fit` method with (X,y) signature?), as well as my
> own mod
You can indeed derive from BaseEstimator and implement fit, predict
and optionally score.
Here is the documentation for the expected estimator API:
http://scikit-learn.org/stable/developers/contributing.html#apis-of-scikit-learn-objects
As this is a linear regression model, you can also want to