Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Sang Choe authored and Sang Choe committed Apr 23, 2024
1 parent cfe3c1b commit 043d56d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ for both training data attribution and uncertainty quantification for AI safety.
logix.eval() # enter analysis mode
log_loader = logix.build_log_dataloader() # return PyTorch DataLoader for log data

with logix(data_id=test_input):
with run(data_id=test_input):
test_out = model(test_input)
test_loss = loss_fn(test_out, test_target, reduction="sum")
test_loss.backward()
Expand Down
2 changes: 1 addition & 1 deletion logix/analysis/influence_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def compute_self_influence(
tgt = self.precondition(src_log, hessian=hessian, damping=damping)[1]

# Initialize influence scores
tota_influence = {"total": 0}
total_influence = {"total": 0}
for influence_group in influence_groups or []:
total_influence[influence_group] = 0

Expand Down

0 comments on commit 043d56d

Please sign in to comment.