Commit Graph

281 Commits

Author SHA1 Message Date
Alexandre Gramfort acdaeaf5dd Merge pull request #6606 from tkamishima/tkamishima_one_hot_encoder_parameter_checking
[MRG] type checking before comparison, to avoid warning messages, in preprocessing.OneHotEncoder
2016-03-31 22:33:55 +02:00
Manoj Kumar 24198ffbb8 Merge pull request #6419 from nelson-liu/fix_linkcheck
[MRG+1] DOC: Fix broken links
2016-03-30 18:17:48 -04:00
Toshihiro Kamishima d574a03497 type checking before comparison, to avoid warning messages
If np.array is pssed  as a parameter 'n_values', warning of multiple comparison is printed. This patch avoid this problem.
2016-03-31 01:09:15 +09:00
YenChenLin 08e1db4cd3 Test normalize function in data.py 2016-03-26 10:38:29 +08:00
Rémy Léone 9b7176dd9d [DOC] Fix broken links 2016-03-23 12:45:34 -07:00
dsquareindia e9492b7ec2 LabelBinarizer single label case now works for sparse and dense case 2016-03-21 10:43:56 +05:30
Jake Vanderplas 90f2c184c6 Merge pull request #6453 from yenchenlin1994/fix-its-typo
[MRG] DOC Fix misuse of "it's"
2016-02-25 21:04:56 -08:00
YenChenLin ca4c727e22 Fix misuse of it's 2016-02-26 10:16:28 +08:00
Jake Vanderplas 7895d38ca6 Merge pull request #6372 from amueller/poly_feature_names
[MRG+2] add get_feature_names to PolynomialFeatures
2016-02-25 11:55:03 -08:00
Andreas Mueller 8fb928d644 fixed doc for powers, added test 2016-02-24 17:08:15 -05:00
Andreas Mueller 897f8b6cc6 don't do ^1 2016-02-22 15:09:47 -05:00
Andreas Mueller ddc1740207 fix PolynomialFeatures.powers_ in python 0.16.1 2016-02-19 15:53:37 -05:00
Andreas Mueller 3fa684db0e add get_feature_names to PolynomialFeatures 2016-02-19 15:52:55 -05:00
giorgiop 140a5acda8 MAINT depr of center_data, normalize in linear_model 2016-02-17 14:26:50 -05:00
Loïc Estève 6c627633bc Fix test_label_binarizer on Windows
Looks like .fill is not very friendly with unicode numpy scalar
2016-02-11 13:24:16 +01:00
dsquareindia 74475bc929 LabelEncoder now raises error for 0-D arrays 2016-01-26 01:34:26 +05:30
Gael Varoquaux 317dea8a05 Merge pull request #6005 from seales/SpellingFix
[MRG+1] General spelling fixes
2016-01-04 13:42:20 +01:00
Brian McFee 318b93d2ae Implemented keyword arguments in FunctionTransformer 2015-12-19 23:00:35 -05:00
seales 0485ada58b General spelling fixes 2015-12-16 09:46:42 -08:00
Ganiev Ibraim 1606c9074e check_is_fitted validation for transform() and inverse_transform() 2015-11-30 01:53:38 +03:00
Andreas Mueller fb123ed24b More doc fixes. Latex builds again. 2015-11-20 16:30:45 -05:00
MechCoder 6e87813550 Scaling a sparse matrix along axis 0 should accept a csc by default 2015-11-11 14:21:49 -05:00
Andreas Mueller de3a527905 Merge pull request #5692 from amueller/skip_32_bit_tests
[MRG] Skip 32 bit tests that fail, skip doctests on 32bit
2015-11-05 10:33:33 -05:00
KamalakerDadi f2e35411fa Added more versions of 0.17 2015-11-04 00:02:52 +01:00
KamalakerDadi 2249daaea8 Version added for all new classes 2015-11-03 23:54:42 +01:00
KamalakerDadi 468b4c15b3 Version Added for Robust Scaler 2015-11-03 23:48:23 +01:00
Andreas Mueller c55dc89902 Merge pull request #5695 from amueller/doc_fixes
[MRG] DOC some fixes to the doc build.
2015-11-03 15:24:56 -05:00
Andreas Mueller e2eba1ffbc Merge pull request #5688 from amueller/robust_scaler_1column_fix
[MRG+2] fix 1 sparse row scaling in robust scaler
2015-11-03 14:06:26 -05:00
Andreas Mueller 61df16e0e9 fix 1 sparse row scaling in robust scaler 2015-11-03 14:03:09 -05:00
Gael Varoquaux f7e886a885 Merge pull request #5682 from trevorstephens/OneHotEncoder_warn_fix
[MRG + 1] OneHotEncoder warn fix - fixes #5671
2015-11-03 19:26:08 +01:00
Andreas Mueller 2653833a07 DOC some fixes to the doc build. 2015-11-03 12:23:23 -05:00
Andreas Mueller 776e53b127 skip unstable tests on 32bit platform 2015-11-02 15:21:22 -05:00
MechCoder 1e23805861 DOC: Correct confusing docs of n_values in OneHotEncoder 2015-11-02 15:19:33 -05:00
trevorstephens 89f8a514c3 OneHotEncoder warn fix
add regression test
2015-11-02 11:04:00 -08:00
Graham Clenaghan f69f895eee remove _balance_weights 2015-10-23 23:18:29 -07:00
Raghav R V 3f8743f47b Main Commits - Major
--------------------

