You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Attack and Defense Papers on Graph Data](https://github.com/safe-graph/graph-adversarial-learning-literature)
@@ -81,18 +82,8 @@ cd UGFraud
81
82
python setup.py install
82
83
```
83
84
84
-
### Requirements
85
-
```bash
86
-
* python 3.6, 3.7
87
-
* networkx >=1.10
88
-
* numpy>=1.16.4
89
-
* scipy>=1.2.0
90
-
* sklearn>=0.20.0
91
-
```
92
-
93
85
### Dataset
94
-
#### Yelp dataset
95
-
The demo data is not the intact data (`rating` and `date` information are missing). The rating information is only used in ZooBP demo. If you need the intact date to play demo. Please download intact data from [Yelp Spam Review Dataset](http://odds.cs.stonybrook.edu/yelpchi-dataset/). The `.gz` file includes:
86
+
The demo data is not the intact data (`rating` and `date` information are missing). The rating information is only used in ZooBP demo. If you need the intact date to play demo, please email [[email protected]](mailto:[email protected]) to download the intact data from [Yelp Spam Review Dataset](http://odds.cs.stonybrook.edu/yelpchi-dataset/). The `metadata.gz` file in `/UGFraud/Yelp_Data/YelpChi` includes:
96
87
-`user_id`: 38063 number of users
97
88
-`product_id`: 201 number of products
98
89
-`rating`: from 1.0 (low) to 5.0 (high)
@@ -103,15 +94,15 @@ The demo data is not the intact data (`rating` and `date` information are missin
103
94
## User Guide
104
95
105
96
### Running the example code
106
-
You can find the implemented models in `Demo` directory. For example, you can run fBox using:
97
+
You can find the implemented models in `/UGFraud/Demo` directory. For example, you can run fBox using:
107
98
```bash
108
99
python eval_fBox.py
109
100
```
110
101
111
102
### Running on your datasets
112
-
Have a look at the `data_to_network_graph.py` to convert your own data into a graph ([networkx graph](https://networkx.github.io/documentation/stable/tutorial.html#creating-a-graph).
103
+
Have a look at the `/UGFraud/Demo/data_to_network_graph.py` to convert your own data into a graph ([networkx graph](https://networkx.github.io/documentation/stable/tutorial.html#creating-a-graph).
113
104
114
-
In order to use your own data, you have to provide below information at least:
105
+
In order to use your own data, you have to provide the following information at least:
115
106
* a dict of dict:
116
107
```
117
108
'user_id':{
@@ -126,7 +117,7 @@ You can use `dict_to networkx(graph_dict)` function from `/Utils/helper.py` file
126
117
For more detial, please see `data_to_network_graph.py`.
127
118
128
119
### The structure of code
129
-
The repository is organized as follows:
120
+
The `/UGFraud`repository is organized as follows:
130
121
-`Demo/` contains the implemented models and the corresponding example code;
131
122
-`Detector/` contains the basic models;
132
123
-`Yelp_Data/` contains the necessary dataset files;
@@ -155,12 +146,11 @@ The repository is organized as follows:
155
146
|**Fraudar**| Social Fraudster | Bipartite | Dense-block |
You are welcomed to contribute to this open-source toolbox. Currently, you can create issues or send email to [ytongdou@gmail.com](mailto:ytongdou@gmail.com) for enquiry.
156
+
You are welcomed to contribute to this open-source toolbox. Currently, you can create issues or send email to [bdscsafegraph@gmail.com](mailto:bdscsafegraph@gmail.com) for enquiry.
0 commit comments