Commit Graph

16 Commits

Author SHA1 Message Date
bwignall 34fc4d4214 CLN: Capitalize "Gaussian" in example docstrings 2014-06-01 16:53:23 -04:00
Rajat Khanduja 5e20b8c664 Fixed pep8 violations. Some 'line too long' errors still remain. 2014-05-15 09:23:16 +05:30
Rajat Khanduja 2244098532 Updated examples to use pyplot for plotting instead of pylab
Some examples not updated because scripts throw error (probably not
because of the change)
2014-05-15 02:18:07 +05:30
Jaques Grobler 8861833ec9 DOC spellfixes 2013-06-29 16:18:23 +03:00
Lars Buitinck 837093df7f P3K: use print as a function in the examples
Also corrected some typos, including two people misspelling their own names :)
2013-02-01 15:04:42 +01:00
GaelVaroquaux d41b02ae6b BUG: example now needs 'assume_centered' 2012-07-23 16:07:14 +02:00
VirgileFritsch 7b34256672 Avoid extra computations + clean `assume_centered` argument use. 2012-07-23 16:07:14 +02:00
VirgileFritsch cb9e8e6cf0 Implements a robust covariance estimator: Rousseeuw's MCD.
Minimum Covariance Determinant (MCD) is a robust estimator of
covariance introduced by Rousseeuw [1]. The main idea behind the MCD
is to find a fixed proportion of observations whose scatter matrix has
the minimum determinant.
The MCD estimator is computed with the FastMCD algorithm [2].

[1] P. J. Rousseeuw. Least median of squares regression. J. Am Stat
Ass, 79:871, 1984.
[2] P. J. Rousseeuw and K. Van Driessen. A fast algorithm for the
minimum covariance determinant estimator. Technometrics, 41(3):212,
1999.
2011-10-04 11:18:55 +02:00
Fabian Pedregosa ddf4b72109 Move project directory from scikits.learn to sklearn 2011-09-02 12:06:57 +02:00
Fabian Pedregosa 68f27e3790 Revert "Move project directory from scikits.learn to sklearn"
This reverts commit fd0d3b879d.
2011-09-02 12:03:18 +02:00
Fabian Pedregosa fd0d3b879d Move project directory from scikits.learn to sklearn 2011-09-02 11:38:24 +02:00
VirgileFritsch e04d4f8e73 Covariance errors computation API changes.
Mean Squared Error, Sum of Squared Error are controversial notions in
a covariances comparison context, so it is better not to use those terms
and let the user decide which type of error he exactly wants.
For this purpose, keywords have been introduced so that the user can choose:
 - the type of norm he wants to use,
 - if a scaling by the number of features must be applied,
 - if he wants the square of the error norm or just the error norm
2011-05-25 17:29:03 +02:00
VirgileFritsch 48efee254d Modify the method computing errors on covariances (<cov_object>.error)
The user can now choose either Mean Squared Error, Root Mean Squared
Error or Sum of Squared Errors through a keyword.
Others types of error may be implemented depending on future needs.
2011-05-22 16:38:32 +02:00
Olivier Grisel 8b5a0274d2 kill trailing spaces 2011-05-04 17:49:17 +02:00
Virgile 2828888ad8 Use np.cov instead of empirical_covariance in covariance module.
I had to consider the case of assumed centered data separately,
yielding a lot of "if... else..." instructions and a lot
"assume_centered" arguments wherever needed.
Note that makes the code less readable (check lw_vs_oas.py example).
2011-04-22 14:44:20 +02:00
Virgile f88f3e1f97 Refactoring of the covariance module and examples + add OAS.
We now have the inheritance scheme:
Covariance <-- ShrunkCovariance <-- LedoitWolf and
Covariance <-- ShrunkCovariance <-- OAS
since LedoitWolf ans OAS are particular cases of shrinkage.

A nex example has been added. Previous one has been updated.
2011-04-04 15:00:41 +02:00