Commit Graph

2260 Commits

Author SHA1 Message Date
John Boersma e8a2e2705a Test edit. 2015-10-23 11:42:53 +02:00
yanlend 9f8e062571 fix docs and doctests for KernelPCA 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
Jan Hendrik Metzen e2a340a4ee REF More meaningful names for hyperparameters of GP kernels 2015-10-19 18:07:14 +02:00
Jan Hendrik Metzen d21b648754 FIX Changing bounds in GP doctest 2015-10-19 18:07:14 +02:00
Jan Hendrik Metzen 266b9e9ebb FIX Fixing a python2.6-related issue 2015-10-19 18:07:14 +02:00
Jan Hendrik Metzen 98e8093c93 FIX Further python3 related fixes 2015-10-19 18:07:14 +02:00
Jan Hendrik Metzen e6f028455c FIX python3 compatibility in doctest 2015-10-19 18:07:14 +02:00
Jan Hendrik Metzen f76e64c9c7 FIX Fix failing tests (doctest, order of hyperparameters, pairwise_kernels) 2015-10-19 18:07:14 +02:00
Jan Hendrik Metzen 47721922d8 DOC Fixing some minor issues in narrative doc of GPs 2015-10-19 18:07:14 +02:00
Jan Hendrik Metzen 1813322d0a DOC Documenting GP kernel API 2015-10-19 18:07:14 +02:00
Jan Hendrik Metzen 35aace4c30 DOC Revising GP documentation based on @kastnerkyle comments 2015-10-19 18:07:14 +02:00
Jan Hendrik Metzen 7f7455c91c DOC Updating documentation of multi-class GPC 2015-10-19 18:07:13 +02:00
Jan Hendrik Metzen 5c2725b4e0 DOC Cleaning up documenation of legacy GPs 2015-10-19 18:07:13 +02:00
Jan Hendrik Metzen 0de854a8b0 DOC Updated documentation of Gaussian process classifier 2015-10-19 18:07:12 +02:00
Jan Hendrik Metzen 7299cb6607 DOC Added further doc for GPC 2015-10-19 18:07:12 +02:00
Jan Hendrik Metzen 955aa60571 DOC Adding documentation on Matern kernel 2015-10-19 18:07:12 +02:00
Jan Hendrik Metzen cb9935b729 DOC Extending further the GP documentation 2015-10-19 18:07:11 +02:00
Jan Hendrik Metzen a5c1187737 DOC Documentation of the CO2 example 2015-10-19 18:07:11 +02:00
Jan Hendrik Metzen d26c355374 DOC Adding documentation for GP kernels 2015-10-19 18:07:11 +02:00
Raghav R V a87011262a FIX precision to float64 across the codebase 2015-10-16 11:20:29 +02:00
Andreas Mueller 1b9e791d92 Merge pull request #5398 from rvraghav93/fix_for_numpy_10
[MRG + 2] FIX dtypes to conform to the stricter type cast rules of numpy 1.10
2015-10-15 12:45:43 -04:00
Raghav R V 4f4c3598e6 FIX dtypes to conform to the stricter type cast rules of numpy 1.10
FIX set copy to (copy & whiten).

FIX/DOC Use float outputs for doctest
2015-10-15 18:21:51 +02:00
Clyde-fare a60152655b Added laplacian kernel
A variant of the rbf kernel that uses the L1 norm.
Updated docs and kernel references.
2015-10-14 13:56:57 -04:00
giorgiop 6a5a2f7960 partial_fit for scalers 2015-10-13 11:37:00 +02:00
Manoj Kumar 652b950074 Merge pull request #4242 from MechCoder/select_from_model
[MRG+1] Implemented SelectFromModel meta-transformer
2015-10-10 23:15:06 -04:00
MechCoder c805fbc79b Refactor tests 2015-10-10 22:05:40 -04:00
MechCoder 5a0db1717a 1. Added parameter prefit to pass in a fitted estimator.
2. Use assert_warns instead of catch_warnings
3. Remove depracation warnings in common tests.
2015-10-09 01:57:36 -04:00
Lilian Besson e103c317b3 Fix few typos on links and doi
- Add https for Wikipedia pages,
- Add http://dx.doi.org/ link for doi entries.
2015-10-08 11:16:48 +02:00
Lilian Besson 37c6717213 Missing link for inertia (about K-Means)
Changing `inertia <inertia>` to `inertia <inertia>`_ fixes the display issue, but the link still does not exist...

