Skip to content

Commit

Permalink
normalise sasa values
Browse files Browse the repository at this point in the history
  • Loading branch information
Pegerto Fernandez authored and Pegerto Fernandez committed Jan 7, 2024
1 parent 1ea470f commit 68b0b2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphpro/annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ def generate(self, G: Graph, atom_group: AtomGroup):

def encode(self, G: Graph) -> torch.tensor:
total_area = [G.node_attr(n)[self.attr_name] if self.attr_name in G.node_attr(n) else 0 for n in G.nodes()]
return torch.tensor([total_area], dtype=torch.float).T
return F.normalize(torch.tensor([total_area], dtype=torch.float).T)

0 comments on commit 68b0b2e

Please sign in to comment.