Commit Graph

14 Commits

Author SHA1 Message Date
VirgileFritsch 7b34256672 Avoid extra computations + clean `assume_centered` argument use. 2012-07-23 16:07:14 +02:00
Jake Vanderplas 96d6060cd7 pep8 2011-12-23 10:12:26 -08:00
Jake Vanderplas 0c38141cc1 BUG: example plot compatibility with older matplotlib versions 2011-12-20 02:03:41 -08: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
Fabian Pedregosa a6918a49a5 Generate thumbnails in the example gallery 2011-09-01 09:35:29 +02:00
Fabian Pedregosa ec41def101 FIX: missing import in plot_covariance_estimation.py 2011-05-03 16:11:08 +02:00
Virgile 3600482558 Reintroduce empirical_covariance function + docstrings + cosmit. 2011-04-26 17:50:13 +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 39d65f2cba Rename BaseCovariance as EmpiricalCovariance + reviews comments.
I still use a function for computing the empirical covariance matrix
since it is useful for dealing with 1-dimensional covariances (that
have to be reshaped). Plus, it corresponds to the scheme used for the
LedoitWolf, ShrunkCovariance and OAS classes (an object + an external
function computing the covariance estimate).
2011-04-07 18:06:57 +02:00
Virgile 8ddde2fb05 More covariance refactoring: separate MLE computation from object.
It had to be possible to fit a simple Maximum Likelihood Estimator of
covariance without having to instantiate a new Covariance object, as
is can result in a loss in code clarity and in performances.  The
separation of algorithm and object follows the model used in
shrun_covariance_.py classes.
2011-04-05 12:38:43 +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