Commit Graph

2859 Commits

Author SHA1 Message Date
Joel Nothman 19c8af6d6a ENH/FIX Replace jaccard_similarity_score by sane jaccard_score (#13151) 2019-03-13 20:59:08 +08:00
Hanmin Qin f867ccc533 DOC balanced_accuracy supports multiclass 2019-03-12 22:48:55 +08:00
Hanmin Qin 7a636f0cc5 DOC utils.testing.mock_mldata_urlopen is deprecated 2019-03-10 08:57:36 +08:00
Joel Nothman 22071218b2 ENH Pipeline can now be sliced or indexed (#2568)
* ENH Pipeline can now be sliced or indexed

* Additional assertion imports for testing

* DOC Documentation and example for Pipeline slicing

* FIX put doctest lines in correct order

* DOC improve compose Pipeline docs

* Fix doctest

* Fix merge error

* DOCs improved after Alex's comments

* This is not the right place to change to LinearSVC

* missed one

* DOC add what's new

* Fix doctest

* doctest tweaks

Co-Authored-By: jnothman <joel.nothman@gmail.com>

* doctest tweaks

Co-Authored-By: jnothman <joel.nothman@gmail.com>

* doctest tweaks

Co-Authored-By: jnothman <joel.nothman@gmail.com>

* fix doctests

* Correct step name

* Update doc/whats_new/v0.21.rst

Co-Authored-By: jnothman <joel.nothman@gmail.com>
2019-03-07 11:22:49 +01:00
Kulbear ab649266e1 DOC Fix a typo in cross_validation.rst (#13398) 2019-03-07 09:08:00 +08:00
Kuai Yu fec7670ad0 ENH Enable the "sufficient stats" mode of LARS (#11699) 2019-03-06 08:06:47 +01:00
Hanmin Qin 7b2676285d DOC Alphabet order in classes.rst 2019-03-04 20:34:47 +08:00
Adrin Jalali bda4005943 MNT remove optics from clustering.rst (#13381) 2019-03-04 19:16:21 +08:00
Adrin Jalali 40441e86f5 [MRG+1] OPTICS fit uses the selected `extract_method` parameter (#12087)
* add extract method parameter

* change fancy to sqlnk

* test for invalid extract_method value

* test easy dbscan

* pep8

* add extract_sqlnk

* mention which parameter is used for which extact method

* add tests for extract methods with no params given

* Add the reference for the SQLNK method.

* make extract_optics_dbscan and extract_optics_sqlnk public

* fix references, sync docstrings

* fix more morege conflicts

* reorganize the code and get it closer to what we want

* pep8

* remove sqlnk, make compute_optics_graph public

* pep8

* remove unused reference

* make tests pass

* fix docstrings

* fix removal of removed parameter

* add back min_cluster size, xi needs it

* pep8

* fix docstring issue

* address Hanmin's comments

* remove core_sample_indices_

* fix comment

* pep8

* apply comments, remove example

* add public functions to classes.rst and __init__

* address Joel's comments
2019-03-03 20:38:00 +01:00
Albert Thomas 37b0e66c87 [MRG] add implementation details for Isolation Forest (#13364)
* add implementation details of Isolation Forest

* fix formula syntax
2019-03-02 08:52:17 +01:00
Albert Thomas 2ad8735c50 FIX set n_quantiles to min(n_samples, n_quantiles) in QuantileTransformer (#13333) 2019-03-01 11:23:56 +01:00
William de Vazelhes d31b67f23d FEA Neighborhood Components Analysis (#10058) 2019-02-28 15:58:07 +01:00
Jonathan Ohayon d045c1abc8 [MRG+2] Change ovr_decision_function scale (#10440)
* unit test for _ovr_decision_function

* sigmoid scale

* error on subset test

* clearer comment on test

* new scaling function forget sigmoid

* remove exception in subset check for SVC decision_function

* add comment and update whats_new

* update comment

* change test for float imprecision

* use 1/3 instead of 1/2

* merge conflict error

* flake8 correction and assert_true replacement

* better comment

* refer to public functions

* remove reference to private function

* rst dots

* change fix comments
2019-02-28 15:04:50 +01:00
Albert Thomas 0f09297cde ENH: simplify transform for uniform output in QuantileTransformer (#12827) 2019-02-26 17:53:38 +01:00
assiaben face9daf04 MNT Delete wrapper function optics around OPTICS (#13271)
* Delete wrapper function optics around OPTICS

optics () is a simple  wrapper around the OPTICS class which instantiates the
class and calls fit. This wrapper exists for DBSCAN or K-Means but not for all
clustering methods. For code homogeneity, I am deleting this function.

* delete optics wrapper from cluster module list

Previous commit forgot to delete the optics wrapper from the cluster module
list. So the test testing the presence of modules failed.
2019-02-26 14:59:55 +01:00
drewmjohnston 350cd4aefa ENH: Add Drop Option to OneHotEncoder. (#12908) 2019-02-26 13:50:21 +01:00
assiaben 74c92ea06e [MRG+1] DOC data centering in PCA (#13242)
[MRG+2] DOC data centering in PCA
2019-02-25 15:00:34 +01:00
Hanmin Qin 5c8167a159 FIX Correct the definition of gamma=`scale` in svm (#13221) 2019-02-24 18:34:43 +11:00
maikia 2480368856 DOC Change CountVectorizer(...lambda..) to OneHotEncoder() in ColumnTransformer examples (#13212) 2019-02-22 23:17:20 +08:00
Christos Aridas eb800524dd DOC Correct word in preprocessing [ci skip] (#13216) 2019-02-21 13:53:43 -08:00
Hanmin Qin 09bc27630f DOC Formatting issue in preprocessing.rst 2019-02-21 21:56:21 +08:00
Roman Yurchak d5258de0d5 DOC Fix formatting typo in the SVM user guide 2019-02-21 11:19:18 +01:00
Joel Nothman b8d1226d69
FEA Add IterativeImputer (#11977)
By Sergey Feldman
2019-02-15 12:05:36 +11:00
Nicolas Hug 64f5630462 DOC Added link for cross validate in user guide (#13167) 2019-02-15 11:07:02 +11:00
Hanmin Qin ff28c42b19 DOC Wrong statement about KBinsDiscretizer 2019-02-14 22:58:52 +08:00
Nicolas Hug 5486fd542b DOC removed false claim about mandatory parameter (#13150) 2019-02-13 09:39:59 +11:00
Giuseppe Vettigli a061ada48e FEA Print Decision Trees in ASCII format (#9424) 2019-02-12 10:23:48 +11:00
Joel Nothman 55f431d26d DOC Refer to ONNX (#13095)
* DOC Refer to ONNX

* DOC drop sklearn-pmml from related projects
2019-02-06 08:25:32 +01:00
surgan12 62d2059804 MNT remove __future__ imports (#12791) 2019-02-02 22:05:06 +08:00
jeremiedbb 79a905977b DOC Clean up the advanced installation doc to remove python < 3.5 parts (#13064) 2019-01-30 11:10:49 +11:00
Vishaal Kapoor fdf2f3834e DOC Correct TF-IDF formula in TfidfTransformer comments. (#13054) 2019-01-29 17:50:41 +11:00
Hanmin Qin c1c20971e3 DOC Move datasets.mldata_filename to deprecated section in classes.rst 2019-01-25 11:27:02 +08:00
Joel Nothman 486f8fc543 DOC fix plot_iris references after files renamed 2019-01-17 23:31:48 +11:00
Christos Aridas d2a77d7e78 DOC Add an example of inductive clustering (#10852) 2019-01-17 22:16:22 +11:00
Thomas Fan 7bc20c0e50 DOC Minor changes to DOCS to address sphinx warnings (#12999) 2019-01-17 17:49:31 +08:00
Thomas Fan e4b4834d0a DOC: Fixes link (#12996) 2019-01-17 13:15:19 +11:00
Fibinse Xavier` 9928713ae5 DOC on parallelisation of custom scorer (#12813) 2019-01-15 18:48:45 +11:00
Thomas Fan a7b8b9e9e1 MAINT Removes total_seconds completely in benchmarks (#12969) 2019-01-13 16:41:28 +01:00
Rüdiger Busche d300f406ae MAINT Simplify super() calls (#12812) 2019-01-10 22:27:06 +01:00
Albert Thomas 0eda10a598 FIX Bayesian ridge regression: returned values to match last update (#12174) 2019-01-10 21:36:03 +11:00
Nicolas Hug 0a07364abd ENH Added penalty='none' to LogisticRegression (#12860) 2019-01-10 09:26:30 +11:00
Wenhao Zhang 581752012c ENH refit=callable in *SearchCV adds flexibility in identifying the best estimator (#11354) 2019-01-09 12:56:30 +11:00
Prabakaran Kumaresshan 7c6d92bbd9 DOC Add schematics for cross-validation and grid search (#12281) (#12499) 2019-01-08 17:48:23 +11:00
Nicolas Hug a50c03f975 [MRG] Add pprint for estimators - continued (#11705)
* add pprint for estimators

* strip color from length, add color option

* Minor cleaning, fixes, factoring and docs

* Added some basic tests

* Fixed line length issue

* fixed flake8 and added visual test for review

* Fixed test

* Fixed Python 2 issues (inspect.signature import)

* Trying to fix flake8 again

* Added special repr for functions

* Added some other visual tests

* Changed _format_function in to _format_callable

because callable() returns True also for class objects (which we want to
reprensent with their name as well anyway)

* Consistent output in Python 2 and 3

* WIP

* Now using the builtin pprint module

* pep8

* Added changed_only param

* Fixed printing when string would fit in less than line width

* Fixed printing of steps parameter

* Fixed changed_only param for short estimators

* fixed pep8

* Added some more description in docstring

* changed_only is now an option from set_config()

* Put _pprint.py into sklearn/utils, added tests

* Added doctest NORMALIZE_WHITESPACE where needed

* Fixed tests

* fix test-doc

* fixing test that passed before....

* Fixed tests

* Added test for changed_only and long lines

* typo

* Added authors names

* Added license file

* Added ellipsis based on number of elements in sequence + added increasinly aggressive repr strategies

* Updated whatsnew

* dont use increaingly aggressive strategy

* Fixed tests

* Removed LICENSE file and put license text in _pprint.py

* fixed test_base

* Sorted parameters dictionary for consistent output in 3.5

* Actually using OrderedDict...

* Addressed comments

* Added test for NaN changed parameter

* Update whatsnew

* Added example to set_config()

* Removed example

* Added example in gallery

* Spelling
2018-12-19 23:48:21 -05:00
Nicolas Hug 55a98ab7e3 [MRG+1] Deprecated logistic_regression_path (#12821)
<!--
Thanks for contributing a pull request! Please ensure you have taken a look at
the contribution guidelines: https://github.com/scikit-learn/scikit-learn/blob/master/CONTRIBUTING.md#pull-request-checklist
-->

#### Reference Issues/PRs
<!--
Example: Fixes #1234. See also #3456.
Please use keywords (e.g., Fixes) to create link to the issues or pull requests
you resolved, so that they will automatically be closed when your pull request
is merged. See https://github.com/blog/1506-closing-issues-via-pull-requests
-->

Closes #12798 

#### What does this implement/fix? Explain your changes.

This PR deprecates the use of `logistic_regression_path` and makes it private.

#### Any other comments?


<!--
Please be aware that we are a loose team of volunteers so patience is
necessary; assistance handling other issues is very welcome. We value
all user contributions, no matter how minor they are. If we are slow to
review, either the pull request needs some benchmarking, tinkering,
convincing, etc. or more likely the reviewers are simply busy. In either
case, we ask for your understanding during the review process.
For more information, see our FAQ on this topic:
http://scikit-learn.org/dev/faq.html#why-is-my-pull-request-not-getting-any-attention.

Thanks for contributing!
-->
2018-12-19 16:52:54 -05:00
Andreas Mueller 0554f10ebd DOC typo simple present singular for SGDClassifier in linear model docs (#12804) 2018-12-18 08:43:39 +08:00
adanhawth ff64eae031 DOC Fix LaTeX text{} block escaping of underscores in doc-modules-model_evaluation.rst (#12788) 2018-12-16 09:07:03 +08:00
Katrin Leinweber 8f8f3c8374 DOC Hyperlink DOIs to preferred resolver (#12792) 2018-12-15 23:36:19 +08:00
Andreas Mueller 4603e481e9 DOC Explain solver choices for LogisticRegression (#12768) 2018-12-14 10:30:57 +08:00
Muhammad Hassaan Rafique 10339f7f02 Update linear_model.rst (#12735)
* Update for Logistic-Regression Table Summary for L-BFGS

* Update for linear_model.rst Logistic-Regression L-BFGS summary.

* Update for Logistic-Regression Doc.

* Logistic-Regression Update

* Update linear_model.rst

* Update jnothman comments

* Update jnothman comments

* Update for jnothman comments.

* test

* test2

* test3

* test4

* Update for Comments from amueller and jnothman

* Update for Comments from amueller and jnothman
2018-12-13 06:07:20 -05:00