如何在Keras中显示路透社数据集的主题? [英] How to show topics of reuters dataset in Keras?

查看:87
本文介绍了如何在Keras中显示路透社数据集的主题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Keras中使用路透社数据集.

I use reuters dataset in Keras.

我想知道46个主题的名称.

And I want to know the 46 topics' names.

如何在Keras中显示路透社数据集的主题?

How can I show topics of reuters dataset in Keras?

https://keras.io/datasets/#reuters-newswire-topics-分类

推荐答案

主题标签根据原始具有Keras版本主题索引的路透社数据集为:

['cocoa','grain','veg-oil','earn','acq','wheat','copper','housing','money-supply',
 'coffee','sugar','trade','reserves','ship','cotton','carcass','crude','nat-gas',
 'cpi','money-fx','interest','gnp','meal-feed','alum','oilseed','gold','tin',
 'strategic-metal','livestock','retail','ipi','iron-steel','rubber','heat','jobs',
 'lei','bop','zinc','orange','pet-chem','dlr','gas','silver','wpi','hog','lead']

要了解提取上述映射的方法,请遵循此主题评论.

To understand the approach of extracting the above mapping, please follow this thread comment.

这篇关于如何在Keras中显示路透社数据集的主题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