Commit Graph

22 Commits

Author SHA1 Message Date
Hanmin Qin 43e3a02085
MNT Remove unused assert_true imports (#12560) 2018-11-11 11:08:37 +08:00
Yaroslav Halchenko 362cb3bcab TST autoreplace assert_true(...==...) with plain assert (#12547) 2018-11-11 09:05:34 +08:00
Taehoon Lee 4ff7e8e658 Fix typos (#9476) 2017-08-02 14:02:59 +10:00
Tom Dupré la Tour edeb3af217 Deprecate n_iter in SGDClassifier and implement max_iter (#5036) 2017-06-23 21:49:29 +02:00
Loïc Estève e5bf61eee1 [MRG+1] Dropping python 2.6 support (#7890)
* Remove Python 2.6 support

Some details about some slightly orthogonal changes:
* Note about cheking safely for nan is likely not valid any more (commit
  introducing it is c80ca91b)
* scipy.linalg.qr econ parameter removed since scipy 0.9 in favour of
  mode='economic'
* Remove unnecessary libgfortran in conda create command

* Putative fix by setting the random seed

* Revert unintended change

* Reinstate previous logic for checking for NaNs

* Reinstate change in error message

Error messages from Python 2.7 assertRegexp does not contain the
function name, in contrast with Python 3 assertRegex
2016-11-23 17:11:04 -05:00
Fabian Egli 53e6381272 [MRG+1] Throw an error with explicit message if n_estimators is not an integer. (#7457)
* Throw an error with explicit message if n_estimators is not an integer.

* Testing for explicit message if n_estimators is not an integer.

* Fixed typo in test for explicit message if n_estimators is an integer.

* Added tests for np.int32 and float input.

* pep8 compliance

* fix function name

* Import numpy to test n_estimators suplied as numpy int32.
2016-10-14 15:58:41 -04:00
Konstantin Podshumok 9b2aac9e5c [MRG + 1] [TST] (half-cosmetic) use less nose.tools import to simplify future transition to py.test (#7384)
* use less nose.tools import to simplify future transition to activly developing test suites/runners

* assert_equal -> assert_array_equal in test_feature_hasher_pairs_with_string_values

and one missed ImportError that should be replaced with AttributeError

* test for py2.6 compat with except AttributeError

* fix importing of SkipTest

* force using nose in python2.6 for now

* there was no assert_dict_equal in py2.6. but we can use assert_equal

although failed test will look a little bit ugly

* remove nose imports from doc/datasets
2016-10-07 12:46:52 -04:00
Joel Nothman 32d1236f4a [MRG+2] FIX adaboost estimators not randomising correctly (#7411)
* FIX adaboost estimators not randomising correctly

(fixes #7408)

FIX ensure nested random_state is set in ensembles

* DOC add what's new

* Only affect *__random_state, not *_random_state for now

* TST More informative assertions for ensemble tests

* More specific testing of different random_states
2016-09-23 17:00:32 +10:00
Raghav R V cd2ee7e454 MAINT docstring --> comments to prevent nose from using doc in verbose mode 2015-03-21 11:16:49 +05:30
Laurent Direr 4113dfe12d Added a parameter check on n_estimators in BaseEnsemble to raise error if it is not strictly positive. 2014-07-18 19:26:33 +02:00
Joel Nothman dbc26ce996 COSMIT remove unused imports and variables 2014-02-03 19:43:56 +11:00
Gilles Louppe 1a887dda68 COSMIT: Various PEP8 2014-01-16 14:34:10 +01:00
Gilles Louppe cebb7daee8 TST: test_base in sklearn.ensemble 2013-09-11 13:51:12 +02:00
Gilles Louppe 74d395215b ENH bagging meta-estimator 2013-09-11 13:51:09 +02: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
Alexandre Gramfort ad8e4912cb TST: use assert_true instead of assert + remove some relative imports 2012-02-11 15:43:03 +01:00
Gilles Louppe ae564d7c8f DOC: Added missing BSD3 licenses 2011-12-30 20:39:18 +01:00
Gilles Louppe 96b4a1263b TEST: Improved coverage of the ensemble package to 100% 2011-12-30 15:09:39 +01:00
Alexandre Gramfort 3b17eafff2 STY: pep8 + pyflakes
Conflicts:

	sklearn/ensemble/base.py
2011-11-23 21:28:01 -05:00
Gilles Louppe f6d7344279 ENH: Address @agramfort comments 2011-11-23 09:38:27 +01:00
Gilles Louppe 306985a0a5 ENH: Simplified RandomForest and ExtraTrees API 2011-11-21 15:16:38 +01:00
Gilles Louppe 5bf4b8cefe TEST: Added tests of BaseEnsemble 2011-11-16 19:35:57 +01:00