Learn R Programming

TrafficBDE (version 0.1.2)

TrainCR: Train

Description

This function trains the model.

Usage

TrainCR(List,predict)

Value

The train model

Arguments

List

A list with the following components: trainset, testset, Min, Max

predict

The value to be predicted

Author

Aikaterini Chatzopoulou, Kleanthis Koupidis

Details

This function returns the trained model.

See Also

PreProcessingLink

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")}

Run the code above in your browser using DataLab