Demo entry 5853680


Submitted by anonymous on Jul 20, 2016 at 14:54
Language: Python. Code size: 272 Bytes.

class Estimator(object):

    def fit(self, X, y=None):
        """Fits estimator to data. """
        # set state of self
        return self

    def predict(self, X):
        """Predict response of X"""
        # compute predictions pred
        return pred

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).