[scikit-learn] Strange code but that works

Joel Nothman joel.nothman at gmail.com
Sun Oct 28 18:48:56 EDT 2018


Be careful: that @property is very significant here. It means that this is
a description of how to *get* the method, not how to *run* the method. You
will notice, for instance, that it says `def transform(self)`, not `def
transform(self, X)`
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20181029/9dba4229/attachment.html>


More information about the scikit-learn mailing list