Demo entry 5853705

sklearn-pipeline.py

   

Submitted by anonymous on Jul 20, 2016 at 15:03
Language: Python. Code size: 334 Bytes.

class Pipeline(Transfomer):

    @property
    def named_steps(self):
        """
        Returns a sequence of estimators
        """
        return self.steps

    @property
    def _final_estimator(self):
        """
        All pipelines terminate in an  
        Estimator
        """
        return self.steps[-1]

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).