Module: TensorFlow::Keras::Datasets::Reuters
- Defined in:
- lib/tensorflow/keras/datasets/reuters.rb
Class Method Summary collapse
Class Method Details
.get_word_index(path: "reuters_word_index.json") ⇒ Object
17 18 19 20 21 22 23 24 |
# 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 |