71 Commits

Author SHA1 Message Date
Andrew Thia
9254c58e4d [TREE] add interaction constraints (#3466)
* add interaction constraints

* enable both interaction and monotonic constraints at the same time

* fix lint

* add R test, fix lint, update demo

* Use dmlc::JSONReader to express interaction constraints as nested lists; Use sparse arrays for bookkeeping

* Add Python test for interaction constraints

* make R interaction constraints parameter based on feature index instead of column names, fix R coding style

* Fix lint

* Add BlueTea88 to CONTRIBUTORS.md

* Short circuit when no constraint is specified; address review comments

* Add tutorial for feature interaction constraints

* allow interaction constraints to be passed as string, remove redundant column_names argument

* Fix typo

* Address review comments

* Add comments to Python test
2018-09-04 09:35:39 -07:00
Jakob Richter
725f4c36f2 replace nround with nrounds to match actual parameter (#3592) 2018-08-15 11:13:53 -07:00
Tong He
098075b81b
CRAN Submission for 0.71.1 (#3311)
* fix for CRAN manual checks

* fix for CRAN manual checks

* pass local check

* fix variable naming style

* Adding Philip's record
2018-05-14 17:32:39 -07:00
Tong He
ace4016c36
Replace cBind by cbind (#3203)
* modify test_helper.R

* fix noLD

* update desc

* fix solaris test

* fix desc

* improve fix

* fix url

* change Matrix cBind to cbind

* fix

* fix error in demo

* fix examples
2018-03-28 10:05:47 -07:00
Vadim Khotilovich
e8a6597957 [R] maintenance Nov 2017; SHAP plots (#2888)
* [R] fix predict contributions for data with no colnames

* [R] add a render parameter for xgb.plot.multi.trees; fixes #2628

* [R] update Rd's

* [R] remove unnecessary dep-package from R cmake install

* silence type warnings; readability

* [R] silence complaint about incomplete line at the end

* [R] initial version of xgb.plot.shap()

* [R] more work on xgb.plot.shap

* [R] enforce black font in xgb.plot.tree; fixes #2640

* [R] if feature names are available, check in predict that they are the same; fixes #2857

* [R] cran check and lint fixes

* remove tabs

* [R] add references; a test for plot.shap
2017-12-05 09:45:34 -08:00
Vadim Khotilovich
74db9757b3 [R package] GPU support (#2732)
* [R] MSVC compatibility

* [GPU] allow seed in BernoulliRng up to size_t and scale to uint32_t

* R package build with cmake and CUDA

* R package CUDA build fixes and cleanups

* always export the R package native initialization routine on windows

* update the install instructions doc

* fix lint

* use static_cast directly to set BernoulliRng seed

* [R] demo for GPU accelerated algorithm

* tidy up the R package cmake stuff

* R pack cmake: installs main dependency packages if needed

* [R] version bump in DESCRIPTION

* update NEWS

* added short missing/sparse values explanations to FAQ
2017-09-28 18:15:28 -05:00
davidt0x
b29b7d1d76 Fixed loop bound in create.new.tree.features (#2328)
for loop in create.new.tree.features was referencing length(trees) as the upper bound of the loop. trees is a base R dataset and not the model that the code is generating. Changed loop boundary to model$niter which should be the number of trees.
2017-05-30 17:50:33 +02:00
moqiguzhu
5d093a7f4c in caret settings, if you want do 10*10 cross validation, you need to set repeats=10, number=10 and method=repeatedcv, (#2061)
if you set method=cv, actually just one 10-fold cross validation will be run; fixes #2055
2017-02-25 09:16:19 -05:00
Tong He
2f3958a455 Fix for CRAN Submission (#1826)
* fix cran check

* change required R version because of utils::globalVariables

* temporary commit, monotone not working

* fix test

* fix doc

* fix doc

* fix cran note and warning

* improve checks

* fix urls
2016-12-02 20:19:03 -08:00
Tony DiFranco
2ad0948444 Tweedie Regression Post-Rebase (#1737)
* add support for tweedie regression

* added back readme line that was accidentally deleted

* fixed linting errors

* add support for tweedie regression

* added back readme line that was accidentally deleted

* fixed linting errors

* rebased with upstream master and added R example

* changed parameter name to tweedie_variance_power

* linting error fix

* refactored tweedie-nloglik metric to be more like the other parameterized metrics

* added upper and lower bound check to tweedie metric

* add support for tweedie regression

* added back readme line that was accidentally deleted

* fixed linting errors

* added upper and lower bound check to tweedie metric

* added back readme line that was accidentally deleted

* rebased with upstream master and added R example

* rebased again on top of upstream master

* linting error fix

* added upper and lower bound check to tweedie metric

* rebased with master

* lint fix

* removed whitespace at end of line 186 - elementwise_metric.cc
2016-11-05 17:02:32 -07:00
Vadim Khotilovich
3b6b344561 [R] adopt demos and vignettes to a more consistent parameter style 2016-06-27 02:00:39 -05:00
Andrew Smith
5efc1ee3a4 Fixed typos. 2016-03-22 12:54:18 +00:00
Michaël Benesty
c1b2d9cb86 Generate new features based on tree leafs 2015-12-07 11:30:19 +01:00
Michaël Benesty
3b67028ad6 remove intersect column in sparse Matrix 2015-12-05 19:02:05 +01:00
pommedeterresautee
39fa45debe Add code to demo of leaf (show imprmt in accuracy) 2015-12-04 15:16:58 +01:00
pommedeterresautee
7479cc68a7 Cleaning of demo 2015-12-02 15:47:45 +01:00
pommedeterresautee
fe7cdcefb4 Implement #431 PR 2015-11-23 18:19:59 +01:00
terrytangyuan
424bcc05fa ENH: More comments and explanation on demo using xgboost from caret 2015-09-10 23:41:36 -04:00
Yuan Tang (Terry)
62e95dcc60 DOC: Added caret_wrapper.R link into demo/README.md 2015-09-10 23:23:30 -04:00
terrytangyuan
9ead44531e DOC: Added new demo to index 2015-09-08 10:54:07 -04:00
terrytangyuan
d3bb466026 ENH/DOC: Added R package demo using caret library to train xgbTree model 2015-09-08 10:51:20 -04:00
Yuan Tang
3dd40b9f37 fixed typos in basic_walkthrough demo 2015-08-10 20:35:10 -04:00
terrytangyuan
b3bffcef34 fixed some typos in demos comments 2015-08-09 22:15:02 -04:00
Ajinkya Kale
0c8c231949 Fixing duplicate params in demo
Issue in "demo(package="xgboost", custom_objective)"

> bst <- xgb.train(param, dtrain, num_round, watchlist, 
+                  objective=logregobj, eval_metric=evalerror)
Error in xgb.train(param, dtrain, num_round, watchlist, objective = logregobj,  : 
  Duplicated term in parameters. Please check your list of params.
2015-07-29 14:28:34 -07:00
Ajinkya Kale
57e4f4d426 need to load vcd if it was freshly installed 2015-07-07 17:36:18 -07:00
hetong007
36031d9a36 modify script to use objective and eval_metric 2015-05-30 15:48:57 -07:00
hetong007
8d3a7e1688 change doc and demo for new obj feval interface 2015-05-25 11:30:04 -07:00
hetong
c05cc48dfa delete abundant file 2015-05-11 20:55:09 -07:00
hetong007
cfdd6029a8 rename demo of early stopping 2015-05-11 16:59:18 -07:00
hetong007
90096e718c fix early stopping 2015-05-11 16:53:51 -07:00
hetong007
83ace55f51 add early stopping to xgb.cv 2015-05-11 16:03:40 -07:00
hetong007
60d307c445 add poisson demo 2015-05-11 15:21:54 -07:00
hetong007
419e4dbda6 add demo for early_stopping in R 2015-05-06 15:14:29 -07:00
hetong007
0f182b0b66 fix logic 2015-05-05 16:44:36 -07:00
hetong
41b080e35f To submit to CRAN we cannot use more than 2 threads in our examples/vignettes 2015-03-03 00:21:24 -08:00
Michaël Benesty
5d135858f7 Spell 2015-02-02 13:21:13 +01:00
tqchen
1d21ff87ff add saveload to raw 2015-02-01 21:19:24 -08:00
tqchen
dc3003cefd add saveload to raw 2015-02-01 21:17:37 -08:00
Tong He
6e91846c55 Merge pull request #155 from pommedeterresautee/master
fix mermaid + change in description + new plot importance feature function + fix bug in CV function + add 1 Vignette
2015-02-01 14:12:43 -08:00
pommedeterresautee
a17e29b130 Fix bug in Cross Validation when showsd = FALSE 2015-02-01 14:08:48 +01:00
Tong He
4d79ed9bb1 Update runall.R 2015-01-29 13:30:47 -08:00
hetong007
6901e90730 resolving not-CRAN issues 2015-01-20 15:51:42 -08:00
hetong007
eb01acfad8 improve demo of cv in R 2015-01-20 14:35:44 -08:00
hetong
c0c6951b73 fix bug in format of input 2015-01-19 19:26:25 -08:00
hetong
43c13d82ba add leaf example in R 2015-01-19 10:34:14 -08:00
El Potaeto
5e5500d6d3 rewording 2015-01-01 13:50:28 +01:00
El Potaeto
4f0ae53974 text change 2014-12-31 10:49:05 +01:00
El Potaeto
9998575c32 Small text improvement 2014-12-31 10:47:57 +01:00
El Potaeto
4cc3790b76 Improve explanation, add new concepts. 2014-12-31 10:36:10 +01:00
El Potaeto
c3d8f21df3 change assignation sign 2014-12-31 00:52:53 +01:00