# NOT RUN {
df = mtcars2[, ! names(mtcars2) %in% 'ids' ]
train = caret::train( disp ~ .
                     , df
                     , method = 'rf'
                     , trControl = caret::trainControl( method = 'none' )
                     , importance = TRUE )
alluvial_model_response_caret(train, degree = 3)
# partial dependency plotting method
# }
# NOT RUN {
alluvial_model_response_caret(train, degree = 3, method = 'pdp')
 
# }
Run the code above in your browser using DataLab