Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

features are already generated #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scitsr/data/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def get_vertexes(self, chunks):
def get_vertex_features(self, vertexes):
vertex_features = []
for vertex in vertexes:
features = [v for v in vertex.get_features().values()]
features = list(vertex.features.values())
vertex_features.append(features)
return vertex_features

Expand All @@ -238,7 +238,7 @@ def get_edges(self, relations, vertexes):
edge_features = []
for i, j, _ in relations:
edge = Edge(vertexes[i], vertexes[j])
features = [v for v in edge.get_features().values()]
features = list(edge.features.values())
edge_features.append(features)
return edge_features

Expand Down Expand Up @@ -310,4 +310,4 @@ def to_tensors(self, nodes, edges, adj, incidence):
edges = torch.tensor(edges, dtype=torch.float)
adj = torch.tensor(adj, dtype=torch.long)
incidence = torch.tensor(incidence, dtype=torch.long)
return nodes, edges, adj, incidence
return nodes, edges, adj, incidence