-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmem_profile.R
46 lines (40 loc) · 1.74 KB
/
mem_profile.R
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
library(profvis)
source("funcs.R")
prof.2hrsph3 <- lineprof(
fullforecast.serial(model = 'Arima(order=c(1, 0, 0), seasonal=c(1, 0, 0), method="ML")',
dataset = datasets[['2hrs ph3']]$series,
transformation = 'identity()',
traindays = 7,
testdays = 1,
xreg = NULL,
max.iterations = 2))
print(prof.2hrsph3)
prof.ph3 <- lineprof(
fullforecast.serial(model = 'Arima(order=c(1, 0, 0), seasonal=c(1, 0, 0), method="ML")',
dataset = datasets[['ph3']]$series,
transformation = 'identity()',
traindays = 1,
testdays = 1,
xreg = NULL,
max.iterations = 2))
print(prof.ph3)
prof.ph3.serial.obs <- profvis(
fullforecast.serial.obs(model = 'Arima(order=c(1, 0, 0), seasonal=c(1, 0, 0), method="ML")',
dataset = datasets[['ph3']]$series,
transformation = 'identity()',
trainobs = 12, #frequency(datasets[['ph3']]$series),
testobs = 1,
xreg = NULL,
max.iterations = 0)
)
print(prof.ph3.serial.obs)
prof.2hrsph3.serial.obs <- profvis(
fullforecast.serial.obs(model = 'Arima(order=c(1, 0, 0), seasonal=c(1, 0, 0), method="ML")',
dataset = datasets[['2hrs ph3']]$series,
transformation = 'identity()',
trainobs = 12, #frequency(datasets[['ph3']]$series),
testobs = 1,
xreg = NULL,
max.iterations = 0)
)
print(prof.2hrsph3.serial.obs)