Skip to content

Commit

Permalink
Changed docstring of readout return type: float -> torch.Tensor
Browse files Browse the repository at this point in the history
  • Loading branch information
robby-wang committed Jan 18, 2024
1 parent 48ffe2e commit 952abbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mtenn/readout.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def forward(self, delta_g):
Returns
-------
float
torch.Tensor
Calculated pIC50 value.
"""
pic50 = -delta_g / torch.log(torch.tensor(10, dtype=delta_g.dtype))
Expand Down Expand Up @@ -116,7 +116,7 @@ def forward(self, delta_g):
Returns
-------
float
torch.Tensor
Calculated Ki value.
"""
ki = torch.exp(delta_g)
Expand Down

0 comments on commit 952abbd

Please sign in to comment.