x_g85_fn_dataset
收藏资源简介:
这是一个预处理过的数据集,用于构建X_G85机器学习模型。数据集包含了从不同来源收集的假新闻。数据集包含两个主要特征:'text'(文本)和'label'(标签),其中标签0表示假新闻,标签1表示真实新闻。数据集分为训练集、验证集和测试集,分别存储在fn_train.csv、fn_valid.csv和fn_test.csv文件中。此外,数据集的创建参考了Kaggle上的几个相关数据集。
This is a preprocessed dataset intended for constructing the X_G85 machine learning model. It comprises fake news sourced from various sources. The dataset includes two core features: 'text' and 'label', where label 0 denotes fake news and label 1 denotes real news. The dataset is split into training, validation, and test subsets, which are respectively stored in the files fn_train.csv, fn_valid.csv, and fn_test.csv. Furthermore, the creation of this dataset refers to several relevant datasets available on the Kaggle platform.
X_G85 Fake News Dataset
概述
- 许可证: MIT
- 语言: 英语
- 标签: NLP, ML, 数据集, 假新闻, 分类
- 美观名称: x_g85_fn_dataset
配置
- 配置名称: processed
- 数据文件:
- 训练集: fn_train.csv
- 测试集: fn_test.csv
- 验证集: fn_valid.csv
- 数据文件:
数据集信息
- 特征:
- 文本: 字符串
- 标签: 整数 (int32)
标签说明
- 0: 假新闻
- 1: 真实新闻
数据集使用
-
加载数据集: python from datasets import load_dataset dataset = load_dataset("x-g85/x_g85_fn_dataset", streaming=True)
-
转换为Pandas DataFrame: python import pandas as pd train = pd.DataFrame(dataset["train"]) valid = pd.DataFrame(dataset["valid"]) test = pd.DataFrame(dataset["test"])
-
提取特征和标签: python X_train = train["text"] y_train = train["label"] X_valid = valid["text"] y_valid = valid["label"] X_test = test["text"] y_test = test["label"]
数据来源
- Kaggle:
- Fake news detection dataset english
- Liar Preprocessed
- Stocknews




