predict_bicycle_rental {tashu} | R Documentation |
predict hourly amount of bicycle rental in 2015 using random forest algorithm. Create prediction model using 'train_dataset' and forecast demand of bicycle rental according to the condition of 'test_dataset'
predict_bicycle_rental(rf_model, test_dataset)
rf_model |
random forest prediction model create by create_train_model() |
test_dataset |
testing dataset |
test_dataset with predictive result.
## Not run: train_dataset <- create_train_dataset(3)
test_dataset <- create_test_dataset(3)
rf_model <- create_train_model(train_dataset)
test_dataset <- predict_bicycle_rental(rf_model, test_dataset)
## End(Not run)