module TensorFlow::Keras::Datasets::Reuters
Public Class Methods
get_word_index(path: "reuters_word_index.json")
click to toggle source
xs = data["x"] labels = data["y"]
end
# File lib/tensorflow/keras/datasets/reuters.rb, line 17 def self.get_word_index(path: "reuters_word_index.json") file = Utils.get_file( path, "https://storage.googleapis.com/tensorflow/tf-keras-datasets/reuters_word_index.json", file_hash: "4d44cc38712099c9e383dc6e5f11a921" ) JSON.parse(File.read(file)) end