Any suggestions?
2015-10-07 23:32:55 +02:00
Arnaud Joly bdc39e7436 DOC FIX missing minus in Shannon's entropy formula 2015-10-07 16:27:10 +02:00
Lilian Besson 919968af08 Fixed typo in the final ".. note::" of naive_bayes.rst
The rST compound is ``.. note::``, the two ``.. `` were missing (the last remark displayed badly on http://scikit-learn.org/stable/modules/naive_bayes.html).
2015-10-06 08:24:15 +02:00
MechCoder acf5f160a8 Merge SelectFromModel and L1-selection examples
Add test to check the threshold can be set without refitting
2015-10-05 11:25:07 -04:00
MechCoder 2ee718cc75 Add narrative docs and fix examples 2015-10-05 11:25:06 -04:00
Jacob Schreiber 02c0029baa ENH gbt sparse support 2015-09-28 13:44:12 -07:00
TomDLT ceeef70037 ENH refactor NMF and add CD solver 2015-09-21 11:42:07 +02:00
Andreas Mueller 770d089fd0 Merge pull request #4887 from amueller/tsne_fixes
Rebase of barnes-hut TSNE
2015-09-19 20:33:11 -07:00
Fernando Carrillo dae50f53da Updated link. Original link to ZhangIJCV06 paper "Local Features and Kernels for Classification of Texture and Object Categories: A Comprehensive Study" was dead. Replaced all occurances of "http://eprints.pascal-network.org/archive/00002309/01/Zhang06-IJCV.pdf" with "http://research.microsoft.com/en-us/um/people/manik/projects/trade-off/papers/ZhangIJCV06.pdf" 2015-09-18 08:01:29 -04:00
Vinayak Mehta 0de583acb0 Fixed LDA typo in doc 2015-09-14 21:50:27 +05:30
Olivier Grisel 0bc3a6fbca Merge pull request #5245 from ogrisel/lda-acronym-deprecation
[MRG+1] Deprecate LDA/QDA in favor of expanded names
2015-09-14 13:35:06 +02:00
Andreas Mueller 6dd6f8ffe8 minor fixes to the doc build 2015-09-11 17:32:51 -04:00
Christopher Erick Moody fe09a077da FEAT Barnes-Hut t-SNE
Renamed example file & added comments

FEAT Barnes-Hut t-SNE

Vectorized the math calls -- 3x faster on neg grad

Draft of n-dimensional barnes-hut; failing tests

Tests pass, error being computed in cython

Added error calculation to pos gradient

Changed cases where points are very close to be clearer

Clearer variable names
2015-09-11 13:19:15 -04:00
Vinayak Mehta 679936f6bc MAINT Deprecate LDA/QDA in favor of expanded names
The LDA accronym for Linear Discriminant Analysis is ambiguous
because of the newly introduced Latent Dirichlet Allocation model.

We therefore deprecate the sklearn.lda.LDA and sklearn.lda.QDA
in favor of explicit names.
2015-09-11 15:32:11 +02:00
TomDLT 94eb61960a ENH add sag solver in LogisticRegression and Ridge 2015-09-10 13:28:02 -04:00
Vighnesh Birodkar 2f099334f9 MAINT deprecate 1d input arrays for all estimators
Passing 1D arrays to check_array, without setting `ensure_2d` to false now
raises a deprecation warning before reshaping it. This will later throw an
error.

All Scaler classes also throw warnings when 1D arrays are passed.

All unit tests/doctests are modified to ensure that no 1D arrays are passed,
except in explicit 1D array tests where the warnings have been silenced.

Additional tests are also included which check for different 1D array cases.

2D array tests with one samples and one features are also added and where
they failed, `check_array` call has been modified to give a more useful error
message
2015-09-09 15:49:58 +02:00
Andreas Mueller 6f696cac53 Merge pull request #5218 from mooz/patch-1
Correct expectation notation in DP-GMM doc
2015-09-08 16:54:33 -04:00
Gilles Louppe c769a65e15 COSMIT: variable names, documentation, etc 2015-09-07 10:08:17 +02:00
Gilles Louppe cf7bc7b035 ENH: rename to LabelKFold
COSMIT: doc, pep8, etc

Refactor code
2015-09-07 09:56:19 +02:00
Jean Kossaifi 6eb4028519 Added subject independent KFold
Changed SubjectIndependentKFold to DisjointGroupKFold

cosmetic changes  test (fix seed correctly, use assert_equal for
meaningful error messages)

Changed name to DisjointLabelKFold

Added example of use

FIX: whitespace related doctest failure

FIX: Python 2.6 requires the field numbers in print

FIX: change docstring to comment in test function

DOC: moved docstring from function to class

FIX: added call to parent class

FIX: error in calling the parent

DOC: fixed doctest

FIX: doctest

Cosmetic changes (minor refactoring)

Optimised code (use np.bincount)

Cosmetic: use samples instead of weight for clarity

Minor fix: removed shuffle parameter

Cosmetic

Use mergesort instead of quicksort for reproducibility.

Changed variable name 'y' to 'label'.

Added test for degenerate case where n_folds > n_labels.

Documented the requirement n_labels > n_folds.

DOC: improved description + added see also sections.

Fixed dtype of temporary arrays.

Improved test: check that one label is not in both test and training.

Added documentation for DisjoinLabelKFold.
2015-09-07 09:53:58 +02:00
Masafumi Oyamada cdaad2d3e0 Correct expectation notation in DP-GMM doc
Unify expectation notation to E_q[\log P(X_i|z_i=k)],
which is thoroughly used in the other part of the document
2015-09-07 11:34:05 +09:00