def get_model(args, dm): model = None if args.model_name == "GCN": model = models.GCN(adj=dm.adj, input_dim=args.seq_len, output_dim=args.hidden_dim) if args.model_name == "GRU": model = models.GRU(input_dim=dm.adj.shape[0], hidden_dim=args.hidden_dim) if args.model_name == "TGCN": model = models.TGCN(adj=dm.adj, hidden_dim=args.hidden_dim) return model
def get_model(args, dm): model = None if args.model_name == 'GCN': model = models.GCN(adj=dm.adj, input_dim=args.seq_len, output_dim=args.hidden_dim) if args.model_name == 'GRU': model = models.GRU(input_dim=dm.adj.shape[0], hidden_dim=args.hidden_dim) if args.model_name == 'TGCN': model = models.TGCN(adj=dm.adj, hidden_dim=args.hidden_dim, loss=args.loss) return model