近程序综合:程序综合任务的模型、工具和数据集
program-synthesis的Python项目详细描述
程序综合
近程序综合为程序综合任务提供了一组模型、工具和数据集。
这个存储库将使社区更容易比较和重用不同的程序合成算法 数据集。
先决条件
运行代码需要Python3(>;=3.5)。我们还建议使用 virtualenv对于独立的python环境和 pip用于包管理。注意,要创建python 3环境,您需要运行:
virtualenv .env --python=python3
source .env/bin/activate
代码还假设PyTorch已经安装。
安装
pip install program-synthesis
开发安装
对于开发安装,您需要克隆存储库:
git clone https://github.com/nearai/program_synthesis.git
cd program_synthesis
在可编辑模式下安装程序合成:
pip install -e .