CooCoo 0.1.0

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.
Files changed (105) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +16 -0
  3. data/CooCoo.gemspec +47 -0
  4. data/Gemfile +4 -0
  5. data/Gemfile.lock +88 -0
  6. data/README.md +123 -0
  7. data/Rakefile +81 -0
  8. data/bin/cuda-dev-info +25 -0
  9. data/bin/cuda-free +28 -0
  10. data/bin/cuda-free-trend +7 -0
  11. data/bin/ffi-gen +267 -0
  12. data/bin/spec_runner_html.sh +42 -0
  13. data/bin/trainer +198 -0
  14. data/bin/trend-cost +13 -0
  15. data/examples/char-rnn.rb +405 -0
  16. data/examples/cifar/cifar.rb +94 -0
  17. data/examples/img-similarity.rb +201 -0
  18. data/examples/math_ops.rb +57 -0
  19. data/examples/mnist.rb +365 -0
  20. data/examples/mnist_classifier.rb +293 -0
  21. data/examples/mnist_dream.rb +214 -0
  22. data/examples/seeds.rb +268 -0
  23. data/examples/seeds_dataset.txt +210 -0
  24. data/examples/t10k-images-idx3-ubyte +0 -0
  25. data/examples/t10k-labels-idx1-ubyte +0 -0
  26. data/examples/train-images-idx3-ubyte +0 -0
  27. data/examples/train-labels-idx1-ubyte +0 -0
  28. data/ext/buffer/Rakefile +50 -0
  29. data/ext/buffer/buffer.pre.cu +727 -0
  30. data/ext/buffer/matrix.pre.cu +49 -0
  31. data/lib/CooCoo.rb +1 -0
  32. data/lib/coo-coo.rb +18 -0
  33. data/lib/coo-coo/activation_functions.rb +344 -0
  34. data/lib/coo-coo/consts.rb +5 -0
  35. data/lib/coo-coo/convolution.rb +298 -0
  36. data/lib/coo-coo/core_ext.rb +75 -0
  37. data/lib/coo-coo/cost_functions.rb +91 -0
  38. data/lib/coo-coo/cuda.rb +116 -0
  39. data/lib/coo-coo/cuda/device_buffer.rb +240 -0
  40. data/lib/coo-coo/cuda/device_buffer/ffi.rb +109 -0
  41. data/lib/coo-coo/cuda/error.rb +51 -0
  42. data/lib/coo-coo/cuda/host_buffer.rb +117 -0
  43. data/lib/coo-coo/cuda/runtime.rb +157 -0
  44. data/lib/coo-coo/cuda/vector.rb +315 -0
  45. data/lib/coo-coo/data_sources.rb +2 -0
  46. data/lib/coo-coo/data_sources/xournal.rb +25 -0
  47. data/lib/coo-coo/data_sources/xournal/bitmap_stream.rb +197 -0
  48. data/lib/coo-coo/data_sources/xournal/document.rb +377 -0
  49. data/lib/coo-coo/data_sources/xournal/loader.rb +144 -0
  50. data/lib/coo-coo/data_sources/xournal/renderer.rb +101 -0
  51. data/lib/coo-coo/data_sources/xournal/saver.rb +99 -0
  52. data/lib/coo-coo/data_sources/xournal/training_document.rb +78 -0
  53. data/lib/coo-coo/data_sources/xournal/training_document/constants.rb +15 -0
  54. data/lib/coo-coo/data_sources/xournal/training_document/document_maker.rb +89 -0
  55. data/lib/coo-coo/data_sources/xournal/training_document/document_reader.rb +105 -0
  56. data/lib/coo-coo/data_sources/xournal/training_document/example.rb +37 -0
  57. data/lib/coo-coo/data_sources/xournal/training_document/sets.rb +76 -0
  58. data/lib/coo-coo/debug.rb +8 -0
  59. data/lib/coo-coo/dot.rb +129 -0
  60. data/lib/coo-coo/drawing.rb +4 -0
  61. data/lib/coo-coo/drawing/cairo_canvas.rb +100 -0
  62. data/lib/coo-coo/drawing/canvas.rb +68 -0
  63. data/lib/coo-coo/drawing/chunky_canvas.rb +101 -0
  64. data/lib/coo-coo/drawing/sixel.rb +214 -0
  65. data/lib/coo-coo/enum.rb +17 -0
  66. data/lib/coo-coo/from_name.rb +58 -0
  67. data/lib/coo-coo/fully_connected_layer.rb +205 -0
  68. data/lib/coo-coo/generation_script.rb +38 -0
  69. data/lib/coo-coo/grapher.rb +140 -0
  70. data/lib/coo-coo/image.rb +286 -0
  71. data/lib/coo-coo/layer.rb +67 -0
  72. data/lib/coo-coo/layer_factory.rb +26 -0
  73. data/lib/coo-coo/linear_layer.rb +59 -0
  74. data/lib/coo-coo/math.rb +607 -0
  75. data/lib/coo-coo/math/abstract_vector.rb +121 -0
  76. data/lib/coo-coo/math/functions.rb +39 -0
  77. data/lib/coo-coo/math/interpolation.rb +7 -0
  78. data/lib/coo-coo/network.rb +264 -0
  79. data/lib/coo-coo/neuron.rb +112 -0
  80. data/lib/coo-coo/neuron_layer.rb +168 -0
  81. data/lib/coo-coo/option_parser.rb +18 -0
  82. data/lib/coo-coo/platform.rb +17 -0
  83. data/lib/coo-coo/progress_bar.rb +11 -0
  84. data/lib/coo-coo/recurrence/backend.rb +99 -0
  85. data/lib/coo-coo/recurrence/frontend.rb +101 -0
  86. data/lib/coo-coo/sequence.rb +187 -0
  87. data/lib/coo-coo/shell.rb +2 -0
  88. data/lib/coo-coo/temporal_network.rb +291 -0
  89. data/lib/coo-coo/trainer.rb +21 -0
  90. data/lib/coo-coo/trainer/base.rb +67 -0
  91. data/lib/coo-coo/trainer/batch.rb +82 -0
  92. data/lib/coo-coo/trainer/batch_stats.rb +27 -0
  93. data/lib/coo-coo/trainer/momentum_stochastic.rb +59 -0
  94. data/lib/coo-coo/trainer/stochastic.rb +47 -0
  95. data/lib/coo-coo/transformer.rb +272 -0
  96. data/lib/coo-coo/vector_layer.rb +194 -0
  97. data/lib/coo-coo/version.rb +3 -0
  98. data/lib/coo-coo/weight_deltas.rb +23 -0
  99. data/prototypes/convolution.rb +116 -0
  100. data/prototypes/linear_drop.rb +51 -0
  101. data/prototypes/recurrent_layers.rb +79 -0
  102. data/www/images/screamer.png +0 -0
  103. data/www/images/screamer.xcf +0 -0
  104. data/www/index.html +82 -0
  105. metadata +373 -0
