Commit Graph

190 Commits

Author SHA1 Message Date
Andreas Mueller 6972d6c15c DOC minor doc fixes for sphinx. (#7357) 2016-09-08 10:07:40 +10:00
Olivier Grisel 5daee9627d DOC fix iterated_power='auto' in doctests 2016-09-06 11:11:07 +02:00
Preston Parry 58b35d8b9f DOC Updates sklearn naming convention for consistency (#7268)
* Updates sklearn naming convention for consistency

* minor grammar fix

* clarifies source of string vs. function cosine
2016-08-29 08:20:13 +10:00
Yen 42120e50bb [MRG+1] Rename CV params n_{folds,iter} to n_splits (#7187)
* Rename n_iter to n_splits

* Fix bug

* Fix examples

* Add spaces

* Rename n_folds to n_splits

* Fix error

* Fix doc

* Fix doc

* Fix example

* Rename variables name

* PEP8

* Fix error message

* Add whats_new

* Fix test

* Fix doc

* Fix doc

* Make test clear
2016-08-16 13:56:55 -07:00
Óscar Nájera acef8cd671 Sphinx-doc absolute path for auto_example images 2016-08-03 20:23:50 +02:00
Óscar Nájera 7ec54472fd Add carousel
Fix reference link
2016-08-03 20:23:50 +02:00
Óscar Nájera 3d79f03199 update reference namespace in gallery scripts 2016-08-03 20:23:50 +02:00
Óscar Nájera bd5cecce44 update references link namespace 2016-08-03 20:23:50 +02:00
Óscar Nájera 04116ce286 update image sources namespace 2016-08-03 20:23:50 +02:00
Nate George 9b25f5d37a Fix docs links (#7005)
* docs: fix broken and redirect links

see #7000

* docs: fix links

see #7000

* docs: merge with master

* docs: fix fnrs and tinyclues logo links

* docs: fix link reference in text

* docs: fix typo

* docs: added back in metaoptimize-qa paragraph

* docs: update language for defunct site

* docs: update stackexchange section

* docs: remove defunct site, move quora to top

* docs: remove defunct link and rearrange links
2016-07-27 16:58:25 -04:00
Inki Hwang a2dac46e71 Fix minor typo in doc (#7001) 2016-07-16 08:39:10 +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
Andreas Mueller 7efeb5ab60 ENH added elkan k_means algorithm
renamed elkan -> triangle_inequality, lloyd-> full

pep8, rename _kmeans_single -> _kmeans_single_lloyd

add a docstring to elkans k-means in cython.

fixed text for full

Fixed elkans kmeans so that predict is same as labels

Added test to ensure full and triangle_inequality give same results

changed triangle_inequality to elkan

Addressed review comments

removed rebase artifacts

correct whats_new

moved enhancement bullet to 0.18

removed extra newline

strong typing dor prototype

fixed random state

removed c file

removed merge artifacts

removed entry from 0.17

Add documentation and inline_comments to _k_means_elkan.pyx

Minor rearrngement of docstring sentences

removed call to np.sort to improve speed for large number of clusters

replced logic with call to np.partition

Fallback to sort if partition does not exist

use partition from fixes rather than numpy
2016-04-05 19:57:19 -04:00
Rémy Léone 9b7176dd9d [DOC] Fix broken links 2016-03-23 12:45:34 -07:00
giorgiop 328ebfa865 ENH RandomizedPCA collapsed into PCA 2016-03-11 09:10:37 +11:00
YenChenLin ca4c727e22 Fix misuse of it's 2016-02-26 10:16:28 +08:00
Nelson Liu fcfaa5fc37 Updated examples and tests that use scipy's lena
scipy.misc.lena will be removed in scipy version 0.17.
This changes the example to use scipy.misc.face instead.
2016-02-11 09:13:40 +01:00
Raghav R V f67e911124 DOC Modify documentation/examples for the new model_selection module 2015-10-29 16:49:23 +01:00
TomDLT 94eb61960a ENH add sag solver in LogisticRegression and Ridge 2015-09-10 13:28:02 -04:00
Gael Varoquaux fb58d37846 Merge branch 'master' into pr_4009
Conflicts:
	sklearn/neighbors/ball_tree.c
	sklearn/neighbors/dist_metrics.c
	sklearn/neighbors/dist_metrics.pyx
	sklearn/neighbors/kd_tree.c
	sklearn/neighbors/tests/test_neighbors.py
2015-08-30 11:54:40 +01:00
Lars Buitinck 567a956338 Merge branch 'pr/4714' + pep8 fixes
Conflicts:
	doc/modules/model_persistence.rst
	doc/modules/pipeline.rst
	doc/modules/svm.rst
	doc/tutorial/basic/tutorial.rst
	doc/tutorial/statistical_inference/supervised_learning.rst
	sklearn/svm/classes.py
2015-06-08 11:31:51 +02:00
Shivan Sornarajah 41788c353b Changed SVM to use gamma='auto' by default. Deprecated gamma=0.0. 2015-06-05 22:47:43 +01:00
Andreas Mueller 6d4bcda876 ENH refactor OVO decision function, use it in SVC for sklearn-like decision_function shape 2015-06-05 13:14:45 -04:00
Nikolay Mayorov 63039b24bc Added multithreading support for kneighbors search 2015-02-19 13:15:55 +03:00
Andreas Mueller e936dfa641 search C not gamma of linear svm in tutorial 2015-01-27 18:15:36 -05:00
Manoj-Kumar-S e915fcc3ab Changed default argument of precompute in ElasticNet and Lasso
Setting precompute to "auto" was found to be slower when n_samples > n_features
since the computation of the Gram matrix is computationally expensive and
outweighs the benefit of fitting the Gram for just one alpha.
2014-10-03 18:25:12 +02:00
akshayah3 4f2ff2dd7a Small PEP8 fix, n_jobs attribute is compatible with both fit method and the constructor 2014-09-19 15:32:06 +05:30
akshayah3 25c03a7ff8 Added Deprecation warning 2014-09-19 14:39:35 +05:30
jnothman 75e11c0b50 Merge pull request #3591 from MechCoder/refactor_logreg
[MRG] MAINT: Remove BaseLibLinear for LogisticRegression
2014-08-30 21:22:07 +10:00
MechCoder 34a4517983 ENH: Improved verbosity and denesting 2014-08-26 20:48:23 +02:00
MechCoder 959a4ac698 MAINT: Remove BaseLibLinear for LogisticRegression 2014-08-26 13:58:07 +02:00
Lars Buitinck 4b82379c20 TST fix doctest for k-NN 2014-08-25 23:49:56 +02:00
MechCoder 4cd177758f ENH: Merge MultinomialLR into LR with multi_class='multinomial' 2014-08-21 17:37:37 +02:00
Joel Nothman 763af9690a DOC fix line references in tutorial 2014-08-20 21:00:54 +10:00
Joel Nothman 341ca9323b DOC avoid the plot_ prefix in example where no plot
Also fix line reference
2014-08-20 21:00:54 +10:00
MechCoder cf4cf60b7e ENH Stochastic Coordinate Descent for ElasticNet & Lasso 2014-07-29 10:23:33 +02:00
MechCoder e4111290b6 ENH: Weighted logistic regression for lbfgs and newton-cg 2014-07-22 16:57:41 +02:00
Olivier Grisel 2eb1e98eef MAINT ensure that examples figures are displayed in the correct order 2014-07-14 15:47:17 +02:00
Lars Buitinck c176ced74d DOC double backticks for fixed-width (code) font
Fixes #3337. Also other minor fixes while I was at it.
2014-07-06 14:18:33 +02:00
Andreas Mueller 926e651f44 Stop using some deprecated interfaces. 2014-06-08 22:16:26 +02:00
Andreas Mueller 67b8601314 Minor fixes in the docs 2014-06-07 16:38:53 +02:00
Aaron Schumacher b6eedcc210 DOC remove import scikits.learn from tutorial
I think this is mostly a distraction here;
probably better for readers to take it out.
2014-04-13 16:55:29 +02:00
Gael Varoquaux 3ac34554e4 MISC: documentation and cosmits
Address comments by @jnothman
2014-02-17 11:20:42 +01:00
Gael Varoquaux 0cd5251575 FIX: fix failing doctest 2014-02-17 08:37:07 +01:00
Gael Varoquaux 76206f1919 COSMIT: many cosmetic comments
Fixes remarks by @ogrisel, @agramfort, @larsman, @jnothman
2014-02-17 08:34:25 +01:00
Gael Varoquaux 75705e2b24 MISC: remove reference to deprecated Ward 2014-02-07 09:25:08 +01:00
Gael Varoquaux de384755b0 MISC: typos in docs 2014-02-07 08:49:54 +01:00
Gael Varoquaux 1ada65fea2 Merge branch 'master' into hc_linkage
Conflicts:
	sklearn/cluster/tests/test_hierarchical.py
2014-02-04 22:04:48 +01:00
Gael Varoquaux b2473494d0 DOC: more context in embedded code
Fixes #2816
2014-02-02 12:07:55 +01:00
Alexandre Gramfort 7013e243ff FIX : n_jobs was missing from LassoCV 2014-01-11 21:39:25 +01:00
José Ricardo a1aa44904f Fixing small typos in the docs. 2013-12-04 10:52:23 -02:00
Jaques Grobler ea7ad29123 sort out plot_iris vs plot_svm_iris 2013-11-03 22:10:57 -08:00
Nelle Varoquaux 15434800d7 Merge master in hc_linkage 2013-10-28 16:23:05 +01:00
Olivier Grisel e3002c5efc FIX #2372: non-shuffling StratifiedKFold implementation and updated tests 2013-09-25 15:56:47 +02:00
Olivier Grisel 0ab527804e Revert "Fix accidental doctest breakage."
This reverts commit 4c95f5e00a.
2013-09-20 13:27:48 +02:00
Daniel Nouri 4c95f5e00a Fix accidental doctest breakage. 2013-09-20 12:41:39 +02:00
Nelle Varoquaux a45d23fcfd DOC improve narrative docs on hierarchical clustering 2013-08-25 11:33:40 +02:00
Vlad Niculae 2d97949125 DOC update docstrings to reflect libsvm random_state 2013-07-27 19:50:25 +02:00
dengemann 0e5815726a FIX: address @agramfort 's comments 2013-07-23 15:49:26 +02:00
Denis A. Engemann f7f2db14bb ENH: improve tutorial to be more clean. 2013-07-23 15:49:26 +02:00
Denis A. Engemann 17aff7d2f7 FIX: tutorial 2013-07-23 15:49:25 +02:00
Gael Varoquaux 9bd98c34f4 Merge branch 'pr_1732' 2013-07-14 11:43:22 -05:00
Justin Vincent fe52584e83 Got all the doc-tests working 2013-07-10 10:52:25 -04:00
Jake Vanderplas 7b762d88bb DOC: make doc tests pass 2013-07-07 20:24:00 -07:00
Andreas Mueller 65d1ef5147 DOC FIX finite precision 2013-03-15 10:15:15 +01:00
Andreas Mueller 0c94b55c63 ENH add randomized hyperparameter optimization 2013-03-03 20:56:39 +01:00
Alexandre Gramfort adb85bb487 fix doctest 2013-03-02 16:39:42 +01:00
Lars Buitinck 85ec0fd1ae P3K death to the print statement 2013-02-11 23:11:57 +01:00
Jaques Grobler 0985264a4a warning removal 2013-01-26 18:01:29 +01:00
Mark Veronda 9d5ed3a7c2 Feedback from @amueller 2013-01-02 17:24:35 +01:00
Mark Veronda 3352bbac31 Type-os and added great links to learning more about Machine Learning 2013-01-02 17:24:35 +01:00
GaelVaroquaux 252f73c92e COSMIT: pep8, wording, layout 2012-11-08 09:29:07 +01:00
Corey Lynch c188755c2f Edited docs to reflect change in kernel used. 2012-11-08 09:15:16 +01:00
Tadej Janež 425c6e9b83 DOC: further improvements to the model selection exercise 2012-10-27 16:49:22 +02:00
GaelVaroquaux eca762dd9b DOC: improve the model selection exercise
Fixes #1278
2012-10-25 18:12:15 +02:00
Andreas Mueller e64cea0342 ENH add random seed to logistic regression 2012-10-18 13:48:10 +02:00
Andreas Mueller 51b06b8203 FIX doctests for max_iter 2012-10-16 16:46:48 +02:00
Andreas Mueller 1b367e56e5 ENH set n_fold default to 3, rename k to n_fold in all doctests, docs, and examples 2012-10-10 19:10:29 +01:00
Alexandre Gramfort 466479fe03 API : consistent use alpha_/alphas_ for alpha/alphas estimated by CV in linear models (issue #1041) 2012-09-02 23:16:54 +02:00
Lars Buitinck da968171cf DOC tutorial: explain what an estimator is 2012-08-04 01:26:27 +02:00
GaelVaroquaux 01572bf129 TST: fix doctest 2012-07-30 11:35:25 +02:00
GaelVaroquaux df1e71149c DOC: ward docstring and testing 2012-07-26 09:15:57 +02:00
Andreas Mueller d9a6243c98 ENH rename k in clustering examples and doctests to n_clusters 2012-05-30 07:41:34 +02:00
Gael Varoquaux 25112d0069 DOC: more readable title 2012-05-07 08:18:16 +02:00
Andreas Mueller 87f06b74ea DOC more minor fixes 2012-05-06 23:33:55 +02:00
Andreas Mueller 4e3f00833e DOC minor fixes to rst and image paths 2012-05-06 23:28:31 +02:00
Andreas Mueller 3c2e01f8be DOC some doc corrections 2012-05-06 10:47:07 +02:00
Vlad Niculae 3885dd8ac3 FIX: doctests for scale_C, took some liberties 2012-05-05 21:57:05 +02:00
Alexandre Gramfort 15455263b7 API : change back default C to 1. explicitely and epsilon 0.1 2012-05-05 21:57:04 +02:00
Andreas Mueller 5edfa06019 DOC docs and examples have scale_C removed 2012-05-05 21:57:04 +02:00
Roy Hyunjin Han 1c6797b832 Fixed some typos 2012-05-02 13:37:58 -03:00
Andreas Mueller 80e6ec2e4a MISC don't use private ``set_params`` method as that raises a warning. 2012-04-26 13:43:25 +02:00
Andreas Mueller 55959ed879 COSMIT don't use deprecated attributes in tutorial. 2012-04-23 21:16:13 +02:00
Alexandre Gramfort fb4bedf94b Merge pull request #747 from ibayer/posCoeff
positivity constraint for lasso and elastic net
2012-04-11 00:06:06 -07:00
Olivier Grisel 7a87d7f1c7 Merge pull request #742 from davidmarek/pdistance
minkowski p-distance in sklearn.neighbors
2012-04-05 00:16:01 -07:00
Gael Varoquaux 987f0fb490 Merge pull request #751 from jaquesgrobler/master
Removed `_plot` from the face recognition example
2012-04-03 07:45:11 -07:00
Jaques Grobler ca50d31a42 Removed `_plot` from the face recognition example
updated tutorial page to use static image.
2012-04-03 13:20:01 +02:00
flyingimmidev b7b7b62aff fixed doctest 2012-04-01 19:22:50 +02:00
Andreas Mueller 8474e94e9a DOC sphinx/rst errors 2012-03-31 16:10:59 +02:00
Mathieu Blondel a8b5110496 Fix doctest failure. 2012-03-31 21:11:43 +09:00