Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
FabienRoger committed Feb 2, 2023
1 parent fa37d84 commit 3f8a9ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"python.formatting.blackArgs": [
"-l 88"
]
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ Once finished, results will be saved in `evaluation_results/{model}_{prefix}_{se

### Development

Use `pip install pre-commit && pre-commit install` in the root folder before your first commit.
Use `pip install pre-commit && pre-commit install` in the root folder before your first commit.
2 changes: 1 addition & 1 deletion elk/utils_evaluation/ccs.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def get_confidence_loss(self, p0, p1):
Encourages p0 and p1 to be close to 0 or 1 (far from 0.5)
"""
min_p = torch.min(p0, p1)
return (min_p ** 2).mean(0)
return (min_p**2).mean(0)

def get_consistency_loss(self, p0, p1):
"""
Expand Down

0 comments on commit 3f8a9ec

Please sign in to comment.