53 Commits

Author SHA1 Message Date
Bernie Gray
cd7659937b [R] many minor changes to increase the robustness of the R code (#2404)
* many minor changes to increase robustness of R code

* fixing which mistake in xgb.model.dt.tree.R and a few cosmetics
2017-06-15 22:56:23 -05:00
Vadim Khotilovich
c66ca79221 [R] native routines registration (#2290)
* [R] add native routines registration

* c_api.h needs to include <cstdint> since it uses fixed width integer types

* [R] use registered native routines from R code

* [R] bump version; add info on native routine registration to the contributors guide

* make lint happy
2017-05-14 11:00:46 -07:00
Vadim Khotilovich
a375ad2822 [R] maintenance Apr 2017 (#2237)
* [R] make sure things work for a single split model; fixes #2191

* [R] add option use_int_id to xgb.model.dt.tree

* [R] add example of exporting tree plot to a file

* [R] set save_period = NULL as default in xgboost() to be the same as in xgb.train; fixes #2182

* [R] it's a good practice after CRAN releases to bump up package version in dev

* [R] allow xgb.DMatrix construction from integer dense matrices

* [R] xgb.DMatrix: silent parameter; improve documentation

* [R] xgb.model.dt.tree code style changes

* [R] update NEWS with parameter changes

* [R] code safety & style; handle non-strict matrix and inherited classes of input and model; fixes #2242

* [R] change to x.y.z.p R-package versioning scheme and set version to 0.6.4.3

* [R] add an R package versioning section to the contributors guide

* [R] R-package/README.md: clean up the redundant old installation instructions, link the contributors guide
2017-05-01 22:51:34 -07:00
Vadim Khotilovich
d7406e07f3 [R] xgb.plot.tree fixes (#1939)
* [R] a few fixes and improvements to xgb.plot.tree

* [R] deprecate n_first_tree replace with trees; fix types in xgb.model.dt.tree
2017-01-06 11:09:51 -08:00
Tong He
4733357278 [R] Monotonic Constraints in Tree Construction (#1557)
* fix cran check

* change required R version because of utils::globalVariables

* temporary commit, monotone not working

* fix test

* fix doc

* fix doc
2016-09-11 22:16:33 -07:00
Vadim Khotilovich
bdfa8c0e09 [R-package] a few fixes for R (#1485)
* [R] fix #1465

* [R] add sanity check to fix #1434

* [R] some clean-ups for custom obj&eval; require maximize only for early stopping
2016-08-20 05:09:03 -05:00
Vadim Khotilovich
d5c143367d [R-package] GPL2 dependency reduction and some fixes (#1401)
* [R] do not remove zero coefficients from gblinear dump

* [R] switch from stringr to stringi

* fix #1399

* [R] separate ggplot backend, add base r graphics, cleanup, more plots, tests

* add missing include in amalgamation - fixes building R package in linux

* add forgotten file

* [R] fix DESCRIPTION

* [R] fix travis check issue and some cleanup
2016-07-27 00:05:04 -07:00
Vadim Khotilovich
c342614a81 [R] add parameter deprecation related utilities; code style 2016-06-27 01:49:51 -05:00
Vadim Khotilovich
422b0000a8 R-callbacks refactor 2016-06-09 02:46:13 -05:00
Vadim Khotilovich
71f402ac16 convert S4 to S3; add some extra methods to DMatrix 2016-03-27 19:22:22 -05:00
Tong He
4db3dfee7d Update utils.R 2015-11-08 18:08:51 -08:00
terrytangyuan
5b9e071c18 Fix travis build (+1 squashed commit)
Squashed commits:
[9240d5f] Fix Travis build
2015-10-29 00:28:53 -04:00
terrytangyuan
6024480400 Fixed most of the lint issues 2015-10-28 23:24:17 -04:00
terrytangyuan
8bae715994 Lint fix on infix operators 2015-10-28 23:04:45 -04:00
terrytangyuan
d7fce99564 Lint fix on consistent assignment 2015-10-28 22:22:51 -04:00
terrytangyuan
537b34dc6f Code: Some Lint fixes 2015-10-24 16:43:44 -04:00
kferris
7a94bdb60c Switch missing values from 0 to NA in R package 2015-10-07 18:51:47 -04:00
unknown
3d6c831e8a add error for data.frame, add weight to xgboost 2015-09-02 21:43:23 -07:00
unknown
198c5bb55e fix namespace and desc 2015-07-24 11:58:02 -07:00
Tong He
61142f203b check whether objective is character 2015-06-11 14:04:43 -07:00
Vadim Khotilovich
c18e081f48 cleanup 2015-05-01 16:16:50 -05:00
Vadim Khotilovich
0a3e7722fd a safeguard against someone using automatic folds creation with ranking 2015-05-01 15:16:30 -05:00
Vadim Khotilovich
f325930bd9 Improved logic in stratified CV to guess class/regr
Somewhat more robust and clear logic in stratified CV to guess classification/regression settings. Allows to accomodate custom objectives (classification is assumed when number of unique values in labels <= 5).
2015-05-01 15:08:08 -05:00
Tong He
bab7b58d94 Merge pull request #227 from khotilov/master
add stratified cross validation for classification
2015-04-30 11:39:52 -07:00
nagadomi
87b4332cc1 Fix length check in utils.R 2015-04-09 02:25:47 +09:00
Vadim Khotilovich
31b0e53cd4 make it possible to use a list of pre-defined CV folds in xgb.cv 2015-04-03 13:24:04 -05:00
Vadim Khotilovich
611d69c771 fix some wording 2015-04-02 19:59:06 -05:00
Vadim Khotilovich
b8711226e2 added an option for stratified CV to xgb.cv 2015-04-02 19:48:23 -05:00
tqchen
4eae8e8676 allow xgb.load re-use raw information if necessary 2015-03-26 16:54:29 -07:00
tqchen
98618646f6 bugfix booster.check 2015-03-26 16:43:01 -07:00
Tong He
5648bec8a3 Update utils.R 2015-03-20 22:41:47 -07:00
Tong He
f6722ba628 Update utils.R 2015-03-20 11:06:01 -07:00
Tong He
a146f0c5e1 Update utils.R 2015-03-16 23:23:22 -07:00
Tong He
1e001f7cf3 add length check 2015-03-16 23:20:31 -07:00
hetong007
4c25600d2a fix segfault and add two function for handle and booster 2015-02-09 17:28:48 -08:00
hetong007
0aef62dabc fix with new predict 2015-02-09 16:25:00 -08:00
hetong007
f7c838ffaa fix bugs 2015-02-09 16:16:11 -08:00
hetong007
5b611c355e add handle and raw structure to xgb.Booster 2015-02-09 15:51:24 -08:00
tqchen
dc3003cefd add saveload to raw 2015-02-01 21:17:37 -08:00
hetong007
947f0a926d enable returning prediction in cv 2015-01-20 14:12:45 -08:00
Tong He
bbd7098e51 Update utils.R
add parameter missing
2014-11-20 15:13:28 -08:00
tqchen
5621d9811f remove deprecate 2014-09-07 10:17:34 -07:00
tqchen
e9ed4eb1a2 ok 2014-09-06 11:13:19 -07:00
tqchen
4a8612defc add customize objective 2014-09-06 10:19:19 -07:00
tqchen
ab238ff831 chg cv 2014-09-05 22:46:09 -07:00
tqchen
0ecd6c08f3 add cross validation 2014-09-05 22:34:32 -07:00
tqchen
984102e586 style cleanup, incomplete CV 2014-09-05 20:34:41 -07:00
tqchen
29a7027dba fix the zero length vector 2014-09-01 22:50:48 -07:00
tqchen
168f78623f allow standalone random 2014-08-31 14:07:44 -07:00
hetong
9b618acba2 add import methods in NAMESPACE 2014-08-30 15:42:57 -07:00