I would like to dgl graph so learnig for Grpah Convolutional Network model.
but I think I don’t know how to make make dgl graph.
I would like to question how to make dgl graph? like a exactly nodes featears and edges fearears.
I’m going to learing exactly nodes featears and edges fearears.
below example my sensor data
sensor0,sensor1,sensor2,sensor3,sensor4,label
59.6,24.7,274,2251,6333,2
44.8,21.6,212,2408,8585,2
43.6,21.4,98,12,416,0
and I drawed and learning graph like below
#graph [
Graph(num_nodes=5, num_edges=20,
ndata_schemes={‘x’: Scheme(shape=(), dtype=torch.float64)}
edata_schemes={}),
Graph(num_nodes=5, num_edges=20,
ndata_schemes={‘x’: Scheme(shape=(), dtype=torch.float64)}
edata_schemes={}),
Graph(num_nodes=5, num_edges=20,
ndata_schemes={‘x’: Scheme(shape=(), dtype=torch.float64)}
edata_schemes={}),
Graph(num_nodes=5, num_edges=20,
ndata_schemes={‘x’: Scheme(shape=(), dtype=torch.float64)}
edata_schemes={})]
#label [2, 0, 2, 0]
print(graph[0].ndata[‘x’] )
tensor([ 59.6000, 24.9000, 363.0000, 8849.0000, 22325.0000],
dtype=torch.float64)
My goal is graph classification
How to draw graph of my sensor data and make GCN model and learning?
Thank you for your insteresting.