How to show topics of reuters dataset in Keras?

被刻印的时光 ゝ 提交于 2019-12-04 18:55:10

问题


I use reuters dataset in Keras.

And I want to know the 46 topics' names.

How can I show topics of reuters dataset in Keras?

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


回答1:


Associated mapping of topic labels as per original Reuters Dataset with the topic indexes in Keras version is:

['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.



来源:https://stackoverflow.com/questions/45138290/how-to-show-topics-of-reuters-dataset-in-keras

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!