Sha256: d0a7bc756dedc527c85abb14e119312db37d7b479c4e2242a0f3cce97e638c51
Contents?: true
Size: 514 Bytes
Versions: 2
Compression:
Stored size: 514 Bytes
Contents
module TensorFlow module Keras module Datasets module MNIST def self.load_data(path: "mnist.npz") file = Utils.get_file( path, "https://storage.googleapis.com/tensorflow/tf-keras-datasets/mnist.npz", file_hash: "731c5ac602752760c8e48fbffcf8c3b850d9dc2a2aedcf2cc48468fc17b673d1" ) data = Npy.load_npz(file) [[data["x_train"], data["y_train"]], [data["x_test"], data["y_test"]]] end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tensorflow-0.2.0 | lib/tensorflow/keras/datasets/mnist.rb |
tensorflow-0.1.2 | lib/tensorflow/keras/datasets/mnist.rb |