http://www.cs.princeton.edu/academics/catalog
- COS314 - Introduction to Computer Music
- COS318 - Operating Systems
- COS320 - Compiling Techniques
- COS326 - Functional Programming
def soft_dice_loss(y_true, y_pred, epsilon=1e-6): | |
''' | |
Soft dice loss calculation for arbitrary batch size, number of classes, and number of spatial dimensions. | |
Assumes the `channels_last` format. | |
# Arguments | |
y_true: b x X x Y( x Z...) x c One hot encoding of ground truth | |
y_pred: b x X x Y( x Z...) x c Network output, must sum to 1 over c channel (such as after softmax) | |
epsilon: Used for numerical stability to avoid divide by zero errors | |
http://www.cs.princeton.edu/academics/catalog