red-datasets-gdk-pixbuf 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8fa73f042b76ddce2e093372f66843ded75b103a63242085254978480d1b9d1f
4
- data.tar.gz: cd66b11a5efaa5880e064b26b85e19e90ab526a4df1b6cee12bb7a65a3ed257a
3
+ metadata.gz: ef9a68ac5c7d6a9d94c8f815af6e1de5352192ee5be181490c52b1ece3a6933d
4
+ data.tar.gz: 04fe0a06b5aaa0178fe0b02c4b39fe5f576081f1d2abc6c0cd6ad146a60a7332
5
5
  SHA512:
6
- metadata.gz: d8282c97ab11450e5f2415ed200fb5bb8402df182f7e73769eeb37d28ad176c0db583a29d2a9216249a04e3771c3b2cebd79b675d58ccfe24366b501e6efe2af
7
- data.tar.gz: a1f6d43b8769c5571106ff56bee8ee53b3fcb95178e5682b33b1a65a5c6ab65ff2a7c93264826ba60993e44dd7e06decc24f62253fac4bfc86415bee1f2ec89a
6
+ metadata.gz: 990c74f3086a92ea6c745f2eb6fe7fc0b93da5898c51caab38db5c53c889482c1a91a9d1fccdca2b692682dd396ce2c671ffc37fd8f3569365dcbaba44c0860e
7
+ data.tar.gz: e572abe0fd9d15cf4bfbc603c5aae8bb90d28934b53e7f24b8d53cbf5400e329e0430b4c143197cf7d59291eb8b01333d5eea76edeb2b2d8f7eedee8d0212bd1
@@ -1,5 +1,11 @@
1
1
  # News
2
2
 
3
+ ## 0.0.3 - 2018-12-01
4
+
5
+ ### Fixes
6
+
7
+ * Fixed a wrong conversion bug for MNIST and Fashion-MNIST dataset.
8
+
3
9
  ## 0.0.2 - 2018-11-30
4
10
 
5
11
  ### Improvements
@@ -4,7 +4,7 @@ module DatasetsGdkPixbuf
4
4
  module MNISTPixbufable
5
5
  def to_gdk_pixbuf
6
6
  rgb_data = pixels.map{|p| [(p - 255).abs] * 3}.flatten
7
- GdkPixbuf::Pixbuf.new(data: rgb_data.pack("C"),
7
+ GdkPixbuf::Pixbuf.new(data: rgb_data.pack("C*"),
8
8
  width: 28,
9
9
  height: 28)
10
10
  end
@@ -1,3 +1,3 @@
1
1
  module DatasetsGdkPixbuf
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: red-datasets-gdk-pixbuf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou