bernn 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- bernn/__init__.py +44 -0
- bernn/dl/__init__.py +39 -0
- bernn/dl/models/__init__.py +0 -0
- bernn/dl/models/pytorch/__init__.py +11 -0
- bernn/dl/models/pytorch/aecnndann.py +1180 -0
- bernn/dl/models/pytorch/aedann.py +1057 -0
- bernn/dl/models/pytorch/aeekandann.py +1081 -0
- bernn/dl/models/pytorch/aekandann.py +1066 -0
- bernn/dl/models/pytorch/utils/__init__.py +32 -0
- bernn/dl/models/pytorch/utils/dataset.py +1370 -0
- bernn/dl/models/pytorch/utils/distributions.py +84 -0
- bernn/dl/models/pytorch/utils/loggings.py +1600 -0
- bernn/dl/models/pytorch/utils/losses.py +80 -0
- bernn/dl/models/pytorch/utils/metrics.py +111 -0
- bernn/dl/models/pytorch/utils/plotting.py +80 -0
- bernn/dl/models/pytorch/utils/stochastic.py +53 -0
- bernn/dl/models/pytorch/utils/utils.py +797 -0
- bernn/dl/train/__init__.py +14 -0
- bernn/dl/train/aecnndann.py +649 -0
- bernn/dl/train/aedacnn.py +1478 -0
- bernn/dl/train/data_getters.py +976 -0
- bernn/dl/train/dataset.py +1568 -0
- bernn/dl/train/pytorch/__init__.py +3 -0
- bernn/dl/train/pytorch/aecnndann.py +1180 -0
- bernn/dl/train/pytorch/aedann.py +1072 -0
- bernn/dl/train/pytorch/aeekandann.py +1635 -0
- bernn/dl/train/pytorch/aekandann.py +1017 -0
- bernn/dl/train/pytorch/avekandann.py +1173 -0
- bernn/dl/train/pytorch/ekan/__init__.py +3 -0
- bernn/dl/train/pytorch/ekan/src/__init__.py +0 -0
- bernn/dl/train/pytorch/ekan/src/efficient_kan/__init__.py +3 -0
- bernn/dl/train/pytorch/ekan/src/efficient_kan/kan.py +339 -0
- bernn/dl/train/pytorch/utils/__init__.py +37 -0
- bernn/dl/train/pytorch/utils/dataset.py +1370 -0
- bernn/dl/train/pytorch/utils/distributions.py +84 -0
- bernn/dl/train/pytorch/utils/loggings.py +1615 -0
- bernn/dl/train/pytorch/utils/losses.py +80 -0
- bernn/dl/train/pytorch/utils/metrics.py +111 -0
- bernn/dl/train/pytorch/utils/plotting.py +80 -0
- bernn/dl/train/pytorch/utils/stochastic.py +74 -0
- bernn/dl/train/pytorch/utils/utils.py +793 -0
- bernn/dl/train/train_ae.py +943 -0
- bernn/dl/train/train_ae_classifier.py +1346 -0
- bernn/dl/train/train_ae_classifier_holdout.py +853 -0
- bernn/dl/train/train_ae_classifier_holdout_fixed_hparams.py +773 -0
- bernn/dl/train/train_ae_classifier_holdout_less_hparams.py +826 -0
- bernn/dl/train/train_ae_then_classifier.py +1274 -0
- bernn/dl/train/train_ae_then_classifier_holdout.py +915 -0
- bernn/dl/train/train_aecnn_classifier_holdout.py +1471 -0
- bernn/dl/train/train_resnet_classifier.py +1122 -0
- bernn/dl/train/utils.py +524 -0
- bernn/ml/__init__.py +0 -0
- bernn/ml/import_data.py +394 -0
- bernn/ml/train/__init__.py +0 -0
- bernn/ml/train/params_gp.py +137 -0
- bernn/ml/train/sklearn_train3_gp2.py +470 -0
- bernn/ml/train/sklearn_train_nocv.py +567 -0
- bernn/utils/__init__.py +0 -0
- bernn/utils/batch_effect_removal.py +436 -0
- bernn/utils/data_getters.py +971 -0
- bernn/utils/metrics.py +13 -0
- bernn/utils/pool_metrics.py +203 -0
- bernn/utils/utils.py +524 -0
- bernn-0.1.0.dist-info/LICENCE +674 -0
- bernn-0.1.0.dist-info/METADATA +298 -0
- bernn-0.1.0.dist-info/RECORD +69 -0
- bernn-0.1.0.dist-info/WHEEL +5 -0
- bernn-0.1.0.dist-info/entry_points.txt +4 -0
- bernn-0.1.0.dist-info/top_level.txt +1 -0
bernn/__init__.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"""BERNN: Batch Effect Removal Neural Networks for Tandem Mass Spectrometry.
|
|
2
|
+
|
|
3
|
+
This package provides tools for removing batch effects from mass spectrometry data
|
|
4
|
+
using deep learning approaches.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
__version__ = "0.1.0"
|
|
8
|
+
__author__ = "Simon Pelletier"
|
|
9
|
+
__license__ = "MIT"
|
|
10
|
+
|
|
11
|
+
# Core training modules
|
|
12
|
+
from .dl.train import (
|
|
13
|
+
TrainAE,
|
|
14
|
+
TrainAEClassifierHoldout,
|
|
15
|
+
TrainAEThenClassifierHoldout,
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
# Model definitions
|
|
19
|
+
from .dl.models.pytorch import (
|
|
20
|
+
AutoEncoder2,
|
|
21
|
+
SHAPAutoEncoder2,
|
|
22
|
+
KANAutoencoder2,
|
|
23
|
+
SHAPKANAutoencoder2,
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
# KAN modules
|
|
27
|
+
from .dl.train.pytorch.ekan import KANLinear, KAN
|
|
28
|
+
|
|
29
|
+
__all__ = [
|
|
30
|
+
# Training
|
|
31
|
+
"TrainAE",
|
|
32
|
+
"TrainAEClassifierHoldout",
|
|
33
|
+
"TrainAEThenClassifierHoldout",
|
|
34
|
+
|
|
35
|
+
# Models
|
|
36
|
+
"AutoEncoder2",
|
|
37
|
+
"SHAPAutoEncoder2",
|
|
38
|
+
"KANAutoencoder2",
|
|
39
|
+
"SHAPKANAutoencoder2",
|
|
40
|
+
|
|
41
|
+
# KAN
|
|
42
|
+
"KANLinear",
|
|
43
|
+
"KAN"
|
|
44
|
+
]
|
bernn/dl/__init__.py
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"""Deep Learning modules for BERNN.
|
|
2
|
+
|
|
3
|
+
This subpackage contains the deep learning models and training code.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
# Model definitions
|
|
7
|
+
from .models.pytorch import (
|
|
8
|
+
AutoEncoder2,
|
|
9
|
+
SHAPAutoEncoder2,
|
|
10
|
+
KANAutoencoder2,
|
|
11
|
+
SHAPKANAutoencoder2,
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
# Training modules
|
|
15
|
+
from .train import (
|
|
16
|
+
TrainAE,
|
|
17
|
+
TrainAEClassifierHoldout,
|
|
18
|
+
TrainAEThenClassifierHoldout,
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
# KAN modules
|
|
22
|
+
from .train.pytorch.ekan import KANLinear, KAN
|
|
23
|
+
|
|
24
|
+
__all__ = [
|
|
25
|
+
# Models
|
|
26
|
+
"AutoEncoder2",
|
|
27
|
+
"SHAPAutoEncoder2",
|
|
28
|
+
"KANAutoencoder2",
|
|
29
|
+
"SHAPKANAutoencoder2",
|
|
30
|
+
|
|
31
|
+
# Training
|
|
32
|
+
"TrainAE",
|
|
33
|
+
"TrainAEClassifierHoldout",
|
|
34
|
+
"TrainAEThenClassifierHoldout",
|
|
35
|
+
|
|
36
|
+
# KAN
|
|
37
|
+
"KANLinear",
|
|
38
|
+
"KAN"
|
|
39
|
+
]
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"""PyTorch model definitions for BERNN."""
|
|
2
|
+
|
|
3
|
+
from .aedann import AutoEncoder2, SHAPAutoEncoder2
|
|
4
|
+
from .aeekandann import KANAutoencoder2, SHAPKANAutoencoder2
|
|
5
|
+
|
|
6
|
+
__all__ = [
|
|
7
|
+
"AutoEncoder2",
|
|
8
|
+
"SHAPAutoEncoder2",
|
|
9
|
+
"KANAutoencoder2",
|
|
10
|
+
"SHAPKANAutoencoder2",
|
|
11
|
+
]
|