Deep Graph Matching Consensus 项目使用教程

Deep Graph Matching Consensus 项目使用教程

deep-graph-matching-consensus项目地址:https://gitcode.com/gh_mirrors/de/deep-graph-matching-consensus

1. 项目的目录结构及介绍

Deep Graph Matching Consensus 项目的目录结构如下:

deep-graph-matching-consensus/
├── dgmcdgmc/
├── docs/
├── examples/
├── figures/
├── test/
├── .coveragerc
├── .gitignore
├── .style.yapf
├── .travis.yml
├── LICENSE
├── MANIFEST.in
├── README.md
├── readthedocs.yml
├── setup.cfg
├── setup.py

目录介绍:

  • dgmcdgmc/: 包含项目的主要代码文件。
  • docs/: 包含项目的文档文件。
  • examples/: 包含示例代码和数据集。
  • figures/: 包含项目中使用的图表和图片。
  • test/: 包含测试代码。
  • .coveragerc: 配置代码覆盖率测试的文件。
  • .gitignore: 配置 Git 忽略的文件和目录。
  • .style.yapf: 配置代码格式化的规则。
  • .travis.yml: 配置 Travis CI 的文件。
  • LICENSE: 项目的许可证文件。
  • MANIFEST.in: 配置打包时包含的文件。
  • README.md: 项目的介绍和使用说明。
  • readthedocs.yml: 配置 Read the Docs 的文件。
  • setup.cfg: 配置安装的文件。
  • setup.py: 项目的安装脚本。

2. 项目的启动文件介绍

项目的启动文件主要是 setup.py,它负责项目的安装和配置。以下是 setup.py 的基本内容:

from setuptools import setup, find_packages

setup(
    name='deep-graph-matching-consensus',
    version='0.1.0',
    description='Deep Graph Matching Consensus',
    author='Matthias Fey, Jan E Lenssen, Christopher Morris, Jonathan Masci, Nils M Kriege',
    author_email='your-email@example.com',
    url='https://github.com/rusty1s/deep-graph-matching-consensus',
    packages=find_packages(),
    install_requires=[
        'PyTorch>=1.2.0',
        'PyTorch Geometric>=1.5.0',
        'KeOps>=1.1.0'
    ],
    classifiers=[
        'Programming Language :: Python :: 3',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
    ],
)

启动文件介绍:

  • setup.py: 该文件用于安装项目,定义了项目的名称、版本、描述、作者、依赖包等信息。

3. 项目的配置文件介绍

项目的配置文件主要包括 setup.cfg.coveragerc

setup.cfg 文件介绍:

setup.cfg 文件用于配置安装过程中的各种选项,例如测试命令、代码格式化等。以下是 setup.cfg 的基本内容:

[metadata]
name = deep-graph-matching-consensus
version = 0.1.0
description = Deep Graph Matching Consensus
author = Matthias Fey, Jan E Lenssen, Christopher Morris, Jonathan Masci, Nils M Kriege
author_email = your-email@example.com
url = https://github.com/rusty1s/deep-graph-matching-consensus

[options]
packages = find:
install_requires =
    PyTorch>=1.2.0
    PyTorch Geometric>=1.5.0
    KeOps>=1.1.0

[options.packages.find]
where = .

[tool:pytest]
addopts = --cov=deep-graph-matching-consensus --cov-report=term-missing
testpaths = test

[flake8]
ignore = E203, E266, E501, W503
max-line-length = 88
select = B,C,E,F,W,T4,B9

.coveragerc 文件介绍:

.coveragerc 文件用于配置代码覆盖率测试的选项。以下是 .coveragerc 的基本内容

deep-graph-matching-consensus项目地址:https://gitcode.com/gh_mirrors/de/deep-graph-matching-consensus

  • 5
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

柯茵沙

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值