Predict from a greedy concentration-index forest
Arguments
- object
A fitted
ci_forestobject fromci_forest().- newdata
Optional data for prediction. If omitted, the training data stored in
objectare used.- type
Prediction type.
"response"returns averaged terminal-node summaries."node"returns terminal node ids for each tree.- OOB
Should predictions for training rows use only trees where the row was out-of-bag? Rows without any out-of-bag tree return
NA; they are never filled with in-sample tree averages. WithOOB = TRUE,newdatamust be omitted or must be the identical training data frame so that the in-bag mask can be applied to matching rows.- FUN
Optional function with signature
function(y, w)used to summarize terminal nodes. By default, the weighted mean ofoutcome_nameis used.- ...
Currently ignored.