Description Usage Arguments Details
XGboost prediction on rasterstacks, allowing missing value
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
sr |
raster stack of predictors |
df_var |
dataframe containing predictors and responses |
y_var |
specify the name of the response |
xgbname |
specify the name/directoray of the predicted raster file to save |
use as.matrix instead of a sparse matrix model, the R Matrix package is therefore not needed and missing data is kept in, though in situations with lots of zeros, it is less efficient than using a sparse matrix. The same dense array is used in the xgboost_imp, xgboost_LUR, and xgb_pre. The other funciton, predicLA_RF_XGB_tiles used a sparse matrix, which means rows with missing values are missed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.