run.k.fold.cv.rfe.wrap: run.k.fold.cv.rfe.wrap: wrap cv (the 'run.k.fold.cv'...

Description Usage Arguments Value

View source: R/cv_rfe.R

Description

Version 3 CV with RFE (recursive feature selection using SHAP), use random search by xgboost.dart.cvtune.

Usage

1
2
3
run.k.fold.cv.rfe.wrap(modeldt1, sat, y_var, features0, k_fold = 5,
  stn_var = NULL, day_var = NULL, run_param_cv = T, run_rfe = T,
  predict_whole_model = T)

Arguments

modeldt1

the dataset

sat

Name of the satellite, just for labelling purpose, for example "terra"

y_var

the y variables, for example y_var = "AOD_diff"

features0

the features to use

k_fold

default to 5 k_fold cross-validation

stn_var

the variable presenting stations if cv by stn

day_var

the variable presenting dayint if cv by day, if provide both, will run cv by station. day_var should be date, or int.

run_param_cv

run parameter search or not, default to TRUE, but set to FALSE during the RFE process, could be changed to TRUE in the code to allow parameter tuning during RFE process. May not be necessary.

run_rfe

default to TRUE, run RFE

predict_whole_model

default to TRUE, fit the whole model in the end using selected features from RFE

Value

a list of object:


liuyanguu/plotthis documentation built on Nov. 4, 2019, 4:35 p.m.