torchcell.transforms
PyG transforms applied to cell graphs. regression_to_classification and its COO variants normalize regression labels, bin them into classification targets, and invert the binning; hetero_to_dense_mask converts the sparse adjacencies of a HeteroData graph into boolean masks.
coo_regression_to_classification
Transforms converting COO-format regression labels to classification targets.
Classes
|
Transform for normalizing labels in COO format with different strategies. |
Base class for strategies that bin continuous values into classes. |
|
Binning strategy with bins of equal width across the value range. |
|
Binning strategy with bins holding roughly equal sample counts. |
|
Binning strategy that picks the bin count from the data's spread. |
|
Transform binning COO-format continuous labels into class indices. |
|
A transform that applies the inverse of a sequence of transforms in reverse order. |
hetero_to_dense_mask
Transform converting sparse hetero adjacencies to dense boolean masks.
Classes
Convert sparse hetero adjacencies to boolean dense masks. |
regression_to_classification
Transforms that bin regression labels into classification targets and invert them.
Classes
Transform for normalizing labels with different strategies. |
|
Base strategy providing shared clamping and encoding for label binning. |
|
Binning strategy with bins of equal width across the value range. |
|
Binning strategy with quantile-based bins of roughly equal frequency. |
|
Binning strategy that infers the bin count from the data std and range. |
|
Transform converting continuous labels into binned classification targets. |
|
A transform that applies the inverse of a sequence of transforms in reverse order. |
Functions
Return the lower-cased |