novae.module.GraphAugmentation
novae.module.GraphAugmentation
Bases: LightningModule
Perform graph augmentation for Novae. It adds noise to the data and keeps a subset of the genes.
Source code in novae/module/augment.py
__init__(panel_subset_size, background_noise_lambda, sensitivity_noise_std)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
panel_subset_size |
float
|
Ratio of genes kept from the panel during augmentation. |
required |
background_noise_lambda |
float
|
Parameter of the exponential distribution for the noise augmentation. |
required |
sensitivity_noise_std |
float
|
Standard deviation for the multiplicative for for the noise augmentation. |
required |
Source code in novae/module/augment.py
forward(data)
Perform data augmentation (noise
and panel_subset
).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data |
Data
|
A Pytorch Geometric |
required |
Returns:
Type | Description |
---|---|
Data
|
The augmented |
Source code in novae/module/augment.py
noise(data)
Add noise (inplace) to the data as detailed in the article.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data |
Data
|
A Pytorch Geometric |
required |
Source code in novae/module/augment.py
panel_subset(data)
Keep a ratio of panel_subset_size
of the input genes (inplace operation).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data |
Data
|
A Pytorch Geometric |
required |