Learn R Programming

TrafficBDE (version 0.1.2)

PredictionCR: Prediction

Description

This function predicts the average speed of the road.

Usage

PredictionCR(List,NNOut,predict)

Value

The predicted average speed of the road

Arguments

List

A list with the following components: trainset, testset, MinMaxFromScaling

NNOut

The train model

predict

The value to be predicted

Author

Aikaterini Chatzopoulou, Kleanthis Koupidis, Charalampos Bratsas

Details

This function returns the predicted average speed.

See Also

PreProcessingLink, TrainCR

Examples

Run this code
if (FALSE) {
SpecLink <- loadDataSpecLink("163204843","1", X163204843_1)
x <- fillMissingValues(SpecLink)
datetime <- "2017-01-27 14:00:00" 
newData <- fillMissingDates (x, datetime)
DataList <- loadTrainTest (newData, datetime, "Mean_speed")
List <- PreProcessingLink(DataList)
NNOut <- TrainCR (List,"Mean_speed")
predicted <- PredictionCR(List,NNOut,"Mean_speed")}

Run the code above in your browser using DataLab