Commit Graph
834 Commits
Author SHA1 Message Date
Julian Quick bbb9ce1641 Verbose message: which fields have impropper data types
A more verbose error message letting the user know which fields have impropper data types
2016-03-22 14:13:29 -06:00
Julian Quick 2cd109fb98 a more verbose field mismatch error message
This error message can be hard to understand when there are several fields, as shown in the example below. This improves the error message, letting the user know which fields were unexpected or missing.

    import xgboost as xgb
    import pandas as pd
    train = pd.DataFrame({'a':[1], 'b':[2], 'c':[3], 'd':[4], 'f':[2], 'g':2, 'etc etc etc':[11]})
    dtrain = xgb.DMatrix(train.drop('d', axis=1), train.d)
    test = pd.DataFrame({'a':[1], 'b':[2], 'c':[1], 'd':[4], 'e':[2], 'f':[2], 'g':2, 'etc etc etc':[11]})
    dtest = xgb.DMatrix(test)
    modl = xgb.train({}, dtrain)
    modl.predict(dtest)
    
    
    # ValueError: feature_names mismatch: [u'a', u'b', u'c', u'etc etc etc', u'f', u'g'] [u'a', u'b', u'c', u'd', u'e', u'etc etc etc', u'f', u'g']
2016-03-17 18:13:30 -06:00
DAndrey 311f7c8f47 change type of xgbclassifier.classes_ from list to numpy array 2016-03-17 16:54:33 +03:00
tqchen bec7332eea Fix rabit 2016-03-06 20:54:27 -08:00
tqchen ced6d45e01 Update rabit 2016-03-02 20:53:34 -08:00
tqchen ecb3a271be [PYTHON-DIST] Distributed xgboost python training API. 2016-02-29 16:54:13 -08:00
Yuan (Terry) Tang fdd520d774 Merge branch 'master' into sklearn 2016-02-29 10:50:55 -06:00
Paulo Alves b7985466a4 Merge remote-tracking branch 'upstream/master' 2016-02-29 08:53:48 -03:00
terrytangyuan 803a6fe474 Separate dependencies and lightweight test env for Python 2016-02-28 20:11:10 -06:00
tqchen 4a16b729fc [PYTHON] Simplify training logic, update rabit lib 2016-02-28 13:20:55 -08:00
Chris Barker ed5781fa55 fix PyPi Description issue
the description field was set to what should be the long_description field -- making a bit of a mess on PyPi
2016-02-26 16:54:13 -08:00
Paulo Alves 592004b38f XGBClassifier.feature_importances_ compatible with sklearn RFECV 2016-02-26 08:56:07 -03:00
tqchen ebc802756f temp compatibility with sklearn 2016-02-25 21:57:00 -08:00
tqchen a71ba04109 [DIST] Add Distributed XGBoost on AWS Tutorial 2016-02-25 21:51:37 -08:00
catena 790dc877c3 return best_ntree_limit if early stopped 2016-02-25 13:42:19 +05:30
Tianqi Chen d063eaccb1 Delete training.py 2016-02-23 08:48:50 -08:00
ivallesp c17d0ef560 changed the param show_progress by verbose_eval in cv and aggcv functions 2016-02-21 01:28:55 +01:00
ivallesp ed5c98f0ee re-using the verbose-eval parameter in the cv and aggcv methods and tests adapted 2016-02-19 17:14:57 +01:00
Alexis Mignon a46706c82e Merge branch 'master' into master 2016-02-17 09:35:30 +01:00
Tianqi Chen 2baea12d97 Merge pull request #818 from webgeist/master
Add feature_importances_ property for XGBClassifier
2016-02-16 10:19:04 -08:00
Alexis Mignon 52e9085579 Merge branch 'master' of github.com:AlexisMignon/xgboost 2016-02-16 11:00:57 +01:00
Alexis Mignon 07bd149b68 Created decorator function so that custom objective function passed to the constructor are more consistent with the sklearn conventions. Added comments in the doc string 2016-02-16 10:58:22 +01:00
Alexis Mignon 5c29eeac18 Merge branch 'master' into master 2016-02-16 10:16:58 +01:00
Alexis Mignon c8714f587a Added the possibility to use custom objective function in the sklearn API 2016-02-15 17:13:13 +01:00
Faron 4b3a053913 stratified cv for python wrapper
finalize docstring
2016-02-15 16:06:17 +01:00
Pavel Gladkov 31c0408cb4 add feature_importances_ property for XGBClassifier 2016-02-10 23:01:33 +03:00
Maxim Grechkin f5e96eba72 Make missing handling consistent with sklearn's portion of the python package 2016-01-28 14:16:11 -08:00
Kai Luo d9e50fd7f3 __copy__ calls __deepcopy__ with an argument 2016-01-20 19:57:20 +08:00
Kai Luo 5cd765e935 fix signature of __deepcopy__ method 2016-01-20 17:18:11 +08:00
tqchen 8e7f2679d5 [DOC] Update R doc 2016-01-16 11:52:33 -08:00
tqchen 1495a43cea [R] make all customizations to meet strict standard of cran 2016-01-16 10:25:12 -08:00
tqchen d75e3ed05d [LIBXGBOOST] pass demo running. 2016-01-16 10:24:01 -08:00
Yuan (Terry) Tang 7606bf8156 Fixes #725 2016-01-06 18:21:29 -06:00
FrozenFingerz 2a46918c66 python cv bugfixing
- fixed bug if both eval_metrics xgb-param and
metrics param of cv function have been set
- cv early stopping output looks now like the one of xgb.train
2015-12-29 12:24:38 +01:00
FrozenFingerz 38b773d80b cv: fixed devision by zero exception
- show_progress=False or show_progress=0 led to devision by zero exception
2015-12-27 13:54:52 +01:00
Faron b3f3e7d0cb fixed wrong iter when using training continuation 2015-12-19 10:35:16 +01:00
Randy Carnevale 380e54a753 docstring typo 2015-12-16 17:25:55 -05:00
Randy Carnevale 0825ab36f0 updating docs for cv 2015-12-16 17:21:23 -05:00
Randy Carnevale a3fe14d6c6 modifying cv show_progress to allow print-every-n behavior 2015-12-16 16:33:01 -05:00
Ajinkya Kale 0772b51c2c minor change dir 2015-12-12 16:34:07 -08:00
Ajinkya Kale 4695fa3c2a adding right path to setup.py 2015-12-12 15:08:59 -08:00
terrytangyuan 0eb6240fd0 Fixed all lint errors 2015-12-11 18:46:15 -06:00
terrytangyuan a7e79e089b fix lint errors in core 2015-12-11 18:37:13 -06:00
terrytangyuan 7be496a051 ignore nested blocks 2015-12-11 18:20:35 -06:00
terrytangyuan c3ec8ee76f Added pylintrc file 2015-12-11 18:10:15 -06:00
phunterlau a4840b0268 update pip building, troubleshooting with new makefile, plus friendly error message when fail importing sklearn 2015-12-07 22:29:46 -08:00
Yuan (Terry) Tang 162e91c5ca change .md to .rst 2015-12-06 20:25:53 -06:00
Yuan (Terry) Tang e25b2c4968 Remove redundant README 2015-12-06 11:05:44 -05:00
Far0n af166bf0a0 small verbose_eval fixes
- ensures same behavior for verbose_eval=0 and verbose_eval=False
- fix printing last eval message if early_stopping_rounds is set, but xgb
  runs to the end
2015-11-24 09:22:25 +01:00
Johan Manders e68e9659ab Python verbose_eval extension
This is an extension of the verbose_eval abilities.

Removed some trailing-whitespaces
2015-11-13 08:19:44 +01:00