ruby-dnn 1.2.2 → 1.2.3
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/.gitignore +0 -0
- data/.travis.yml +0 -0
- data/CODE_OF_CONDUCT.md +0 -0
- data/Gemfile +0 -0
- data/LICENSE.txt +0 -0
- data/README.md +0 -0
- data/Rakefile +5 -0
- data/examples/api-examples/early_stopping_example.rb +0 -0
- data/examples/api-examples/initializer_example.rb +0 -0
- data/examples/api-examples/regularizer_example.rb +0 -0
- data/examples/api-examples/save_example.rb +0 -0
- data/examples/cifar100_example.rb +0 -0
- data/examples/cifar10_example.rb +0 -0
- data/examples/dcgan/dcgan.rb +0 -0
- data/examples/dcgan/imgen.rb +0 -0
- data/examples/dcgan/train.rb +0 -0
- data/examples/iris_example.rb +0 -0
- data/examples/judge-number/README.md +0 -0
- data/examples/judge-number/capture.PNG +0 -0
- data/examples/judge-number/convnet8.rb +0 -0
- data/examples/judge-number/make_weights.rb +0 -0
- data/examples/judge-number/mnist_predict.rb +0 -0
- data/examples/judge-number/mnist_train.rb +0 -0
- data/examples/judge-number/public/httpRequest.js +0 -0
- data/examples/judge-number/public/judgeNumber.js +0 -0
- data/examples/judge-number/server.rb +0 -0
- data/examples/judge-number/trained_mnist_params.marshal +0 -0
- data/examples/judge-number/views/index.erb +0 -0
- data/examples/mnist_conv2d_example.rb +0 -0
- data/examples/mnist_define_by_run.rb +0 -0
- data/examples/mnist_example.rb +0 -0
- data/examples/mnist_gpu.rb +0 -0
- data/examples/mnist_lstm_example.rb +0 -0
- data/examples/pix2pix/dcgan.rb +0 -0
- data/examples/pix2pix/imgen.rb +0 -0
- data/examples/pix2pix/train.rb +0 -0
- data/examples/vae.rb +0 -0
- data/examples/xor_example.rb +0 -0
- data/ext/rb_stb_image/extconf.rb +0 -0
- data/ext/rb_stb_image/rb_stb_image.c +0 -0
- data/img/cart-pole.gif +0 -0
- data/img/cycle-gan.PNG +0 -0
- data/img/facade-pix2pix.png +0 -0
- data/lib/dnn/core/callbacks.rb +0 -0
- data/lib/dnn/core/error.rb +0 -0
- data/lib/dnn/core/global.rb +0 -0
- data/lib/dnn/core/initializers.rb +0 -0
- data/lib/dnn/core/iterator.rb +0 -0
- data/lib/dnn/core/layers/activations.rb +0 -0
- data/lib/dnn/core/layers/basic_layers.rb +2 -2
- data/lib/dnn/core/layers/cnn_layers.rb +0 -0
- data/lib/dnn/core/layers/embedding.rb +0 -0
- data/lib/dnn/core/layers/math_layers.rb +0 -0
- data/lib/dnn/core/layers/merge_layers.rb +2 -2
- data/lib/dnn/core/layers/normalizations.rb +0 -0
- data/lib/dnn/core/layers/rnn_layers.rb +0 -0
- data/lib/dnn/core/layers/split_layers.rb +0 -0
- data/lib/dnn/core/link.rb +0 -0
- data/lib/dnn/core/losses.rb +2 -2
- data/lib/dnn/core/models.rb +0 -0
- data/lib/dnn/core/monkey_patch.rb +0 -0
- data/lib/dnn/core/optimizers.rb +0 -0
- data/lib/dnn/core/param.rb +0 -0
- data/lib/dnn/core/regularizers.rb +0 -0
- data/lib/dnn/core/savers.rb +0 -0
- data/lib/dnn/core/tensor.rb +0 -0
- data/lib/dnn/core/utils.rb +0 -0
- data/lib/dnn/datasets/cifar10.rb +0 -0
- data/lib/dnn/datasets/cifar100.rb +0 -0
- data/lib/dnn/datasets/downloader.rb +12 -3
- data/lib/dnn/datasets/fashion-mnist.rb +0 -0
- data/lib/dnn/datasets/iris.rb +0 -0
- data/lib/dnn/datasets/mnist.rb +0 -0
- data/lib/dnn/datasets/stl-10.rb +0 -0
- data/lib/dnn/image.rb +1 -1
- data/lib/dnn/keras-model-convertor.rb +0 -0
- data/lib/dnn/numo2numpy.rb +0 -0
- data/lib/dnn/version.rb +1 -1
- data/lib/dnn.rb +0 -0
- data/ruby-dnn.gemspec +1 -0
- data/third_party/stb_image.h +0 -0
- data/third_party/stb_image_resize.h +0 -0
- data/third_party/stb_image_write.h +0 -0
- metadata +20 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0155251f4bb07fe6ed61f27102f8ef9b251fcc2cfba72fafaab7819072c28e69
|
|
4
|
+
data.tar.gz: 8fce285715f424cf5d78f38c81b0d653e281cd21ebaa04702e1cd38ce2de6c2b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b1ec453443c1713323263b0d6b9086eca1978bd6ed9102956cc4ad6098b2698248eedced6851fbf0d2d49223277eff369532e96a53c6df8351b016fdc22830f4
|
|
7
|
+
data.tar.gz: 8f41bf55e995854dfa96159197a40bf1f0e50f5cbf99eee97d835986e4aeef366ddd777ddbbe82514de22a048ca34600107bb59cbc0a2f58c7e3d5f8f1d06dd4
|
data/.gitignore
CHANGED
|
File without changes
|
data/.travis.yml
CHANGED
|
File without changes
|
data/CODE_OF_CONDUCT.md
CHANGED
|
File without changes
|
data/Gemfile
CHANGED
|
File without changes
|
data/LICENSE.txt
CHANGED
|
File without changes
|
data/README.md
CHANGED
|
File without changes
|
data/Rakefile
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
require "bundler/gem_tasks"
|
|
2
2
|
require "rake/testtask"
|
|
3
|
+
require "rake/extensiontask"
|
|
3
4
|
require "yard"
|
|
4
5
|
require "yard/rake/yardoc_task"
|
|
5
6
|
|
|
@@ -10,6 +11,10 @@ Rake::TestTask.new(:test) do |t|
|
|
|
10
11
|
t.test_files = FileList["test/*_test.rb", "test/layers_test/*_test.rb"]
|
|
11
12
|
end
|
|
12
13
|
|
|
14
|
+
Rake::ExtensionTask.new "rb_stb_image" do |ext|
|
|
15
|
+
ext.lib_dir = "lib/rb_stb_image"
|
|
16
|
+
end
|
|
17
|
+
|
|
13
18
|
task :build_rb_stb_image do
|
|
14
19
|
sh "cd ext/rb_stb_image; ruby extconf.rb; make"
|
|
15
20
|
end
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/examples/cifar10_example.rb
CHANGED
|
File without changes
|
data/examples/dcgan/dcgan.rb
CHANGED
|
File without changes
|
data/examples/dcgan/imgen.rb
CHANGED
|
File without changes
|
data/examples/dcgan/train.rb
CHANGED
|
File without changes
|
data/examples/iris_example.rb
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/examples/mnist_example.rb
CHANGED
|
File without changes
|
data/examples/mnist_gpu.rb
CHANGED
|
File without changes
|
|
File without changes
|
data/examples/pix2pix/dcgan.rb
CHANGED
|
File without changes
|
data/examples/pix2pix/imgen.rb
CHANGED
|
File without changes
|
data/examples/pix2pix/train.rb
CHANGED
|
File without changes
|
data/examples/vae.rb
CHANGED
|
File without changes
|
data/examples/xor_example.rb
CHANGED
|
File without changes
|
data/ext/rb_stb_image/extconf.rb
CHANGED
|
File without changes
|
|
File without changes
|
data/img/cart-pole.gif
CHANGED
|
File without changes
|
data/img/cycle-gan.PNG
CHANGED
|
File without changes
|
data/img/facade-pix2pix.png
CHANGED
|
File without changes
|
data/lib/dnn/core/callbacks.rb
CHANGED
|
File without changes
|
data/lib/dnn/core/error.rb
CHANGED
|
File without changes
|
data/lib/dnn/core/global.rb
CHANGED
|
File without changes
|
|
File without changes
|
data/lib/dnn/core/iterator.rb
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/lib/dnn/core/link.rb
CHANGED
|
File without changes
|
data/lib/dnn/core/losses.rb
CHANGED
data/lib/dnn/core/models.rb
CHANGED
|
File without changes
|
|
File without changes
|
data/lib/dnn/core/optimizers.rb
CHANGED
|
File without changes
|
data/lib/dnn/core/param.rb
CHANGED
|
File without changes
|
|
File without changes
|
data/lib/dnn/core/savers.rb
CHANGED
|
File without changes
|
data/lib/dnn/core/tensor.rb
CHANGED
|
File without changes
|
data/lib/dnn/core/utils.rb
CHANGED
|
File without changes
|
data/lib/dnn/datasets/cifar10.rb
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require "net/
|
|
1
|
+
require "net/https"
|
|
2
2
|
|
|
3
3
|
module DNN
|
|
4
4
|
DOWNLOADS_PATH = ENV["RUBY_DNN_DOWNLOADS_PATH"] || __dir__
|
|
@@ -18,13 +18,22 @@ module DNN
|
|
|
18
18
|
|
|
19
19
|
def initialize(url)
|
|
20
20
|
@url = url
|
|
21
|
-
*, @fqdn, @path = *url.match(%r`https
|
|
21
|
+
*, @protocol, @fqdn, @path = *url.match(%r`(https?)://(.+?)(/.+)`)
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
def download(dir_path)
|
|
25
25
|
puts %`download "#{@url}"`
|
|
26
26
|
buf = ""
|
|
27
|
-
|
|
27
|
+
if @protocol == "http"
|
|
28
|
+
port = 80
|
|
29
|
+
elsif @protocol == "https"
|
|
30
|
+
port = 443
|
|
31
|
+
else
|
|
32
|
+
raise "Protocol(#{@protocol}) is not supported."
|
|
33
|
+
end
|
|
34
|
+
http = Net::HTTP.new(@fqdn, port)
|
|
35
|
+
http.use_ssl = true if @protocol == "https"
|
|
36
|
+
http.start do |http|
|
|
28
37
|
content_length = http.head(@path).content_length
|
|
29
38
|
http.get(@path) do |body_segment|
|
|
30
39
|
buf << body_segment
|
|
File without changes
|
data/lib/dnn/datasets/iris.rb
CHANGED
|
File without changes
|
data/lib/dnn/datasets/mnist.rb
CHANGED
|
File without changes
|
data/lib/dnn/datasets/stl-10.rb
CHANGED
|
File without changes
|
data/lib/dnn/image.rb
CHANGED
|
File without changes
|
data/lib/dnn/numo2numpy.rb
CHANGED
|
File without changes
|
data/lib/dnn/version.rb
CHANGED
data/lib/dnn.rb
CHANGED
|
File without changes
|
data/ruby-dnn.gemspec
CHANGED
|
@@ -17,6 +17,7 @@ Gem::Specification.new do |spec|
|
|
|
17
17
|
|
|
18
18
|
spec.add_dependency "numo-narray"
|
|
19
19
|
spec.add_dependency "archive-tar-minitar"
|
|
20
|
+
spec.add_development_dependency "rake-compiler"
|
|
20
21
|
|
|
21
22
|
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
|
22
23
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
data/third_party/stb_image.h
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-dnn
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- unagiootoro
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-03-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: numo-narray
|
|
@@ -38,6 +38,20 @@ dependencies:
|
|
|
38
38
|
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: rake-compiler
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ">="
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
41
55
|
- !ruby/object:Gem::Dependency
|
|
42
56
|
name: bundler
|
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -195,7 +209,7 @@ homepage: https://github.com/unagiootoro/ruby-dnn.git
|
|
|
195
209
|
licenses:
|
|
196
210
|
- MIT
|
|
197
211
|
metadata: {}
|
|
198
|
-
post_install_message:
|
|
212
|
+
post_install_message:
|
|
199
213
|
rdoc_options: []
|
|
200
214
|
require_paths:
|
|
201
215
|
- lib
|
|
@@ -210,8 +224,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
210
224
|
- !ruby/object:Gem::Version
|
|
211
225
|
version: '0'
|
|
212
226
|
requirements: []
|
|
213
|
-
rubygems_version: 3.
|
|
214
|
-
signing_key:
|
|
227
|
+
rubygems_version: 3.2.33
|
|
228
|
+
signing_key:
|
|
215
229
|
specification_version: 4
|
|
216
230
|
summary: ruby deep learning library.
|
|
217
231
|
test_files: []
|