A repository created for studying different aspects of Backward Compatible Embeddings DL architecture for machine learning tasks.
Problem formulation can be found in the original paper repository bc-emb.
torch_bce
contains several main modules:
containers
ListModelContainer
- container for used modelsWeightsContainer
- module for Backward Transformation storage,@deprecated(0.1.0)
interfaces
- main interfaces to inherit fromModelInterface
- interface for PyTorch backward compatible models to subclassSaveable
- save/load interfaceTrainerInterface
- interface for trainer
losses
- different useful losses.GraphSAGELoss
- loss for unsupervised embeddings learning on graphs as described in paper.AlignmentLoss
- loss for alignment of different embeddings that has its own state and should be optimized.BackwardTransformation
- backward transformation for embeddings.
models
intended
GraphSAGE
unintended
MLP
trainers
GSAlignmentTrainer
- for training of intended models in unified manner.
tests
- tests with help of unittestutils
- some useful utilities, such as:datasets
metrics
samplers
For now there is Dockerfile that enables to start all tests. Just execute ./build_test.sh
from
inside the directory.
To set up the framework, execute pip install -e .
from inside the directory. There is also requirements
file, however some dependencies (e.g., PyTorch Geometric and PyTorch Geometric Temporal must be installed manually,
as it is done in Dockerfile.