Commit Graph

48 Commits

Author SHA1 Message Date
Adrin Jalali 18af51408d DOC examples added to sklearn.decomposition classes (#11775) 2018-08-18 19:50:10 +03:00
Hanmin Qin 9b8fd0b0d0 DOC Correct default n_jobs & reference the glossary (#11808)
Also improves the glossary entry for n_jobs.
2018-08-18 19:57:10 +10:00
Olivier Grisel 40e6c43cb4
Joblib 0.12.2 (#11741)
* joblib 0.12.2

* Export _joblib's register_parallel_backend

* Use latest version of coverage
2018-08-03 12:34:25 +02:00
Vivek Kumar cb3c704fa1 DOC Clarified documentation of X_transformed_fit_ and dual_coef_ in KernelPCA (#11130) 2018-05-29 21:26:30 +08:00
RAKOTOARISON Herilalaina 72fb54c767 [MRG+1] - No private setting in __init__ apart from parameters (#9450) 2017-12-13 12:19:56 +01:00
(Venkat) Raghav, Rajagopalan b6f8865b0a [MRG + 1 (rv) + 1 (alex) + 1] Add a check to test the docstring params and their order (#9206)
* add automatic test of docstrings for function / method signatures using numpydoc
2017-07-11 18:42:10 +02:00
Naoya Kanai bd0fc236e0 [MRG+1] MAINT drop SciPy < 0.13 (#8854)
Remove sklearn.utils.fixes functions that are not needed for scipy >= 0.13 and keep deprecated wrappers in other modules.
2017-06-02 23:36:33 +02:00
Milen Paskov 3a3637c571 [MRG+1] Misleading gamma description (#8699) (#8716)
[DOC] update description of gamma for kernel methods
2017-04-22 15:45:08 +02:00
Guillaume Lemaitre e3c9ae204f [MRG+1] DOC improve description and consistency of random_state (#8689)
* DOC improve description of random_state in train_test_split

* DOC Make random_state consistent through documentation

* FIX reverse doc mistake

* FIX address comment of Tom

* DOC address comments

* DOC remove empty line

* DOC remove unecessary white spaces
2017-04-05 17:43:21 -07:00
Joel Nothman 8570622a44 [MRG+1] DOC insert spaces before colons in parameter lists (#7920)
* DOC insert spaces before colons in parameter lists

Complies with numpydoc to improve rendering and automatic quality
assurance such as #7793. Affects listings of Parameters Attributes,
Returns.

Performed with the help of:

    grep -nE '^(    )+[a-zA-Z][a-zA-Z0-9_]*: ' sklearn -R | grep -v -e
    externals -e tests | grep -v -e default: -e else: -e Warning: -e Note:
    -e TRAIN: -e Default: -e True: -e False: -e DOI: -e In: | gsed
    's|\([^:]*\):\([0-9]*\):\([^:]*\):\(.*\)|--- a/\1\n+++ b/\1\n@@ -\2,1
    +\2,1 @@\n-\3:\4\n+\3 :\4|' | git apply --unidiff-zero -

* DOC fix numpydoc format for param
2016-11-25 10:59:22 +01:00
Andreas Mueller 60a1356f31 [MRG + 1] More versionadded everywhere! (#7403)
* insert versionadded versionchanged directives in docstrings for 0.18

indicate where exception classes were moved from

* moved versionadded in the proper places
2016-09-27 16:19:47 -04:00
Henry Lin cefd3ca62f [MRG + 1] DOC Default parameter info for KernelPCA (#6035)
* Added default attribute information and more parameter data to KernelPCA docs

* Pulling back changes from rebase
2016-09-16 11:33:08 +10:00
Andreas Mueller 6972d6c15c DOC minor doc fixes for sphinx. (#7357) 2016-09-08 10:07:40 +10:00
hlin117 e5c366f77f Merge PR #6037: copy_X in KernelPCA
Ensuring consistent transforms for KernelPCA

Taking @vene's changes into account, thanks!

Taking @jakevdp's comment into account

Added more verbose documentation to kernel_pca.py

Specifying that X_fit_ will not be None. @jakevdp

KernelPCA: Fixing more formatting of docstring

Addressed @vene's documentation comments

Addressing that dual_coef_ might not be present in model in docs. @vene
2016-03-24 19:01:10 -04:00
ldavid dd85a67211 Add parallelism to multiple algorithms
Update kneighbors_graph()

   Add n_job attribute.

 Update Isomap

   Add n_job attribute to Isomap.__init__ method.

 Conform isomap.py to pep8.

 Conform graph.py to pep8.

 Update dbscan_.py

    Add n_jobs parameter to dbscan function and DBSCAN.__init__ method.
    Refactor DBSCAN.__init__ documentation.

 Update mean_shift_.py

    Add n_jobs parameter to estimate_bandwidth function.
    Propagate existing n_jobs parameter in mean_shift to estimate_bandwidth and NearestNeighbors.

 Conform mean_shift_.py to pep8.

 Conform locally_linear.py to pep8.

 Add n_jobs parameter to SpectralClustering.__init__ method.

 Add n_jobs parameter to SpectralEmbedding.__init__ method.

 Update usage of barycenter_kneighbors_graph function.

 Conform spectral_embedding_.py to pep8.

 Update label_propagation.py

    Conform to pep8.
    Refactor imports.
    Add n_jobs parameter to LabelSpreading.__init__ method.

 Update dbscan function call.

    Remove n_jobs argument from dbscan call, as it is already being given by self.get_params().

 Add n_jobs parameter to KernelPCA.__init__ method.

 Update KernelPCA construction in Isomap.
 Remove unnecessary parentesis in isomap.py:211,29.

Update docs: pipeline.rst

Revert "Fix n_jobs usage"

This reverts commit 9480630a69bbb68b01d1176d476222fc665cdd1e.

Fix usage of n_jobs property in Isomap
2016-02-11 15:44:25 -02:00
seales fe4dbe353c Fix Kernel PCA docstring to reflect how remove_zero_eig defaults to false 2015-12-07 17:57:03 -08:00
yanlend 9f8e062571 fix docs and doctests for KernelPCA 2015-10-23 08:57:30 +02:00
Peter Fischer 6cb51b2a28 Initialize ARPACK eigsh
`v0 = random_state.rand(M.shape[0])` leads to an initial residual vector in ARPACK which is all positive. However, this is not the absolute or squared residual, but a true difference. Thus, it is better to initialize with `v0=random_state.uniform(-1, 1, M.shape[0])` to have an equally distributed sign. This is the way that ARPACK initializes the residuals.
The effect of the previous initialization is that eigsh frequently does not converge to the correct eigenvalues, e.g. negative eigenvalues for s.p.d. matrix, which leads to an incorrect null-space.

- initialized all occurences of sklearn.utils.arpack.eigsh the same way it would be initialzed by ARPACK
- regression test to test behavior of new initialization
2015-10-23 08:57:30 +02:00
Raghav R V e3afc0e8c9 MAINT move custom error/warning classes into sklearn.exceptions
ENH NonBLASDotWarning -> EfficiencyWarning; Improve error message
DOC Add exceptions module to modules/classes.rst
MAINT Move ConvergenceWarning, UndefinedMetricWarning et al into exceptions
MAINT Remove ChangedBehaviorWarning from base
DOC/FIX Improve DataConversionWarning's docstring
2015-10-19 22:35:35 +02:00
Andreas Mueller 0650d5502e DOC adding backlinks to docstrings 2015-06-03 00:24:04 -04:00
Raghav R V b8ffa951b1 FIX Make error message more explicit in fit_inverse_transform 2015-01-12 00:33:40 +05:30
Raghav R V abd31d2cad MAINT Make uniform the error raised for not fitted condition 2015-01-12 00:33:40 +05:30
gpassino 969e677353 DOC fix kernels documentation inconsistencies
Fixes gh-3916, gh-2901.
2014-12-01 11:51:36 +01:00
Joel Nothman b3bdb08964 DOC fix formatting of attributes etc. in docstrings 2014-07-28 19:04:59 +10:00
matrixorz 08a7f67491 fix issue #2901 2014-03-20 23:21:43 +08:00
Jaques Grobler 8861833ec9 DOC spellfixes 2013-06-29 16:18:23 +03:00
Robert Layton dacfd8bd5d DOC: Replaced all BSD style licenses with "BSD 3 clause"
Replaced all BSD style licenses with "BSD 3 clause"
Not checked yet!

Removed duplicate "3 clause, 3 clause"

Removed trailing period if exists

Fixed some missed licences, still about 50 to do, but those can be automated

Think I got the last of them.

Apparently me and sed have different ideas of regex.

Found a few more
2013-04-30 08:34:46 +02:00
Lars Buitinck ae700081a6 ENH allow additional kernels on KernelPCA
Also changed pairwise_kernels to raise ValueError instead of
AttributeError, as the latter is easy to mix up with a bug.
2013-03-18 21:48:12 +01:00
Lars Buitinck 4610103df6 BUG + ENH: removal of components in kernel PCA 2013-03-10 18:32:16 +01:00
Lars Buitinck a7c6b069b1 BUG in KernelPCA: wrong default value for gamma 2013-02-18 14:29:55 +01:00
Aymeric Masurelle e96c0e5339 correct indent pb and re-edit cosine_kernel help in metrics/pairwise.py 2013-01-05 13:52:57 +01:00
Aymeric Masurelle 20909e5dc9 name change: cos into cosine 2013-01-05 13:50:09 +01:00
Aymeric Masurelle edef908392 add cos_kernel in help of decomposition/kernel_pca.py 2013-01-05 13:49:21 +01:00
Mathieu Blondel 54b4ba2b99 Cosmit: make KernelCenterer a private attribute in KernelPCA. 2012-11-19 16:41:37 +09:00
Andreas Mueller 9a520779c2 FIX/TST test anc fix grid search with kernel pca and precomputed kernel in pipeline. 2012-08-05 16:23:25 +01:00
Andreas Mueller ef82d75c5b ENH going for a universal property ``_pairwise`` instead of many functions. 2012-06-03 20:39:02 +02:00
Andreas Mueller 5072bb07e3 DOC Deprecation warning with removal version 0.13. 2012-06-03 20:35:05 +02:00
Andreas Mueller 4f11178a97 ENH fit_transform_pairwise for KernelPCA 2012-06-03 20:34:25 +02:00
Andreas Mueller c39ad04bb4 ENH fit_pairwise, transform_pairwise for KernelPCA 2012-06-03 20:33:06 +02:00
Andreas Mueller 667ef37714 DOC move references from Notes to References section in docstrings 2012-03-04 15:16:51 +01:00
Olivier Grisel 9c6e0445ae FIX #614: raise ValueError at KernelPCA init if fit_inverse_transform and precomputed kernel 2012-02-17 09:34:43 +01:00
Mathieu Blondel b7ffb6bf92 Use pairwise_kernels in KernelPCA. 2012-01-16 18:20:39 +09:00
Andreas Mueller 26a793459e COSMIT underscore fixes 2011-12-22 21:05:27 +01:00
Andreas Mueller 6c17d0d8af COSMIT make 'References' bold and minor other fixes. 2011-12-22 20:57:54 +01:00
Jake Vanderplas 954b09804f bug: mode='LM' -> mode='LA' 2011-11-07 11:59:05 -08: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