predict_bicycle_rental {tashu} | R Documentation |
Predict hourly Demand of bicycle in 2015.
Description
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'
Usage
predict_bicycle_rental(rf_model, test_dataset)
Arguments
rf_model |
random forest prediction model create by create_train_model() |
test_dataset |
testing dataset |
Value
test_dataset with predictive result.
Examples
## 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)
[Package tashu version 0.1.1 Index]