xgboost/R-package
Philip Hyunsu Cho 109473dae2
Fix #3545: XGDMatrixCreateFromCSCEx silently discards empty trailing rows (#3553)
* Fix #3545: XGDMatrixCreateFromCSCEx silently discards empty trailing rows

Description: The bug is triggered when

1. The data matrix has empty rows at the bottom. More precisely, the rows
   `n-k+1`, `n-k+2`, ..., `n` of the matrix have missing values in all
   dimensions (`n` number of instances, `k` number of trailing rows)
2. The data matrix is given as Compressed Sparse Column (CSC) format.

Diagnosis: When the CSC matrix is converted to Compressed Sparse Row (CSR)
format (this is common format used for DMatrix), the trailing empty rows
are silently ignored. More specifically, the row pointer (`offset`) of the
newly created CSR matrix does not take account of these rows.

Fix: Modify the row pointer.

* Add regression test
2018-08-05 10:15:42 -07:00
..
2015-01-20 15:51:42 -08:00
2018-05-14 17:32:39 -07:00
2018-05-14 17:32:39 -07:00
2017-05-07 16:54:48 -07:00
2015-07-24 11:58:02 -07:00
2017-04-29 18:44:08 -07:00
2017-04-29 18:44:08 -07:00
2018-06-18 12:53:52 -07:00
2018-03-28 10:05:47 -07:00
2018-04-22 09:24:38 -04:00

XGBoost R Package for Scalable GBM

CRAN Status Badge CRAN Downloads Documentation Status

Resources

Installation

We are on CRAN now. For stable/pre-compiled(for Windows and OS X) version, please install from CRAN:

install.packages('xgboost')

For more detailed installation instructions, please see here.

Examples

Development