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
a8626b36a6
TST/COSMIT remove nose call boilerplate
2015-05-28 14:54:01 -04:00
Andreas Mueller
5a2eb018af
FIX make random_choice_csc and therefor DummyClassifier deterministic.
2015-05-15 17:53:42 -04:00
Arnaud Joly
011ad8d8a4
ENH add a prior strategy for the dummy estimator
2015-04-14 09:44:52 +02:00
Arnaud Joly
da31344751
Add sample_weight support to Dummy Regressor
2014-10-16 16:41:49 +02:00
Aaron Staple
ea1548ad48
Add quantile strategy to DummyRegressor. Fixes #3421 .
2014-10-16 09:49:09 +02:00
Hamzeh Alsalhi
2a3f504f1c
Make cosmetic adjustments, Fix random.py header, use message with assert_warns
2014-08-08 18:48:23 -04:00
Hamzeh Alsalhi
f69dcefa9b
Use UserWarning in place of SparseEfficiencyWarning
2014-08-05 14:16:55 -04:00
Hamzeh Alsalhi
7912b1dc39
Make sparse target dummy tests multioutput-multiclass
2014-08-05 10:04:00 -04:00
Hamzeh Alsalhi
d0f52b6eb0
Raise warning unifrom fit sparse target, Raise error uniform precit sparse target
2014-07-31 14:00:52 -04:00
Hamzeh Alsalhi
ff12d7704a
Test sparse stratifed corner case with 0s
...
This activates the code for the manual handling of class prior
of zero elements
2014-07-31 14:00:52 -04:00
Hamzeh Alsalhi
0a381ed857
Add four tests for sparse target dummy, one for each strategy
...
The tests are
test_constant_strategy_sparse_target,
test_uniform_strategy_sparse_target,
test_stratified_strategy_sparse_target,
test_most_frequent_strategy_sparse_target
2014-07-31 14:00:52 -04:00
Hamzeh Alsalhi
4052878c2c
Remove temporary code from test_sparse_target_data
...
The code was used to test a classifier with an incomplete
predict function.
2014-07-31 14:00:52 -04:00
Hamzeh Alsalhi
bdd5cb162e
Test sparse target data with dummy classifier
2014-07-31 14:00:51 -04:00
Arnaud Joly
f9773ba8e2
ENH add sample_weight support to dummy classifier
2014-07-18 09:53:13 +02:00
Andreas Mueller
926e651f44
Stop using some deprecated interfaces.
2014-06-08 22:16:26 +02:00
maheshakya
832033191e
Changed to random_state
2014-03-10 18:16:06 +05:30
maheshakya
5158913ec2
Updated tests. Fixed flake8 errors
2014-03-10 18:16:06 +05:30
maheshakya
a37aa8f949
Recreated test cases with random state
2014-03-10 18:16:06 +05:30
maheshakya
b047518f2f
Implemented additional test cases. Removed the check for lists and numpy arrays in constant strategy.
2014-03-10 18:16:06 +05:30
maheshakya
3755d5c392
Edited the documentation-unordered list
2014-03-10 18:15:40 +05:30
maheshakya
815af68465
Done refactoring and necessary changes for multiouput constant strategy. Added tests and updated the documentation.
2014-03-10 18:15:39 +05:30
maheshakya
9799a3dcd9
Fixed value error. Scalar values are allowed for constant when not multioutput
2014-03-10 18:15:39 +05:30
maheshakya
9879c95b46
Depreciated y_mean_ and y_median. Code is formatted according to pep8
2014-03-10 18:15:39 +05:30
maheshakya
d41fb761de
Implemented median and constant strategies in DummyRegressor
2014-03-10 18:14:53 +05:30
Jaques Grobler
6ebcf4d020
COSMIT fix PEP8 errors
2014-02-02 00:30:28 +11:00
Manoj-Kumar-S
0546d3149a
DOC Minor doc changes
2013-11-04 17:55:15 +05:30
Manoj-Kumar-S
68d63b7f99
TST Tests for string labels, DOC Minor doc changes
2013-11-03 23:44:20 +05:30
Manoj-Kumar-S
2bf83182a9
Handled exceptions in fit; Added tests
2013-11-03 01:28:01 +05:30
Manoj-Kumar-S
e7a40dc600
Constant output dummy classifier
2013-11-01 01:35:57 +05:30
Lars Buitinck
541987802f
P3K range vs. xrange
2013-02-14 02:05:35 +01:00
Arnaud Joly
f5e8c21e20
ENH preserve output ndim
2013-01-02 21:16:04 +01:00
Arnaud Joly
10457805ab
DOC instance attributes + TST: do not record warning
2013-01-02 21:16:04 +01:00
Arnaud Joly
98a0b4719d
ENH add multioutput support for dummy estimator
2013-01-02 21:16:04 +01:00
Andreas Mueller
9603b070d7
COSMIT pep8
2012-12-02 11:17:17 +00:00
Mathieu Blondel
55f8ab0a3e
Test exceptions.
2012-11-22 01:29:20 +09:00
Mathieu Blondel
e157836234
Test string labels.
2012-11-22 01:18:30 +09:00
Mathieu Blondel
9adeaa1e77
Test expectations.
2012-11-22 01:13:59 +09:00
Mathieu Blondel
cb8989ad57
Add DummyRegressor.
2012-11-19 23:03:04 +09:00
Mathieu Blondel
607c136480
Rename to dummy.DummyClassifier.
2012-11-19 23:03:04 +09:00