Commit Graph

20 Commits

Author SHA1 Message Date
Bartosz Michałowski fa98a72dcc MNT Replaced all occurrences of assert_true and assert_false with assert (#12588) 2018-11-28 09:16:26 +08:00
Thomas Moreau d25da1be20 FIX make joblib utils private, and remove mentions of externals.joblib (#12345) 2018-11-20 10:53:52 +11:00
Nicolas Hug 4e2da4af92 [MRG] Added FutureWarning in sgd models for tol parameter (#12399)
* Added ChangedBehaviorWarning in sgd models

if tol is None while max_iter is set

* Changed to FutureWarning and clarified None meaning

* Ignored warningin tests

* Ignore warnings in tests, round 2
2018-10-24 11:00:43 -04:00
Joel Nothman 7ed61a24fe ENH add multi_class='auto' for LogisticRegression, default from 0.22; default solver will be 'lbfgs' (#11905)
* Change default solver in LogisticRegression
* This is an API change, not a feature
* Decrease numerical precision in LogisticRegression doctest
* ENH add multi_class='auto' for LR, default from 0.22
* No warning when binary
2018-08-26 23:00:02 +03:00
Joel Nothman 14e7c328df Restructure access to vendored/site Joblib (#11471)
In order to fix #11408, this swaps `joblib` and `_joblib`. It however, allows users to access joblib's `Memory` or `Parallel` functionality without accessing `sklearn.externals._joblib` by importing `Memory`, `Parallel`, etc. into `sklearn.utils`.
2018-07-17 18:02:11 +02:00
Taehoon Lee 328b04f43e MNT Fix typos (#11057) 2018-05-03 16:30:05 +08:00
Kumar Ashutosh 87759c1924 FEA Add a new class RegressorChain similar to ClassifierChain (#9257) 2017-12-12 09:00:57 +11:00
Loïc Estève 4889a67942 MAINT remove unused imports 2017-08-31 10:28:09 +02:00
Joel Nothman 39f1b1380a TST/FIX failure on machines with one CPU (#9544) 2017-08-30 10:42:01 -04:00
Joel Nothman e674f64458 [MRG+1] FIX Add missing mixins to ClassifierChain (#9473)
* Add missing mixins to ClassifierChain

* Fix import in test
2017-08-04 12:26:54 -04:00
Hanmin Qin a294149f95 TST Change dataset for test_classifier_chain_vs_independent_models (#9255) 2017-07-04 14:41:24 +02:00
Adam Kleczewski b413299676 [MRG+1] Classifier chain (#7602)
[MRG+2] Classifier chain
2017-06-28 22:34:19 -07:00
Tom Dupré la Tour edeb3af217 Deprecate n_iter in SGDClassifier and implement max_iter (#5036) 2017-06-23 21:49:29 +02:00
Taehoon Lee 93871e2e61 Fix typos (#9095) 2017-06-10 12:54:40 +02:00
Andreas Mueller 7c6486f09c fix multioutput partial_fit delegation (#9013) 2017-06-07 08:09:44 +02:00
Andreas Mueller 1c41368bac [MRG+1] Uncontroversial fixes from estimator tags branch (#8086)
* some bug fixes.

* minor fixes to whatsnew

* typo in whatsnew

* add test for n_components = 1 transform in dict learning

* feature extraction doc fix

* fix broken test

* revert aggressive input validation changes

* in SelectFromModel, don't store threshold_ in transform. If we called "fit", use estimates from last "fit".

* move score from EllipticEnvelope to OutlierDetectionMixin

* revert changes to Tfidf documentation

* remove dummy input validation from whatsnew

* fix text feature tests

* rewrite from_model threshold again...

* remove stray condition

* fix self.estimator -> estimator, slightly more interesting test

* typo in comment

* Fix issues in SparseEncoder, add tests.
more explicit explanation of SparseEncoder change, add issue numbers to whatsnew

* minor fixes in whats_new.rst

* slightly more consistency with tuples for shapes

* not longer typo
2017-06-06 16:34:47 +02:00
Peng Yu 8695ff5969 [MRG + 1] add partial_fit to multioutput module (#8054)
* add partial_fit to multioupt module

* fix range in python3

* fix flake8

* fix the comments

* fix according to comments

* fix lint

* remove pytest

* fix ValueException message

* py 3.5 compatiable classes

* fix stuff

* fix according the comments

* remove used copy

* flake8..

* fix docs

* eventually, i use deepcopy to ensure the parallel

* lint..

* address final comment

* fix addressing the comments

* update confirmed separate estimators

* finally remove copy

* compact test
2017-01-05 16:11:18 +01:00
Peter Bull dd2e48c091 [MRG+1] Return list instead of 3d array for MultiOutputClassifier.predict_proba (#8095)
* Return list instead of 3d array for MultiOutputClassifier.predict_proba

* Update flake8, docstring, variable name

 - Changed `rs` to `rng` to follow convention.
 - Made sure changes were flake8 approved
 - Add `\` to continue docstring for `predict_proba` return value.

* Sub random.choice for np.random.choice

`np.random.choice` isn’t available in Numpy 1.6, so opt for the Python
version instead.

* Make test labels deterministic

* Remove hanging chad...

* Add bug fix and API change to whats new
2016-12-22 18:54:21 +01:00
Maniteja Nandana 29ee54a586 Meta estimator for multi output classification 2016-04-01 07:18:59 +05:30
Tim Head 07cede74ca Multitarget regression meta estimator
Register OneVsRestRegressor as meta estimator

Rename to a more sensible name

Parallel predict and sparse support

Started MultiOutput documentation

Move code to new file multioutput.py

Continuing the move to new multioutput module

Added sample weight support

Better test for sample weights and actually support weights

Added a new test using weighted vs repeated samples to
test sample weight support. Uncovered that weights
were not actually passed on to underlying estimator.

Comment on multiprocess overheads

Move parallel_helper to utils.fixes

This helper works around a python2 limitation on pickling
instance methods

Example of multi-output regression with gradient boosting

Switch to uniform weighted score and updated example

The example now uses a RF with and without the MultiOutput
meta estimator

Added note for removing `score` method

Addressing comments on MultiOutputRegressor

MultiOutputregressor better test for weighted samples

Fix ups

Use explicit keyword argument for passing sample weights and
fix random_state on train-test split in the example
2016-03-10 16:06:08 -05:00