mnist-ready 1.0.2 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mnist_dataset.rb +7 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b2b0059fb779cef3b208d6b061f44cf0276050bf2ab03c7ba35d26433bdb119
|
4
|
+
data.tar.gz: 964e0569bd60637da0c376d054358a9ed70512942f238231050533a1028dab40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf6e5fda8c12fb6dac08c923db72c32b3948bfeb432c03310f88dd711a54d85b847a4c124b5d1787f98f115ff7186601b0c2472cd37c8a5fdbca3e1fc8ae8bab
|
7
|
+
data.tar.gz: 3622880f3bafe45b3b621221ebfa9c3f02459c9a76551898c38efdef3087cb1cc74b411bf0889e76b3f4081c01a95d2c714c73ebf52ea5eac1c96128fbf57904
|
data/lib/mnist_dataset.rb
CHANGED
@@ -4,7 +4,7 @@ require 'json'
|
|
4
4
|
|
5
5
|
class MnistDataset
|
6
6
|
|
7
|
-
@@VERSION = "1.
|
7
|
+
@@VERSION = "1.1.1"
|
8
8
|
@@YEAR = "2023"
|
9
9
|
|
10
10
|
@instance_mutex = Mutex.new
|
@@ -49,6 +49,11 @@ class MnistDataset
|
|
49
49
|
@instance
|
50
50
|
end
|
51
51
|
|
52
|
+
# very important to override this otherwise inspect will go crazy trying to inspect 70000 elements
|
53
|
+
def inspect
|
54
|
+
to_s
|
55
|
+
end
|
56
|
+
|
52
57
|
def info
|
53
58
|
|
54
59
|
s = "MNIST-READY #{@@VERSION} (#{@@YEAR})\n"
|
@@ -103,4 +108,4 @@ class MnistDataset
|
|
103
108
|
count
|
104
109
|
end
|
105
110
|
|
106
|
-
end
|
111
|
+
end
|