predict_bicycle_rental: Predict hourly Demand of bicycle in 2015.

Description Usage Arguments Value Examples

View source: R/predict_bicycle_rental.R

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

1
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

1
2
3
4
5
## 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)

zeee1/Tashu_Rpackage documentation built on Jan. 22, 2021, 7:53 p.m.