forked from sheoyon-jhin/CONTIME
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontrol_tower.py
More file actions
17 lines (14 loc) · 861 Bytes
/
control_tower.py
File metadata and controls
17 lines (14 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import function_tower
import model_tower
from random import SystemRandom
import os
def Model_selection_part(args,input_channels,output_channels,device):
model_name = args.model
hidden_channels = args.h_channels
experiment_id = int(SystemRandom().random()*100000)
file_path = os.path.dirname(os.path.abspath(__file__)) +"/"+str(args.dataset)
if args.model =='contime':
func=function_tower.GRU_ODE_Delay(input_channels,hidden_channels,file_path=file_path,rnd=experiment_id,time_max = args.seq_len)
model = model_tower.CONTime(func=func,args=args,input_channels=input_channels, hidden_channels=hidden_channels, output_channels=output_channels,pred_len=args.pred_len,device=device,
file_path=file_path,rnd =experiment_id,alpha=args.alpha,beta=args.beta,interpolation=args.interpolation)
return model