* ENH Reogranize classes/fn from grid_search into search.py
* ENH Reogranize classes/fn from cross_validation into split.py
* ENH Reogranize cls/fn from cross_validation/learning_curve into validate.py

* MAINT Merge _check_cv into check_cv inside the model_selection module
* MAINT Update all the imports to point to the model_selection module
* FIX use iter_cv to iterate throught the new style/old style cv objs
* TST Add tests for the new model_selection members
* ENH Wrap the old-style cv obj/iterables instead of using iter_cv

* ENH Use scipy's binomial coefficient function comb for calucation of nCk
* ENH Few enhancements to the split module
* ENH Improve check_cv input validation and docstring
* MAINT _get_test_folds(X, y, labels) --> _get_test_folds(labels)
* TST if 1d arrays for X introduce any errors
* ENH use 1d X arrays for all tests;
* ENH X_10 --> X (global var)

Minor
-----

* ENH _PartitionIterator --> _BaseCrossValidator;
* ENH CVIterator --> CVIterableWrapper
* TST Import the old SKF locally
* FIX/TST Clean up the split module's tests.
* DOC Improve documentation of the cv parameter
* COSMIT consistently hyphenate cross-validation/cross-validator
* TST Calculate n_samples from X
* COSMIT Use separate lines for each import.
* COSMIT cross_validation_generator --> cross_validator

Commits merged manually
-----------------------

* FIX Document the random_state attribute in RandomSearchCV
* MAINT Use check_cv instead of _check_cv
* ENH refactor OVO decision function, use it in SVC for sklearn-like
  decision_function shape
* FIX avoid memory cost when sampling from large parameter grids

ENH Major to Minor incremental enhancements to the model_selection

Squashed commit messages - (For reference)

Major
-----

* ENH p --> n_labels
* FIX *ShuffleSplit: all float/invalid type errors at init and int error at split
* FIX make PredefinedSplit accept test_folds in constructor; Cleanup docstrings
* ENH+TST KFold: make rng to be generated at every split call for reproducibility
* FIX/MAINT KFold: make shuffle a public attr
* FIX Make CVIterableWrapper private.
* FIX reuse len_cv instead of recalculating it
* FIX Prevent adding *SearchCV estimators from the old grid_search module
* re-FIX In all_estimators: the sorting to use only the 1st item (name)
    To avoid collision between the old and the new GridSearch classes.
* FIX test_validate.py: Use 2D X (1D X is being detected as a single sample)
* MAINT validate.py --> validation.py
* MAINT make the submodules private
* MAINT Support old cv/gs/lc until 0.19
* FIX/MAINT n_splits --> get_n_splits
* FIX/TST test_logistic.py/test_ovr_multinomial_iris:
    pass predefined folds as an iterable
* MAINT expose BaseCrossValidator
* Update the model_selection module with changes from master
  - From #5161
  -  - MAINT remove redundant p variable
  -  - Add check for sparse prediction in cross_val_predict
  - From #5201 - DOC improve random_state param doc
  - From #5190 - LabelKFold and test
  - From #4583 - LabelShuffleSplit and tests
  - From #5300 - shuffle the `labels` not the `indxs` in LabelKFold + tests
  - From #5378 - Make the GridSearchCV docs more accurate.
  - From #5458 - Remove shuffle from LabelKFold
  - From #5466(#4270) - Gaussian Process by Jan Metzen
  - From #4826 - Move custom error / warnings into sklearn.exception

Minor
-----

