You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the data argument of Predictor$predict() accepts a matrix, dgCMatrix, or filepath to a dataset stored in a file. Should add the support to pass in a lgb.Dataset object.
Motivation
Other parts of the lightgbm R package require or strongly encourage the use of an lgb.Dataset. If users already have code to convert their data into a lgb.Dataset, they should be able to use that same preprocessing to pass data to predict() to generate predictions.
Description
To close this issue, add support for lgb.Dataset in the Predictor class (R-package/R/lgb.Predictor.R) and add corresponding tests confirming that the predictions that are returned are correct.
The text was updated successfully, but these errors were encountered:
Summary
Currently, the
data
argument ofPredictor$predict()
accepts amatrix
,dgCMatrix
, or filepath to a dataset stored in a file. Should add the support to pass in algb.Dataset
object.Motivation
Other parts of the
lightgbm
R package require or strongly encourage the use of anlgb.Dataset
. If users already have code to convert their data into algb.Dataset
, they should be able to use that same preprocessing to pass data topredict()
to generate predictions.Description
To close this issue, add support for
lgb.Dataset
in thePredictor
class (R-package/R/lgb.Predictor.R
) and add corresponding tests confirming that the predictions that are returned are correct.The text was updated successfully, but these errors were encountered: