sccross.models.utils¶
Probability distributions
Functions
Get torch computation device automatically based on GPU availability and memory usage |
|
Selectively stops normalization layers from updating running stats |
|
Get numpy dtype matching that of the pytorch default dtype |
Classes
Early stop model training when loss no longer decreases |
|
Reduce learning rate on loss plateau |
|
A “sham” distribution that outputs negative MSE on |
|
Abstract model class |
|
A “sham” distribution that outputs negative RMSE on |
|
Training logging via tensorboard |
|
Abstract trainer class |
|
Plugin used to extend the training process with certain functions |
|
Zero-inflated log-normal distribution with subsetting support |
|
Zero-inflated normal distribution with subsetting support |
|
Zero-inflated negative binomial distribution |