* ENH Make the KFold shuffling test stronger
* FIX/DOC Use the higher level model_selection module as ref
* DOC in check_cv "y : array-like, optional"
* DOC a supervised learning problem --> supervised learning problems
* DOC cross-validators --> cross-validation strategies
* DOC Correct Olivier Grisel's name ;)
* MINOR/FIX cv_indices --> kfold
* FIX/DOC Align the 'See also' section of the new KFold, LeaveOneOut
* TST/FIX imports on separate lines
* FIX use __class__ instead of classmethod
* TST/FIX import directly from model_selection
* COSMIT Relocate the random_state documentation
* COSMIT remove pass
* MAINT Remove deprecation warnings from old tests
* FIX correct import at test_split
* FIX/MAINT Move P_sparse, X, y defns to top; rm unused W_sparse, X_sparse
* FIX random state to avoid doctest failure
* TST n_splits and split wrapping of _CVIterableWrapper
* FIX/MAINT Use multilabel indicator matrix directly
* TST/DOC clarify why we conflate classes 0 and 1
* DOC add comment that this was taken from BaseEstimator
* FIX use of labels is not needed in stratified k fold
* Fix cross_validation reference
* Fix the labels param doc

FIX/DOC/MAINT Addressing the review comments by Arnaud and Andy

COSMIT Sort the members alphabetically
COSMIT len_cv --> n_splits
COSMIT Merge 2 if; FIX Use kwargs
DOC Add my name to the authors :D
DOC make labels parameter consistent
FIX Remove hack for boolean indices; + COSMIT idx --> indices; DOC Add Returns
COSMIT preds --> predictions
DOC Add Returns and neatly arrange X, y, labels
FIX idx(s)/ind(s)--> indice(s)
COSMIT Merge if and else to elif
COSMIT n --> n_samples
COSMIT Use bincount only once
COSMIT cls --> class_i / class_i (ith class indices) -->
perm_indices_class_i

FIX/ENH/TST Addressing the final reviews

COSMIT c --> count
FIX/TST make check_cv raise ValueError for string cv value
TST nested cv (gs inside cross_val_score) works for diff cvs
FIX/ENH Raise ValueError when labels is None for label based cvs;
TST if labels is being passed correctly to the cv and that the
ValueError is being propagated to the cross_val_score/predict and grid
search
FIX pass labels to cross_val_score
FIX use make_classification
DOC Add Returns; COSMIT Remove scaffolding
TST add a test to check the _build_repr helper
REVERT the old GS/RS should also be tested by the common tests.
ENH Add a tuple of all/label based CVS
FIX raise VE even at get_n_splits if labels is None
FIX Fabian's comments
PEP8
2015-10-23 17:28:08 +02:00
Ishank Gulati 7fe71c18ab as_float_array removed 2015-10-22 01:07:24 +05:30
Olivier Grisel 718a7df4c5 Merge pull request #5449 from Jeffrey04/5433-MaxAbsScaler-1-row-csr-fix
[MRG + 1] max abs scaler 1 row csr fix
2015-10-21 11:42:27 +02:00
Arnaud Rachez 5db2adf93c MAINT Removed deprecated stuff. 2015-10-21 10:24:23 +02:00
Jeffrey04 f24d94aec4 remove test for self.scale_ 2015-10-20 10:59:10 +08: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
Jeffrey04 9da9b581a4 add fix for inverse transform 2015-10-19 23:29:38 +08:00
Jeffrey04 2571158168 add test for inverse_transform 2015-10-19 23:29:09 +08:00
Jeffrey04 23e39871a8 fixing MaxAbsScaler according to MinMaxScaler 2015-10-19 23:11:20 +08:00
Jeffrey04 658129ac5b updated test with tips from @giorgiop 2015-10-19 23:10:41 +08:00
Jeffrey04 3f86d68f71 code fix for issue #5433 2015-10-19 19:30:29 +08:00
Jeffrey04 e7a3675eaf the test to reflect issue #5433 2015-10-19 19:29:00 +08:00
Gilles Louppe 008adf11ad Merge pull request #5375 from rvraghav93/set_precision
[MRG + 2] FIX precision to float64 across the codebase
2015-10-19 11:02:04 +02:00
Andreas Mueller 96f587a4f2 DOC cosmit I find it confusing to say that fit resets the estimator, at it always does that. 2015-10-16 11:48:25 -04:00
giorgiop c7b1a6ebc3 BUG: reset internal state of scaler before fitting 2015-10-16 17:28:40 +02:00