Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
willdumm committed Nov 14, 2024
1 parent 749f038 commit 281e119
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions netam/dasm.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def zap_predictions_along_diagonal(predictions, aa_parents_idxs):

class DASMBurrito(framework.TwoLossMixin, DXSMBurrito):
prefix = "dasm"

def __init__(self, *args, loss_weights: list = [1.0, 0.01], **kwargs):
super().__init__(*args, **kwargs)
self.xent_loss = torch.nn.CrossEntropyLoss()
Expand Down
2 changes: 2 additions & 0 deletions netam/dxsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

class DXSMDataset(Dataset, ABC):
prefix = "dxsm"

def __init__(
self,
nt_parents: pd.Series,
Expand Down Expand Up @@ -240,6 +241,7 @@ def update_neutral_probs(self):

class DXSMBurrito(framework.Burrito, ABC):
prefix = "dxsm"

def _find_optimal_branch_length(
self,
parent,
Expand Down

0 comments on commit 281e119

Please sign in to comment.