train is a generic function for training a time series model based on a particular training function defined in a modeling object. The function invokes particular methods which depend on the class of the first argument.
train(obj,...)## S3 method for class 'MLM'train(obj, data,...)## S3 method for class 'linear'train(obj, data,...)
Arguments
obj: An object of class modeling defining a particular model.
...: Other parameters passed to train_func of obj.
For train.MLM, sw of obj may be used to transform the time series in data into sliding windows used during training. Also, proc of obj may be used to preprocess the time series before training.