Commit Graph

252 Commits

Author SHA1 Message Date
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
Danny Sullivan a0f0d461bc fixing merge conflicts 2014-10-09 16:23:45 +02:00
Danny Sullivan d0ea44d5e1 adding space to shape and putting // in average division 2014-10-07 12:47:08 +02:00
Danny Sullivan d6c912969c changing parameters for asgd regression benchmark and changing array shape for docstring 2014-10-07 11:25:37 +02:00
Danny Sullivan 984e9aa8f3 increasing testing precision, putting comment on one line and adding asgd to regression benchmark 2014-10-06 14:39:16 +02:00
Kyle Kastner b2d6a30aeb IncrementalPCA implementation 2014-09-22 13:12:29 -04:00
Arnaud Joly 52023128fe MAINT simplify covertype benchmark 2014-08-14 09:39:58 +02:00
Joel Nothman 0e31553de5 ENH Sparse multilabel target support
All multilabel metric calculation is now performed efficiently over
sparse CSR matrices.
2014-07-30 22:13:11 +10:00
Gael Varoquaux 572709920a MISC: avoid overridding figure in benchs 2014-07-15 17:00:22 +02:00