Learn R Programming

tashu (version 0.1.1)

predict_bicycle_rental: 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

Run this code
# 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)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab