如何在 Keras 中显示路透社数据集的主题?
How to show topics of reuters dataset in Keras?
我在 Keras 中使用路透社数据集。
而且我想知道这46个题目的名字。
如何在 Keras 中显示路透社数据集的主题?
https://keras.io/datasets/#reuters-newswire-topics-classification
根据原始 Reuters Dataset 主题标签与 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']
要了解提取上述映射的方法,请按照this thread comment。
我在 Keras 中使用路透社数据集。
而且我想知道这46个题目的名字。
如何在 Keras 中显示路透社数据集的主题?
https://keras.io/datasets/#reuters-newswire-topics-classification
根据原始 Reuters Dataset 主题标签与 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']
要了解提取上述映射的方法,请按照this thread comment。