Commit Graph

260 Commits

Author SHA1 Message Date
Harizo Rajaona 195de6a154 [MRG+1] Fix multi-label issues in IsolationForest benchmark (#8638)
* Fixed a legacy multi-label issue and added minor refactoring and changes (mostly esthethic)

Minor corrections after code review.

Minor corrections after 2nd code review.

Minor modif

* rerun CI
2017-04-20 17:06:00 +02:00
Arthur Mensch 5147fd09c6 Add SAGA solver for LogisticRegression and Ridge (#8446) 2017-03-27 21:39:30 +02:00
Olivier Grisel b5f2a387f5 FIX s/algorithm/solver/ in bench_mnist.py 2017-03-13 11:50:33 +01:00
Shubham Bhardwaj d10dd50d4e [MRG+1] Fix bench_rcv1_logreg_convergence.py by adding get_max_squared_sum
* [WIP] Fixes #8289 added get_max_squared_sum

* Fixes #8289 made recommended changes
2017-02-06 23:25:37 -05:00
Tom Dupré la Tour 3f0af165f9 DOC Improve benchmark on NMF (#5779)
* ENH improve benchmark on nmf

* add projected gradient solver inside the benchmark file

* add comments and authors for _PGNMF
2016-12-21 00:47:28 +11:00
Loïc Estève 037f505a9e MAING make benchmarks scripts Python 3 compatible 2016-11-25 18:45:17 +01:00
Nicolas Goix 788a458bba [MRG+2] LOF algorithm (Anomaly Detection) (#5279)
* LOF algorithm

add tests and example

fix DepreciationWarning by reshape(1,-1) one-sample data

LOF with inheritance

lof and lof2 return same score

fix bugs

fix bugs

optimized and cosmit

rm lof2

cosmit

rm MixinLOF + fit_predict

fix travis - optimize pairwise_distance like in KNeighborsMixin.kneighbors

add comparison example + doc

LOF -> LocalOutlierFactor
cosmit

change LOF API:
-fit(X).predict() and fit(X).decision_function() do prediction on X without
 considering samples as their own neighbors (ie without considering X as a
 new dataset as does fit(X).predict(X))
-rm fit_predict() method
-add a contamination parameter st predict returns a binary value like other
 anomaly detection algos

cosmit

doc + debug example

correction doc

pass on doc + examples

pep8 + fix warnings

first attempt at fixing API issues

minor changes

takes into account tguillemot advice

-remove pairwise_distance calculation as to heavy in memory
-add benchmarks

cosmit

minor changes + deals with duplicates

fix depreciation warnings

* factorize the two for loops

* take into account @albertthomas88 review and cosmit

* fix doc

* alex review + rebase

* make predict private add outlier_factor_ attribute and update tests

* make fit_predict take y argument

* fix benchmarks file

* update examples

* make decision_function public (rm X=None default)

* fix travis

* take into account tguillemot review + remove useless k_distance function

* fix broken links :meth:`kneighbors`

* cosmit

* whatsnew

* amueller review + remove _local_outlier_factor method

* add n_neighbors_ parameter the effective nb neighbors we use

* make decision_function private and negative_outlier_factor attribute
2016-10-25 11:53:51 -04:00
Olivier Grisel f3baca6e0b [MRG+2] Faster isotonic rebased (#7444) 2016-09-16 19:13:51 +02:00
Shota e2a2b4d403 Fix typos (#6942) 2016-06-27 18:13:49 +02:00
jackmartin c625256f4f Fixed pep8 errors
linting
2016-06-10 18:30:26 -04:00
Alexandre Gramfort ea947b8adf better figsize in iforest bench 2016-05-22 22:06:14 +02:00
Nicolas Goix ce45d3601a take into account raghav comments 2016-05-22 21:55:33 +02:00
Alexandre Gramfort 7e8631a07d cleanup bench script 2016-05-22 21:55:33 +02:00
Nicolas Goix 67fa7e0cc3 fuse benchmarks 2016-05-22 21:55:33 +02:00
Nicolas Goix f89fe80b1c cosmit 2016-05-22 21:55:33 +02:00
Nicolas Goix 37b1594bf1 add an example + change predict to respect convention 2016-05-22 21:55:33 +02:00
Nicolas Goix 6bdcba6bf5 update doc + bench 2016-05-22 21:55:33 +02:00
Nicolas Goix 2cc61601d2 plot decision function histogram on bench datasets 2016-05-22 21:55:33 +02:00
Robert Lutz 0c879ba551 [MRG+1] Fix: Replace pylab with matplotlib.pyplot #6754 (#6762)
* Fix: Replace pylab with matplotlib.pyplot #6754

 - one instance of 22 occurrences of pylab replaced with matplotlib.pyplot
 - bench_glm.py now free of pylab references
 - code executes properly

* Fix: Replace pylab with matplotlib.pyplot #6754

- one instance of 21 remaining occurrences of pylab replaced with
    matplotlib.pyplot
- bench_glmnet.py now free of pylab references
- code does not execute for extraneous reason: ImportError: No module named
    glmnet.elastic_net

* Fix: Replace pylab with matplotlib.pyplot #6754

- one instance of 19 occurrences of pylab replaced with matplotlib.pyplot
- bench_lasso.py now free of pylab references
- code executes properly

* Fix: Replace pylab with matplotlib.pyplot #6754

- one instance of 18 occurrences of pylab replaced with matplotlib.pyplot
- bench_plot_neighbors.py now free of pylab references
- code executes properly

* Fix: Replace pylab with matplotlib.pyplot #6754

- one instance of 17 occurrences of pylab replaced with matplotlib.pyplot
- bench_plot_omp_lars.py now free of pylab references
- code does not execute for extraneous reasons:
    - File "bench_plot_omp_lars.py", line 111, in <module>
    - ax = fig.add_subplot(1, 2, i)
    - ValueError: num must be 1 <= num <= 2, not 0
    - line 111 should probably be ax = fig.add_subplot(1, 2, i+1)

* Fix: Replace pylab with matplotlib.pyplot #6754

- bench_plot_parallel_pairwise.py now free of pylab references
- code executes properly

* Fix: Replace pylab with matplotlib.pyplot #6754

- bench_plot_ward.py now free of pylab references
- code executes properly

* Fix: Replace pylab with matplotlib.pyplot #6754

- bench_sgd_regression.py now free of pylab references
- code executes properly

* Fix: Replace pylab with matplotlib.pyplot #6754

- bench_tree.py now free of pylab references
- code executes properly

* refactor: Replace pl with plt

- replace instances of pl (as on import pylab as pl)
  with plt (as in import matplotlib.pyplot as plt)
- bench_glm.py clean

* refactor: Replace pl with plt

- replace instances of pl (as on import pylab as pl)
  with plt (as in import matplotlib.pyplot as plt)
- bench_glm.py clean of pl
- code does not execute for extraneous reasons

* refactor: Replace pl with plt

- replace instances of pl (as on import pylab as pl)
  with plt (as in import matplotlib.pyplot as plt)
- bench_lasso.py clean of pl
- code executes properly

* refactor: Replace pl with plt

- replace instances of pl (as on import pylab as pl)
  with plt (as in import matplotlib.pyplot as plt)
- bench_plot_neighbors.py clean of pl
- code executes properly

* refactor: Replace pl with plt

- replace instances of pl (as on import pylab as pl)
  with plt (as in import matplotlib.pyplot as plt)
- bench_plot_omp_lars.py clean of pl
- code does not execute for extraneous reasons

* fix: Fix bug that prevented graphs from displaying

* refactor: Replace pl with plt

- replace instances of pl (as on import pylab as pl)
  with plt (as in import matplotlib.pyplot as plt)
- bench_plot_parallel_pairwise.py clean of pl
- code executes properly

* refactor: Replace pl with plt

- replace instances of pl (as on import pylab as pl)
  with plt (as in import matplotlib.pyplot as plt)
- bench_plot_ward.py clean of pl
- code executes properly

* refactor: Replace pl with plt

- replace instances of pl (as on import pylab as pl)
  with plt (as in import matplotlib.pyplot as plt)
- bench_sgd_regression.py clean of pl
- code executes properly

* refactor: Replace pl with plt

- replace instances of pl (as on import pylab as pl)
  with plt (as in import matplotlib.pyplot as plt)
- bench_tree.py clean of pl
- code executes properly

* docs: removed pylab references from comments

* docs: removed all pylab references

- replaced with matplotlib.pyplot
- pl --> plt

* docs: removed pylab references from comments

- replaced with matplotlib.pyplot
- pl --> plt

* docs: removed all pylab references

- replaced with matplotlib.pyplot
- pl --> plt

* refactor: Replace pl with plt

- replace instances of pl (as on import pylab as pl)
  with plt (as in import matplotlib.pyplot as plt)
- mlcomp_sparse_document_classification.py clean of pl

* refactor: Replace pl with plt

- replace instances of pl (as on import pylab as pl)
  with plt (as in import matplotlib.pyplot as plt)
- plot_gpr_noisy_targets.py clean of pl
- code does not execute for extraneous reasons
  - File "examples/gaussian_process/plot_gpr_noisy_targets.py", line 31, in
      <module>
  - from sklearn.gaussian_process import GaussianProcessRegressor
  - ImportError: cannot import name GaussianProcessRegressor

* refactor: Replace pl with plt

- replace instances of pl (as on import pylab as pl)
  with plt (as in import matplotlib.pyplot as plt)
- plot_gpc_isoprobability.py clean of pl
- code does not execute for extraneous reasons
  - File "examples/gaussian_process/plot_gpc_isoprobability.py", line 24, in
      <module>
  - from sklearn.gaussian_process import GaussianProcessClassifier
  - ImportError: cannot import name GaussianProcessClassifier

* docs: removed all pylab references

- replaced with matplotlib.pyplot
- pl --> plt

* docs: removed all pylab references

- replaced with matplotlib.pyplot

* refactor: Replace pl with plt

- replace instances of pl (as on import pylab as pl)
  with plt (as in import matplotlib.pyplot as plt)
- plot_sparse_coding.py clean of pl
- code executes properly

* docs: removed all pylab references

- replaced with matplotlib.pyplot

* docs: removed all pylab references

- replaced with matplotlib.pyplot

* style: Indent properly

* style: indent properly

* style: Indent properly

* docs: Add missing .pyplot

* docs: Fix typo

* style: Indent properly
2016-05-10 11:34:33 +02:00
Thierry Guillemot 78a674875e Correct the deprecation of the random_integers numpy function. (#6712) 2016-04-26 16:08:48 +02:00
seales 0485ada58b General spelling fixes 2015-12-16 09:46:42 -08:00
Rémy Léone 845a7a166b MAINT Use with to handle file 2015-11-20 11:46:12 +01:00
Gilles Louppe 5c8855d0fc Merge pull request #4163 from ngoix/iforest
[MRG + 1] Isolation forest - new anomaly detection algo
2015-10-24 19:53:55 +02:00
ngoix a75eb63194 iforest
example + benchmark

explanation

make some private functions + fix public API

IForest using BaseForest base class for trees

debug + plot_iforest

classic anomaly detection datasets and benchmark

small modif

BaseBagging inheritance

shuffle dataset before benchmarking

BaseBagging inheritance

remove class label 4 from shuttle dataset

pep8 + rm shuttle.csv bench_IsolationForest.png + doc decision_function

add tests

remove comments

fetching kddcup99 and shuttle datasets

fetching kddcup99 and shuttle datasets

pep8

fetching kddcup99 and shuttle datasets

pep8

new files iforest.py and test_iforest.py

sc

alternative to pandas (but very slow)
in kddcup99.py

faster parser

sc

pep8 + cleanup + simplification

example outlier detection

clean and correct

idem

random_state added

percent10=True in benchmark

mc

remove shuttle + minor changes

sc

undo modif on forest.py and recompile cython on _tree.c

fix travis

cosmit

change bagging to fix travis

Revert "change bagging to fix travis"

This reverts commit 30ea500eb818c7a2c6ea5c3d63e75c6935aa3a35.

add max_samples_ in BaseBagging.fit to fix travis

mc

API : don't add fit param but use a private _fit + update tests + examples to avoid warning

adapt to the new structure of _tree.pyx

cosmit

add performance test for iforest

add _tree.c _utils.c _criterion.c

TST : pass on tests

remove test

relax roc-auc to fix AppVeyor

add test on toy samples

Handle depth averaging at python level

plot example: rm html add png

load_kddcup99 -> fetch_kddcup99 + doc

Take into account arjoly comments

sh -> shuffle

add decision_path code from #5487 to bench

Take into account arjoly comments

Revert "add decision_path code from #5487 to bench"

This reverts commit 46ad44ab487f4fd2728d927cbe09000330e8663e.

fix bug with max_samples != int
2015-10-24 15:17:32 +02:00
Glenn Qian 917bacb66e Finish up mlp_refactoring and squash previous commits 2015-10-23 12:08:11 -04:00
Andreas Mueller 3891af8d99 iterate, improve. Nesterov's momentum. 2015-10-21 14:43:38 -04:00
Olivier Grisel 3c8210f752 ENH better 'constant' learning rate schedule 2015-10-21 14:41:41 -04:00
Andreas Mueller cb4c935834 minor fixes to bench_mnist. 2015-10-21 14:41:40 -04:00
Issam Laradji 587315e3a9 (WIP) Added Multi-layer perceptron (MLP)
Seeking to finalize MLP
2015-10-21 14:41:40 -04:00
giorgiop b18f2951e4 randomized_svd: power iter, normalization, benchmark 2015-10-21 11:21:40 +02:00
TomDLT ceeef70037 ENH refactor NMF and add CD solver 2015-09-21 11:42:07 +02:00
TomDLT 94eb61960a ENH add sag solver in LogisticRegression and Ridge 2015-09-10 13:28:02 -04:00
Raghav R V 664d78eb7c MAINT Remove support for the deprecated sequence of sequences
MAINT Remove sequence of sequence support from datasets
MAINT Remove return_indicator param
MAINT Remove multilabel-seq test in OVR
MAINT Remove multilable-seq test in check_cv
MAINT Remove multilabel seq test in label_binarizer
TST type_of_target returns "unknown" for multilabel-sequence types
TST _check_targets should raise a ValueError
DOC show multilabel indicator as an example; remove return_indicator param
DOC use consistent lower case y for target
2015-08-11 22:26:44 +05:30
Joel Nothman 7fca5a1257 COSMIT prefer loops to repetition in LSHForest benchmark 2015-08-09 16:21:18 +10:00
Andreas Mueller 806cb221e7 remove some style errors in bench code. 2015-03-10 16:24:48 -04:00
Saket Choudhary 6f9ce0bbae FIX precompute_gram->precompute as in #2224
Signed-off-by: Saket Choudhary <saketkc@gmail.com>
2015-02-08 11:14:22 -08:00
Arnaud Joly 5bb3cbfd82 DOC add performance for all available classifiers 2015-01-14 09:48:18 +01:00
Arnaud Joly b0dba06d2d ENH Improve script output display 2015-01-12 12:06:07 +01:00
Arnaud Joly fa0ceee4dc ENH add a benchmark on mnist 2015-01-12 11:51:48 +01:00
Joel Nothman ed5c63fb0f TST LSHForest benchmark script uses vectorised queries and fixed random_state 2014-12-23 07:49:14 +11:00
Lars Buitinck 8181fe98ac FIX LSH benchmark: joblib import, hardcoded /tmp 2014-12-18 19:50:02 +01:00
Olivier Grisel fa70b57b7b DOC: explain the importance of iid index and queries in bench script 2014-12-18 19:47:03 +01:00
maheshakya 53e04ed9cb FIX Fixed benchmark.
ENH Added error bars to scalability example plots.
2014-12-18 19:47:03 +01:00
maheshakya b018524136 Created benchmark for approximate nearest neighbors. 2014-12-18 19:45:07 +01:00
Joel Nothman 081a554698 FIX P/R/F metrics and scorers are now for binary problems only by default
Scorers for different average parameters have been added.
2014-12-09 13:56:51 +11:00
Arnaud Joly 2838a1409f Benchmark: Add more estimators + uncomment text 2014-11-06 13:58:34 +01:00
Arnaud Joly bf9891683b Temporarily allows to set algorithm switching through an environment variable 2014-11-06 13:58:34 +01:00
Arnaud Joly c31d5653b3 wip benchmark 2014-11-06 13:58:34 +01:00
Arnaud Joly 24281b1e74 Lower number of trees 2014-11-06 13:58:33 +01:00
Arnaud Joly 06701fcfe0 ENH add a benchmark script for sparse input data 2014-11-06 13:58:33 +01:00