do_prediction: Do Prediction

Description Usage Arguments Value Methods (by class)

Description

This is a generic function that do prediction according to the input object type.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
do_prediction(object, trained_result, predict_info, test_x, test_xreg)

## S4 method for signature 'anovatree_pred,list,data.frame,numeric,data.frame'
do_prediction(object, trained_result, predict_info, test_x, test_xreg)

## S4 method for signature 'arima_sim,list,data.frame,matrix,'NULL''
do_prediction(object, trained_result, predict_info, test_x, test_xreg)

## S4 method for signature 'arima_sim,list,data.frame,matrix,matrix'
do_prediction(object, trained_result, predict_info, test_x, test_xreg)

## S4 method for signature 'arima_sim,list,data.frame,matrix,list'
do_prediction(object, trained_result, predict_info, test_x, test_xreg)

## S4 method for signature 'auto_arima_sim,list,data.frame,matrix,'NULL''
do_prediction(object, trained_result, predict_info, test_x, test_xreg)

## S4 method for signature 'auto_arima_sim,list,data.frame,matrix,matrix'
do_prediction(object, trained_result, predict_info, test_x, test_xreg)

## S4 method for signature 'auto_arima_sim,list,data.frame,matrix,list'
do_prediction(object, trained_result, predict_info, test_x, test_xreg)

## S4 method for signature 'autopilot_sim,list,data.frame,'NULL',matrix'
do_prediction(object, trained_result, predict_info, test_x, test_xreg)

## S4 method for signature 'ets_sim,list,data.frame,matrix,'NULL''
do_prediction(object, trained_result, predict_info, test_x, test_xreg)

## S4 method for signature 'gmm_pred,list,data.frame,numeric,data.frame'
do_prediction(object, trained_result, predict_info, test_x, test_xreg)

## S4 method for signature 'lm_sim,list,data.frame,matrix,matrix'
do_prediction(object, trained_result, predict_info, test_x, test_xreg)

## S4 method for signature 'lm_sim,list,data.frame,matrix,list'
do_prediction(object, trained_result, predict_info, test_x, test_xreg)

## S4 method for signature 'markov_sim,list,data.frame,matrix,'NULL''
do_prediction(object, trained_result, predict_info, test_x, test_xreg)

## S4 method for signature 'markov_sim,list,data.frame,matrix,matrix'
do_prediction(object, trained_result, predict_info, test_x, test_xreg)

## S4 method for signature 'multinom_sim,list,data.frame,matrix,list'
do_prediction(object, trained_result, predict_info, test_x, test_xreg)

## S4 method for signature 'nn_sim,list,data.frame,matrix,'NULL''
do_prediction(object, trained_result, predict_info, test_x, test_xreg)

## S4 method for signature 'nn_sim,list,data.frame,matrix,matrix'
do_prediction(object, trained_result, predict_info, test_x, test_xreg)

## S4 method for signature 'nn_sim,list,data.frame,matrix,list'
do_prediction(object, trained_result, predict_info, test_x, test_xreg)

## S4 method for signature 'stlm_sim,list,data.frame,matrix,'NULL''
do_prediction(object, trained_result, predict_info, test_x, test_xreg)

## S4 method for signature 'stlm_sim,list,data.frame,matrix,matrix'
do_prediction(object, trained_result, predict_info, test_x, test_xreg)

## S4 method for signature 'stlm_sim,list,data.frame,matrix,list'
do_prediction(object, trained_result, predict_info, test_x, test_xreg)

## S4 method for signature 'structual_sim,list,data.frame,matrix,'NULL''
do_prediction(object, trained_result, predict_info, test_x, test_xreg)

## S4 method for signature 'surtree_pred,list,data.frame,numeric,data.frame'
do_prediction(object, trained_result, predict_info, test_x, test_xreg)

## S4 method for signature 'var_sim,list,data.frame,matrix,matrix'
do_prediction(object, trained_result, predict_info, test_x, test_xreg)

## S4 method for signature 'var_sim,list,data.frame,matrix,list'
do_prediction(object, trained_result, predict_info, test_x, test_xreg)

Arguments

object

An S4 sim object.

trained_result

A list or other class returend by train_model, containing trained model information.

predict_info

A dataframe representing all the past predicted or scheduled information.

test_x

A numeric vector representing the test dataset up to current time.

test_xreg

A dataframe representing the external predictors.

Value

The updated predict_info on the last row.

Methods (by class)


carlonlv/DataCenterSim documentation built on Jan. 9, 2022, 3:26 p.m.