# DFCN
**Repository Path**: lolikiller666/DFCN
## Basic Information
- **Project Name**: DFCN
- **Description**: contrastive learning-based methods
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2026-05-31
- **Last Updated**: 2026-05-31
## Categories & Tags
**Categories**: Uncategorized
**Tags**: learning-based-methods
## README
[python-img]: https://img.shields.io/github/languages/top/WxTu/DFCN?color=lightgrey
[stars-img]: https://img.shields.io/github/stars/WxTu/DFCN?color=yellow
[stars-url]: https://github.com/WxTu/DFCN/stargazers
[fork-img]: https://img.shields.io/github/forks/WxTu/DFCN?color=lightblue&label=fork
[fork-url]: https://github.com/WxTu/DFCN/network/members
[visitors-img]: https://visitor-badge.glitch.me/badge?page_id=WxTu/DFCN
[adgc-url]: https://github.com/WxTu/DFCN
## Paper
[![Made with Python][python-img]][adgc-url]
[![GitHub stars][stars-img]][stars-url]
[![GitHub forks][fork-img]][fork-url]
[![visitors][visitors-img]][adgc-url]
Source code for the paper "Deep Fusion Clustering Network"
W. Tu, S. Zhou, X. Liu, X. Guo, Z. Cai, E. Zhu, and J. Cheng.
Accepted by AAAI2021. [[Paper]](https://arxiv.org/pdf/2012.09600.pdf) [[Poster]](./figure/DFCN_Poster.pdf)
## Installation
Clone this repo.
```bash
git clone https://github.com/WxTu/DFCN.git
```
* Windows 10 or Linux 18.04
* Python 3.7.5
* [Pytorch (1.2.0+)](https://pytorch.org/)
* Numpy 1.18.0
* Sklearn 0.21.3
* Torchvision 0.3.0
* Matplotlib 3.2.1
## Preparation
We adopt six datasets in total, including three graph datasets (ACM, DBLP, and CITE) and three non-graph datasets (USPS, HHAR, and REUT). To train a model on these datasets, please download them from [Baidu Cloud](https://pan.baidu.com/s/1ykIPGLXLMtMqtgpXOq3_sQ) (access code: 4622), and the demo files for model pre-training are provided in [Baidu Cloud](https://pan.baidu.com/s/1DgOUEQe7NpCqlO3gE27P6g) (access code: 4622).
## Code Structure & Usage
Here we provide an implementation of Deep Fusion Clustering Network (DFCN) in PyTorch, along with an execution example on the DBLP dataset (due to file size limit). The repository is organised as follows:
- `load_data.py`: processes the dataset before passing to the network.
- `DFCN.py`: defines the architecture of the whole network.
- `IGAE.py`: defines the improved graph autoencoder.
- `AE.py`: defines the autoencoder.
- `opt.py`: defines some hyper-parameters.
- `utils.py`: defines the lr-policy, metrics, and others.
- `train.py`: the entry point for training and testing.
Finally, `main.py` puts all of the above together and may be used to execute a full training run on DBLP.
## Visualization