@@ -0,0 +1,3 @@
1
+ module CooCoo
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,23 @@
1
+ module CooCoo
2
+ class WeightDeltas
3
+ attr_reader :bias_deltas
4
+ attr_reader :weight_deltas
5
+
6
+ def initialize(bias, weights)
7
+ @bias_deltas = bias
8
+ @weight_deltas = weights
9
+ end
10
+
11
+ [ :+, :-, :*, :/ ].each do |op|
12
+ define_method(op) do |other|
13
+ if other.kind_of?(self.class)
14
+ self.class.new(bias_deltas.send(op, other.bias_deltas), weight_deltas.send(op, other.weight_deltas))
15
+ elsif other.kind_of?(Numeric)
16
+ self.class.new(bias_deltas.send(op, other), weight_deltas.send(op, other))
17
+ else
18
+ raise TypeError.new("Invalid type #{other.class}")
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,116 @@
1
+ require('ostruct')
2
+ @options = OpenStruct.new
3
+ @options.activation_function = CooCoo::ActivationFunctions.from_name('Logistic')
4
+ @options.hidden_layers = 2
5
+ @options.data_width = nil
6
+ @options.data_height = nil
7
+ @options.convolutions = 1
8
+ @options.convolution_step_x = 3
9
+ @options.convolution_step_y = 3
10
+ @options.input_width = 3
11
+ @options.input_height = 3
12
+ @options.output_width = 2
13
+ @options.output_height = 2
14
+ @options.softmax = false
15
+
16
+ @opts = CooCoo::OptionParser.new do |o|
17
+ o.banner = "Convolution layer followed by fully connected layers"
18
+
19
+ o.on('--activation NAME') do |n|
20
+ @options.activation_function = CooCoo::ActivationFunctions.from_name(n)
21
+ end
22
+
23
+ o.on('--layers NUMBER') do |n|
24
+ @options.hidden_layers = n.to_i
25
+ end
26
+
27
+ o.on('--softmax') do |n|
28
+ @options.softmax = true
29
+ end
30
+
31
+ o.on('--conv-width VALUE') do |n|
32
+ @options.data_width = n.to_i
33
+ end
34
+
35
+ o.on('--conv-height VALUE') do |n|
36
+ @options.data_height = n.to_i
37
+ end
38
+
39
+ o.on('--convolutions VALUE') do |n|
40
+ @options.convolutions = n.to_i
41
+ end
42
+
43
+ o.on('--conv-step-x VALUE') do |n|
44
+ @options.convolution_step_x = n.to_i
45
+ end
46
+
47
+ o.on('--conv-step-y VALUE') do |n|
48
+ @options.convolution_step_y = n.to_i
49
+ end
50
+
51
+ o.on('--input-width VALUE') do |n|
52
+ @options.input_width = n.to_i
53
+ end
54
+
55
+ o.on('--input-height VALUE') do |n|
56
+ @options.input_height = n.to_i
57
+ end
58
+
59
+ o.on('--output-width VALUE') do |n|
60
+ @options.output_width = n.to_i
61
+ end
62
+
63
+ o.on('--output-height VALUE') do |n|
64
+ @options.output_height = n.to_i
65
+ end
66
+ end
67
+
68
+ def generate_convolution(net, input_width, input_height)
69
+ conv_layer = CooCoo::Convolution::BoxLayer.new(input_width,
70
+ input_height,
71
+ @options.convolution_step_x,
72
+ @options.convolution_step_y,
73
+ CooCoo::Layer.new(@options.input_width * @options.input_height, @options.output_width * @options.output_height, @options.activation_function),
74
+ @options.input_width,
75
+ @options.input_height,
76
+ @options.output_width,
77
+ @options.output_height)
78
+ net.layer(conv_layer)
79
+
80
+ [ conv_layer.output_width, conv_layer.output_height ]
81
+ end
82
+
83
+ def generate(training_set)
84
+ raise ArgumentError.new("data_width * data_height != input size") if @options.data_width && @options.data_height && training_set.input_size != @options.data_width * @options.data_height
85
+
86
+ net = CooCoo::Network.new
87
+
88
+ input_width = @options.data_width
89
+ input_height = @options.data_height || training_set.input_size / @options.data_width
90
+
91
+ @options.convolutions.times do |convolution|
92
+ input_width, input_height = generate_convolution(net, input_width, input_height)
93
+ end
94
+
95
+ num_layers = @options.hidden_layers.to_i
96
+ divisor = ((input_width * input_height) - training_set.output_size) / num_layers.to_f
97
+
98
+ num_layers.times do |i|
99
+ n = num_layers - i
100
+ outputs = (input_width * input_height) * (n - 1) / num_layers.to_f
101
+ outputs = training_set.output_size if outputs <= training_set.output_size
102
+ layer = CooCoo::Layer.new(((input_width * input_height) * n / num_layers.to_f).ceil,
103
+ outputs.ceil,
104
+ @options.activation_function)
105
+ net.layer(layer)
106
+ end
107
+
108
+ if @options.softmax
109
+ net.layer(CooCoo::LinearLayer.new(training_set.output_size, CooCoo::ActivationFunctions::ShiftedSoftMax.instance))
110
+ end
111
+
112
+ net
113
+ end
114
+
115
+
116
+ [ method(:generate), @opts ]
@@ -0,0 +1,51 @@
1
+ require('ostruct')
2
+ @options = OpenStruct.new
3
+ @options.activation_function = CooCoo::ActivationFunctions.from_name('Logistic')
4
+ @options.hidden_layers = 2
5
+ @options.softmax = false
6
+
7
+ @opts = CooCoo::OptionParser.new do |o|
8
+ o.banner = "Linear drop out network prototype options"
9
+
10
+ o.on('--activation NAME', "The activation function the network uses at each layer. Valid options are: #{CooCoo::ActivationFunctions.named_classes.join(', ')}") do |n|
11
+ @options.activation_function = CooCoo::ActivationFunctions.from_name(n)
12
+ end
13
+
14
+ o.on('--layers NUMBER', 'The number of layers the network will have.') do |n|
15
+ @options.hidden_layers = n.to_i
16
+ end
17
+
18
+ o.on('--softmax', 'Adds a SoftMax layer to the end of the network.') do
19
+ @options.softmax = true
20
+ end
21
+ end
22
+
23
+ def generate(training_set)
24
+ net = CooCoo::Network.new
25
+
26
+ num_layers = @options.hidden_layers.to_i
27
+ divisor = (training_set.input_size - training_set.output_size) / num_layers.to_f
28
+
29
+ log.puts("Generating #{num_layers} layers")
30
+
31
+ num_layers.times do |i|
32
+ n = num_layers - i
33
+ outputs = training_set.input_size * (n - 1) / num_layers.to_f
34
+ outputs = training_set.output_size if outputs <= 1.0
35
+ inputs = training_set.input_size * n / num_layers.to_f
36
+ log.puts("\t#{i}\t#{inputs}\t#{outputs}\t#{@options.activation_function}")
37
+ layer = CooCoo::Layer.new(inputs,
38
+ outputs,
39
+ @options.activation_function)
40
+ net.layer(layer)
41
+ end
42
+
43
+ if @options.softmax
44
+ net.layer(CooCoo::LinearLayer.new(training_set.output_size, CooCoo::ActivationFunctions::ShiftedSoftMax.instance))
45
+ end
46
+
47
+ net
48
+ end
49
+
50
+
51
+ [ method(:generate), @opts ]
@@ -0,0 +1,79 @@
1
+ require('ostruct')
2
+
3
+ @options = OpenStruct.new
4
+ @options.activation_function = CooCoo::ActivationFunctions.from_name('Logistic')
5
+ @options.num_layers = 1
6
+ @options.hidden_size = nil
7
+ @options.recurrent_size = nil
8
+ @options.num_recurrent_layers = 2
9
+ @options.softmax = false
10
+ @options.backprop_limit = nil
11
+
12
+ @opts = CooCoo::OptionParser.new do |o|
13
+ o.banner = "Layers recurrent fully connected layers."
14
+
15
+ o.on('--activation NAME', "The activation function the network uses at each layer. Valid options are: #{CooCoo::ActivationFunctions.named_classes.join(', ')}") do |n|
16
+ @options.activation_function = CooCoo::ActivationFunctions.from_name(n)
17
+ end
18
+
19
+ o.on('--softmax', 'Adds a SoftMax layer to the end of the network.') do
20
+ @options.softmax = true
21
+ end
22
+
23
+ o.on('--layers NUMBER', 'The number of layers in each recurrent stack.') do |n|
24
+ @options.num_layers = n.to_i
25
+ end
26
+
27
+ o.on('--hidden-size NUMBER', 'The number of inputs to each hidden layer.') do |n|
28
+ @options.hidden_size = n.to_i
29
+ end
30
+
31
+ o.on('--recurrent-size NUMBER', 'The number of outputs that get looped back to be inputs.') do |n|
32
+ @options.recurrent_size = n.to_i
33
+ end
34
+
35
+ o.on('--recurrent-layers NUMBER', 'The number of recurrent layer stacks.') do |n|
36
+ @options.num_recurrent_layers = n.to_i
37
+ end
38
+
39
+ o.on('--backprop-limit NUMBER', 'Limit the TemporalNetwork to only backpropagating sequences back this number of events.') do |n|
40
+ @options.backprop_limit = n.to_i
41
+ end
42
+ end
43
+
44
+ def generate(training_set)
45
+ net = CooCoo::TemporalNetwork.new()
46
+
47
+ @options.hidden_size ||= training_set.input_size
48
+ @options.recurrent_size ||= @options.hidden_size
49
+
50
+ if @options.hidden_size != training_set.input_size
51
+ net.layer(CooCoo::Layer.new(training_set.input_size, @options.hidden_size, @options.activation_function))
52
+ end
53
+
54
+ @options.num_recurrent_layers.to_i.times do |n|
55
+ rec = CooCoo::Recurrence::Frontend.new(@options.hidden_size, @options.recurrent_size)
56
+ net.layer(rec)
57
+ @options.num_layers.times do
58
+ net.layer(CooCoo::Layer.new(@options.hidden_size + rec.recurrent_size, @options.hidden_size + rec.recurrent_size, @options.activation_function))
59
+ end
60
+
61
+ net.layer(rec.backend)
62
+ net.layer(CooCoo::Layer.new(@options.hidden_size, @options.hidden_size, @options.activation_function))
63
+ end
64
+
65
+ if @options.hidden_size != training_set.output_size
66
+ net.layer(CooCoo::Layer.new(@options.hidden_size, training_set.output_size, @options.activation_function))
67
+ end
68
+
69
+ if @options.softmax
70
+ net.layer(CooCoo::LinearLayer.new(training_set.output_size, CooCoo::ActivationFunctions.from_name('SoftMax')))
71
+ end
72
+
73
+ net.backprop_limit = @options.backprop_limit if @options.backprop_limit
74
+
75
+ net
76
+ end
77
+
78
+
79
+ [ method(:generate), @opts ]
Binary file
Binary file
@@ -0,0 +1,82 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <html>
3
+ <head>
4
+ <title>CooCoo.network</title>
5
+ <style type="text/css">
6
+ body {
7
+ margin-bottom: 8em;
8
+ background: white;
9
+ color: black;
10
+ }
11
+ h1.title {
12
+ font-size: 5em;
13
+ margin-bottom: 0em;
14
+ }
15
+ .center {
16
+ text-align: center;
17
+ margin-left: auto;
18
+ margin-right: auto;
19
+ width: 60em;
20
+ }
21
+ .cursor {
22
+ background: black;
23
+ color: white;
24
+ display: inline;
25
+ }
26
+ .menu {
27
+ padding: 0;
28
+ list-style: none;
29
+ }
30
+ .menu LI {
31
+ margin: 1em 0em;
32
+ }
33
+ </style>
34
+ <script language="javascript">
35
+ function toggle_cursors()
36
+ {
37
+ var el = document.getElementsByClassName('cursor');
38
+ for(var i = 0; i < el.length; i++) {
39
+ if(el[i].style.backgroundColor == 'white') {
40
+ el[i].style.backgroundColor = 'black';
41
+ } else {
42
+ el[i].style.backgroundColor = 'white';
43
+ }
44
+ }
45
+ }
46
+
47
+ setInterval(function() {
48
+ toggle_cursors();
49
+ }, 1 / 120 * 1000);
50
+
51
+ setInterval(function() {
52
+ toggle_cursors();
53
+ }, 3000);
54
+
55
+ setInterval(function() {
56
+ toggle_cursors();
57
+ }, 5000);
58
+ </script>
59
+ </head>
60
+ <body>
61
+ <div class="center">
62
+ <h1 class="title">
63
+ CooCoo.network!!
64
+ </h1>
65
+ <div>
66
+ <img src="./images/screamer.png" alt="CooCoo" />
67
+ </div>
68
+ <pre>$ gem install CooCoo<div class="cursor">&nbsp;</div></pre>
69
+ <ul class="menu">
70
+ <li>
71
+ <a href="https://github.com/sneakin/CooCoo/blob/master/README.md">Read Me</a>
72
+ </li>
73
+ <li>
74
+ <a href="https://github.com/sneakin/CooCoo/">Get the source</a>
75
+ </li>
76
+ </ul>
77
+ <p>
78
+ Train an AI!
79
+ </p>
80
+ </div>
81
+ </body>
82
+ </html>
metadata ADDED
@@ -0,0 +1,373 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: CooCoo
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Nolan Eakins
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-01-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.14'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.14'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: yard
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: yard-rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: pry
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.11.3
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.11.3
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: coderay
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: nmatrix
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: parallel
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: nokogiri
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: ruby-progressbar
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: chunky_png
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: cairo
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :runtime
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: colorize
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :runtime
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ - !ruby/object:Gem::Dependency
224
+ name: ffi
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :runtime
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ description:
238
+ email:
239
+ - sneakin+coocoo@semanticgap.com
240
+ executables: []
241
+ extensions: []
242
+ extra_rdoc_files: []
243
+ files:
244
+ - ".gitignore"
245
+ - CooCoo.gemspec
246
+ - Gemfile
247
+ - Gemfile.lock
248
+ - README.md
249
+ - Rakefile
250
+ - bin/cuda-dev-info
251
+ - bin/cuda-free
252
+ - bin/cuda-free-trend
253
+ - bin/ffi-gen
254
+ - bin/spec_runner_html.sh
255
+ - bin/trainer
256
+ - bin/trend-cost
257
+ - examples/char-rnn.rb
258
+ - examples/cifar/cifar.rb
259
+ - examples/img-similarity.rb
260
+ - examples/math_ops.rb
261
+ - examples/mnist.rb
262
+ - examples/mnist_classifier.rb
263
+ - examples/mnist_dream.rb
264
+ - examples/seeds.rb
265
+ - examples/seeds_dataset.txt
266
+ - examples/t10k-images-idx3-ubyte
267
+ - examples/t10k-labels-idx1-ubyte
268
+ - examples/train-images-idx3-ubyte
269
+ - examples/train-labels-idx1-ubyte
270
+ - ext/buffer/Rakefile
271
+ - ext/buffer/buffer.pre.cu
272
+ - ext/buffer/matrix.pre.cu
273
+ - ext/buffer/public.h
274
+ - lib/CooCoo.rb
275
+ - lib/coo-coo.rb
276
+ - lib/coo-coo/activation_functions.rb
277
+ - lib/coo-coo/consts.rb
278
+ - lib/coo-coo/convolution.rb
279
+ - lib/coo-coo/core_ext.rb
280
+ - lib/coo-coo/cost_functions.rb
281
+ - lib/coo-coo/cuda.rb
282
+ - lib/coo-coo/cuda/device_buffer.rb
283
+ - lib/coo-coo/cuda/device_buffer/ffi.rb
284
+ - lib/coo-coo/cuda/error.rb
285
+ - lib/coo-coo/cuda/host_buffer.rb
286
+ - lib/coo-coo/cuda/runtime.rb
287
+ - lib/coo-coo/cuda/vector.rb
288
+ - lib/coo-coo/data_sources.rb
289
+ - lib/coo-coo/data_sources/xournal.rb
290
+ - lib/coo-coo/data_sources/xournal/bitmap_stream.rb
291
+ - lib/coo-coo/data_sources/xournal/document.rb
292
+ - lib/coo-coo/data_sources/xournal/loader.rb
293
+ - lib/coo-coo/data_sources/xournal/renderer.rb
294
+ - lib/coo-coo/data_sources/xournal/saver.rb
295
+ - lib/coo-coo/data_sources/xournal/training_document.rb
296
+ - lib/coo-coo/data_sources/xournal/training_document/constants.rb
297
+ - lib/coo-coo/data_sources/xournal/training_document/document_maker.rb
298
+ - lib/coo-coo/data_sources/xournal/training_document/document_reader.rb
299
+ - lib/coo-coo/data_sources/xournal/training_document/example.rb
300
+ - lib/coo-coo/data_sources/xournal/training_document/sets.rb
301
+ - lib/coo-coo/debug.rb
302
+ - lib/coo-coo/dot.rb
303
+ - lib/coo-coo/drawing.rb
304
+ - lib/coo-coo/drawing/cairo_canvas.rb
305
+ - lib/coo-coo/drawing/canvas.rb
306
+ - lib/coo-coo/drawing/chunky_canvas.rb
307
+ - lib/coo-coo/drawing/sixel.rb
308
+ - lib/coo-coo/enum.rb
309
+ - lib/coo-coo/from_name.rb
310
+ - lib/coo-coo/fully_connected_layer.rb
311
+ - lib/coo-coo/generation_script.rb
312
+ - lib/coo-coo/grapher.rb
313
+ - lib/coo-coo/image.rb
314
+ - lib/coo-coo/layer.rb
315
+ - lib/coo-coo/layer_factory.rb
316
+ - lib/coo-coo/linear_layer.rb
317
+ - lib/coo-coo/math.rb
318
+ - lib/coo-coo/math/abstract_vector.rb
319
+ - lib/coo-coo/math/functions.rb
320
+ - lib/coo-coo/math/interpolation.rb
321
+ - lib/coo-coo/network.rb
322
+ - lib/coo-coo/neuron.rb
323
+ - lib/coo-coo/neuron_layer.rb
324
+ - lib/coo-coo/option_parser.rb
325
+ - lib/coo-coo/platform.rb
326
+ - lib/coo-coo/progress_bar.rb
327
+ - lib/coo-coo/recurrence/backend.rb
328
+ - lib/coo-coo/recurrence/frontend.rb
329
+ - lib/coo-coo/sequence.rb
330
+ - lib/coo-coo/shell.rb
331
+ - lib/coo-coo/temporal_network.rb
332
+ - lib/coo-coo/trainer.rb
333
+ - lib/coo-coo/trainer/base.rb
334
+ - lib/coo-coo/trainer/batch.rb
335
+ - lib/coo-coo/trainer/batch_stats.rb
336
+ - lib/coo-coo/trainer/momentum_stochastic.rb
337
+ - lib/coo-coo/trainer/stochastic.rb
338
+ - lib/coo-coo/transformer.rb
339
+ - lib/coo-coo/vector_layer.rb
340
+ - lib/coo-coo/version.rb
341
+ - lib/coo-coo/weight_deltas.rb
342
+ - prototypes/convolution.rb
343
+ - prototypes/linear_drop.rb
344
+ - prototypes/recurrent_layers.rb
345
+ - www/images/screamer.png
346
+ - www/images/screamer.xcf
347
+ - www/index.html
348
+ homepage: https://CooCoo.network/
349
+ licenses:
350
+ - GPL
351
+ metadata:
352
+ yard.run: yri
353
+ post_install_message:
354
+ rdoc_options: []
355
+ require_paths:
356
+ - lib
357
+ required_ruby_version: !ruby/object:Gem::Requirement
358
+ requirements:
359
+ - - ">="
360
+ - !ruby/object:Gem::Version
361
+ version: '0'
362
+ required_rubygems_version: !ruby/object:Gem::Requirement
363
+ requirements:
364
+ - - ">="
365
+ - !ruby/object:Gem::Version
366
+ version: '0'
367
+ requirements: []
368
+ rubyforge_project:
369
+ rubygems_version: 2.6.14
370
+ signing_key:
371
+ specification_version: 4
372
+ summary: Neural networks in Ruby and CUDA.
373
+ test_files: []