lib/dnn/lib/mnist.rb in ruby-dnn-0.4.3 vs lib/dnn/lib/mnist.rb in ruby-dnn-0.4.4

- old
+ new

@@ -1,9 +1,8 @@ require "open-uri" require "zlib" require "dnn/core/error" -require "dnn/ext/dataset_loader/dataset_loader" module DNN module MNIST class DNN_MNIST_LoadError < DNN_Error; end @@ -11,12 +10,9 @@ URL_TRAIN_IMAGES = "http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz" URL_TRAIN_LABELS = "http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz" URL_TEST_IMAGES = "http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz" URL_TEST_LABELS = "http://yann.lecun.com/exdb/mnist/t10k-labels-idx1-ubyte.gz" - - private_class_method :_mnist_load_images - private_class_method :_mnist_load_labels def self.downloads return if Dir.exist?(mnist_dir) Dir.mkdir(mnist_dir) puts "Now downloading..." \ No newline at end of file