On Mon, Sep 19, 2011 at 7:28 PM, Lars Buitinck <[email protected]> wrote:
> 2011/9/19 Fabian Pedregosa <[email protected]>:
>> The docstring of sklearn.utils.deprecated says it should ``print a
>> warning when the function is called/the class is instantiated and adds
>> a warning to the docstring`` . However, executing some deprecated
>> classes doesn't print anything for me:
>
> "print a warning" should really be "issue a warning". We use Python's
> standard DeprecationWarning, which is "ignored by default"
> (http://docs.python.org/library/exceptions.html#exceptions.DeprecationWarning)

Thanks Lars, it all makes sense now. The reason why this caught my
attention is that sklearn.test() does not like doctest that do not
print to stdout, and this is one of those (fortunately it's the only
one left). I pushed a fix here:

https://github.com/scikit-learn/scikit-learn/commit/00cc4852466a68e452a5fa85bb99f8f5b2972daf

If someone has a better solution please go ahead and modify it.

Best,

Fabian

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to