我在Keras中使用路透社的数据集。
我想知道这46个主题的名字。
如何在Keras中显示路透社数据集的主题?
https://keras.io/datasets/#reuters-newswire-topics-classification
发布于 2019-01-30 15:42:24
根据原始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。
https://stackoverflow.com/questions/45138290
复制相似问题