lorentz-boost网络(lbn)的tensorflow实现。https://arxiv.org/abs/1812.09722。
lbn的Python项目详细描述
洛伦兹boost网络(lbn)
洛伦兹boost网络的张量流实现。
原始存储库:git.rwth-aachen.de/3pia/lbn
使用示例
fromlbnimportLBN# initialize the LBN, set 10 combinations and pairwise boostinglbn=LBN(10,boost_mode=LBN.PAIRS)# create a feature tensor based on input four-vectorsfeatures=lbn(four_vectors)# use the features as input for a subsequent, application-specific network...
安装和依赖项
通过pip:
pip install lbn
numpy和tensorflow是唯一的依赖项。
测试
应该为python 2和3运行测试。以下命令假定您是lbn respository的根目录:
python -m unittest test# or via docker, python 2 docker run --rm -v `pwd`:/root/lbn -w /root/lbn tensorflow/tensorflow:latest python -m unittest test# or via docker, python 3 docker run --rm -v `pwd`:/root/lbn -w /root/lbn tensorflow/tensorflow:latest-py3 python -m unittest test
贡献
如果您愿意贡献,我们很高兴收到请求。只需确保添加新的测试用例并运行测试。另外,请使用与我们的.flake8
配置兼容的编码样式。
发展
- 原始源位于RWTH GitLab
- 在RWTH GitLab Issues上报告问题、问题和功能请求