2012/2/14 Adrien <[email protected]>:
> Hello everyone,
>
> As it's Valentine's day, I thought I would make a present to sklearn
> contributors because I love their work!
>
> I noticed a small typo in the __init__ method of the MiniBatchKMeans
> class
> (https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/cluster/k_means_.py#L1015):
>
> current line:
>
> self.init_size = batch_size if init_size is None else 3 * init_size
>
> should be:
>
> self.init_size = 3 * batch_size if init_size is None else init_size

Good catch! a pull request with a new test would be perfect :)

-- 
Olivier
http://twitter.com/ogrisel - http://github.com/ogrisel

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to