examples/cifar10_example.rb in ruby-dnn-0.5.9 vs examples/cifar10_example.rb in ruby-dnn-0.5.10

- old
+ new

@@ -1,20 +1,19 @@ require "dnn" require "dnn/lib/cifar10" #require "numo/linalg/autoloader" -include Numo include DNN::Layers include DNN::Activations include DNN::Optimizers Model = DNN::Model CIFAR10 = DNN::CIFAR10 x_train, y_train = CIFAR10.load_train x_test, y_test = CIFAR10.load_test -x_train = SFloat.cast(x_train) -x_test = SFloat.cast(x_test) +x_train = Numo::SFloat.cast(x_train) +x_test = Numo::SFloat.cast(x_test) x_train /= 255 x_test /= 255 y_train = DNN::Util.to_categorical(y_train, 10)