Aurélien Geron
7723d9374e
ENH Add inverse_transform to random projection transformers ( #21701 )
...
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-03-14 15:07:25 +01:00
Takeshi Oura
8b6b519caf
ENH Preserving dtype for np.float32 in RandomProjection ( #22114 )
...
Co-authored-by: takoika <>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-01-06 23:29:08 -05:00
Loïc Estève
b07b2273e4
ENH Add get_feature_names_out for random_projection module ( #21330 )
2021-11-03 15:49:46 +01:00
Thomas J. Fan
82df48934e
MNT Applies black formatting to most of the code base ( #18948 )
2021-06-17 14:21:09 -04:00
Thomas J. Fan
9a13bdfaf1
MNT Adds black config and fixes formatting before black ( #19031 )
...
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-06-12 17:14:09 +02:00
LSturtew
80e985b5da
TST Changes assert to pytest style in test_random_projection.py ( #19846 )
2021-04-09 13:54:30 +02:00
Fortune Uwha
abd1597e66
FIX Converted output to int64 in random_projection *_min_dim ( #19374 )
2021-02-12 10:01:20 +01:00
Nicolas Hug
ac8cbb3799
[MRG] More deprecation for 0.24 ( #17142 )
...
* normalize_components in sparsePCA
* changed default strategy of Dummy to prior and removed outputs_2d ttribute
* removed usage of None to drop estimator in ensemble and behaviour param of IsolationForest
* remove support for drop=None in Voting
* removed some warning decorators
* remove feature_extraction.extract_patches
* removed VectorizerMixin and copy parameter from TFIDFVectorizer
* kernel.set_params now raises attributeerror
* removed fig from plot_partial_dependence
* removed iid parameter of search estimators
* removed brier_scorer
* raise error in split when shuffle is False and random_state is not None
* removed MultiOutputEstimator
* removed base classes of NaiveBayes
* removed drop from pipeline
* removed utils in random_projection
* removed presort and classes_ in trees
* flake8
* fixed some tests
* flake
* fixed docstring
* fixed other one
* some left
* mmmm
2020-05-20 16:04:14 -04:00
Thomas J Fan
79df406858
API Deprecate positional arguments in random_projection ( #16995 )
...
* API Deprecate positional arguments in random_projection
* CLN Address comments
2020-04-22 23:11:32 +02:00
Roman Yurchak
5a4340834d
Fix mypy errors ( #16726 )
2020-03-30 15:41:05 +02:00
Nicolas Hug
12c2b40761
MNT Remaining deprecations in sklearn/file.py ( #15399 )
2019-11-04 14:22:42 -05:00
Nicolas Hug
b92455a6b2
MAINT Deprecate all of utils.testing except all_estimators ( #15367 )
2019-10-28 17:28:56 +01:00
Adrin Jalali
19c068a2ec
MNT towards removing assert_equal, etc ( #14222 )
2019-07-01 09:13:32 -04:00
Thomas J Fan
bec83089f7
MAINT Uses pytest-xdist to parallelize tests ( #13041 )
2019-06-13 16:47:12 -04:00
surgan12
62d2059804
MNT remove __future__ imports ( #12791 )
2019-02-02 22:05:06 +08:00
ZJ Poh
adddf00433
[MRG] np.ones -> np.full ( #11628 )
2018-07-23 09:49:01 +02:00
Roman Yurchak
e8d8b8eeb0
TST: parametrize unit tests ( #11074 )
...
yield tests are deprecated in pytest and will be removed in pytest 4.0.
They all have been replaced by parametrize.
2018-06-08 14:59:33 +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
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
Raghav R V
f763a34a03
MAINT use yield for cleaner output in verbose mode
2015-03-21 11:17:32 +05:30
Raghav R V
cd2ee7e454
MAINT docstring --> comments to prevent nose from using doc in verbose mode
2015-03-21 11:16:49 +05:30
Olivier Grisel
fe553b755a
ENH use specific warning class for RP
2014-11-18 14:55:56 +01:00
Arnaud Joly
9a6287b0e1
MAINT Fix regression random projections work sparse matrices
2014-07-30 18:34:26 +02:00
Arnaud Joly
9fb2dfb56e
MAINT use assert_warns
2014-07-30 18:22:37 +02:00
Lars Buitinck
c997cdee9f
COSMIT pep8 + full stop police
...
metrics/tests/test_score_objects.py made stricter by replacing . with \.
in regular expressions.
2014-02-01 15:28:53 +01:00
Gael Varoquaux
a6439d84b8
MAINT: randn on float is deprecated
2013-08-07 22:54:38 +02:00
Andreas Mueller
966e10c252
COSMIT PEP8
2012-12-22 16:48:17 +01:00
Andreas Mueller
a0860b114d
FIX don't use assert_allclose. It is not supported in numpy 1.3
2012-12-21 15:10:13 +01:00
Arnaud Joly
8931e67bb5
DOC improve + fix mistakes + TST added
2012-12-21 14:48:01 +01:00
Arnaud Joly
616e2b5d64
ENH Rename Bernoulli random projection to sparse random projection
2012-12-21 14:48:01 +01:00
Arnaud Joly
12c8d3be79
ENH Rename Bernoulli random projection to sparse random projection
2012-12-21 14:48:01 +01:00
Arnaud Joly
980600b67e
ENH refactor matrix generation BaseRandomProjectiona and subclass
2012-12-21 14:48:00 +01:00
Arnaud Joly
a6ed58dc4d
ENH flatten random_projection module + add sklearn.utils.random
2012-12-21 14:48:00 +01:00
Arnaud Joly
f014ed52db
ENH optim sparse bernouilli matrix
2012-12-21 14:34:23 +01:00
Arnaud Joly
9a2d76a56b
COSMIT
2012-12-21 14:34:22 +01:00
Arnaud Joly
825303ce3a
FIX renaming bug
2012-12-21 14:34:22 +01:00
Arnaud Joly
f77185ebe0
ENH cosmit naming consistency
2012-12-21 14:34:22 +01:00
Arnaud Joly
0bb6207382
ENH add more tests
2012-12-21 14:34:22 +01:00
Arnaud Joly
3b96b9100f
DOC: correct doc
2012-12-21 14:34:22 +01:00
Arnaud Joly
10aade4857
ENH add warning when user ask n_components > n_features
2012-12-21 14:34:22 +01:00
Arnaud Joly
2e29be34a6
ENH add more tests with wrong input
2012-12-21 14:34:22 +01:00
Arnaud Joly
956f3d8648
ENH Add gaussian projeciton + refactor sparse random matrix to reuse code
2012-12-21 14:34:22 +01:00
Arnaud Joly
5aef6b2104
ENH Strenghtens the input checking
2012-12-21 14:34:22 +01:00
Arnaud Joly
84bc401cdc
COSMIT
2012-12-21 14:34:21 +01:00
Arnaud Joly
a5ebd1dec5
ENH let the user decide density between 0 and 1
2012-12-21 14:34:21 +01:00
Arnaud Joly
2ac9b61db8
Clean random_dot features (3)
2012-12-21 14:34:21 +01:00
Arnaud Joly
961c27a6c9
Clean random_dot features (3)
2012-12-21 14:34:21 +01:00
Arnaud Joly
add00fa8c9
Clean random_dot features
2012-12-21 14:34:21 +01:00
Arnaud Joly
35c75bfa77
ENH Let the user decide the number of random projections
2012-12-21 14:34:21 +01:00
Arnaud Joly
edafb48416
COSMIT use sklearn.utils.testing
2012-12-21 14:34:21 +01:00