Created
February 29, 2020 11:47
-
-
Save dpoulopoulos/9ea4041546e61a73e50a1a4ea69a2c00 to your computer and use it in GitHub Desktop.
Definition of the confidence function for icf.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def conf_func(x: torch.tensor, a: float = 1) -> torch.tensor: | |
| x[x == 5.] = a * 1. | |
| x[x == 4.] = a * .5 | |
| x[x == 3.] = a * .01 | |
| x[x == 2.] = a * .5 | |
| x[x == 1.] = a * 1. | |
| return x.float() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment