File size: 1,721 Bytes
24c0e0f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c2a4e7c
 
 
 
 
 
 
1aaf2a9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24c0e0f
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
license: mit
language:
- en
tags:
- nlp
- ml
- dataset
- fake-news
- classification
pretty_name: x_g85_fn_dataset
configs:
- config_name: processed
  data_files:
  - split: train
    path: fn_train.csv
  - split: test
    path: fn_test.csv
  - split: valid
    path: fn_valid.csv 
dataset_info:
  features:
    - name: text
      dtype: string
    - name: label
      dtype: int32
---


# X_G85 Fake News Dataset


It is a preprocessed dataset that is used to build X_G85 ML Models. The collection of fake news that are collect from the following datasets

```
Labels

0: Fake News
1: Real News
```

## How to stream dataset & use as pandas dataframe

By streaming the dataset, it won't download on your host computer. Read more here [hugging face streaming dataset](https://huggingface.co/docs/datasets/stream).

```py
import pandas as pd
from datasets import load_dataset
```

> Note: The following operation may take some time depending on the size of the dataset.

```py
dataset = load_dataset("x-g85/x_g85_fn_dataset", streaming=True)

train = pd.DataFrame(dataset["train"])
valid = pd.DataFrame(dataset["valid"])
test = pd.DataFrame(dataset["test"])
```

```py
X_train = train["text"]
y_train = train["label"]

X_valid = valid["text"]
y_vaild = valid["label"]

X_test = test["text"]
y_test = test["label"]
```

## Credit

We have used the following datasets to create our own datasets and train models.

- [Kaggle: Fake news detection dataset english](https://www.kaggle.com/datasets/sadikaljarif/fake-news-detection-dataset-english)
- [Kaggle: Liar Preprocessed](https://www.kaggle.com/datasets/khandalaryan/liar-preprocessed-dataset)
- [Kaggle: Stocknews](https://www.kaggle.com/datasets/aaron7sun/stocknews)