Bayesian Graph Collaborative Filtering(BGCF) was proposed in 2020 by Sun J, Guo W, Zhang D et al. By naturally incorporating the
Bayesian Graph Collaborative Filtering(BGCF) was proposed in 2020 by Sun J, Guo W, Zhang D et al. By naturally incorporating the
@ -33,12 +35,14 @@ Specially, BGCF contains two main modules. The first is sampling, which produce
aggregate the neighbors sampling from nodes consisting of mean aggregator and attention aggregator.
aggregate the neighbors sampling from nodes consisting of mean aggregator and attention aggregator.
# [Dataset](#contents)
# [Dataset](#contents)
Note that you can run the scripts based on the dataset mentioned in original paper or widely used in relevant domain/network architecture. In the following sections, we will introduce how to run the scripts using the related dataset below.
Note that you can run the scripts based on the dataset mentioned in original paper or widely used in relevant domain/network architecture. In the following sections, we will introduce how to run the scripts using the related dataset below.
- Dataset size:
- Dataset size:
Statistics of dataset used are summarized as below:
Statistics of dataset used are summarized as below:
| | Amazon-Beauty |
| | Amazon-Beauty |
| ------------------ | -----------------------:|
| ------------------ | ----------------------|
| Task | Recommendation |
| Task | Recommendation |
| # User | 7068 (1 graph) |
| # User | 7068 (1 graph) |
| # Item | 3570 |
| # Item | 3570 |
@ -49,20 +53,22 @@ Note that you can run the scripts based on the dataset mentioned in original pap
- Data Preparation
- Data Preparation
- Place the dataset to any path you want, the folder should include files as follows(we use Amazon-Beauty dataset as an example)"
- Place the dataset to any path you want, the folder should include files as follows(we use Amazon-Beauty dataset as an example)"
```
```python
.
.
└─data
└─data
├─ratings_Beauty.csv
├─ratings_Beauty.csv
```
```
- Generate dataset in mindrecord format for Amazon-Beauty.
- Generate dataset in mindrecord format for Amazon-Beauty.
```builddoutcfg
```builddoutcfg
cd ./scripts
cd ./scripts
# SRC_PATH is the dataset file path you download.
# SRC_PATH is the dataset file path you download.
sh run_process_data_ascend.sh [SRC_PATH]
sh run_process_data_ascend.sh [SRC_PATH]
```
```
# [Features](#contents)
# [Features](#contents)
## Mixed Precision
## Mixed Precision
@ -71,7 +77,7 @@ To ultilize the strong computation power of Ascend chip, and accelerate the trai