cerebrum 0.1.1 → 0.1.2
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/README.md +2 -2
- data/cerebrum.gemspec +1 -1
- data/lib/cerebrum/cerebrum.rb +2 -2
- data/lib/cerebrum/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ad9f879fedc9edbdb4898c23ac34c774ce96d93
|
4
|
+
data.tar.gz: e69a64b6c1cb78e474f7223cebc3879588511e37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f0fafaae68fd966304f3ef83b8a8b4b124931132693ffe2a53607f37c3f1b79966d9f32172b093200467c9801cff505c14bac8af3a668f1d88b6c71e432c4ab
|
7
|
+
data.tar.gz: d0fc8ce6021dc2262cb6e4bb12f34aceb1fae9408aeb4b0e3918ecf12f2f557217d1bf07082fa5fae8153108ca8fc17562df474fa30e55c4152ba1ac4b3a2092
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
# GEM: cerebrum 
|
1
|
+
# GEM: cerebrum  [](https://badge.fury.io/rb/cerebrum)
|
2
2
|
|
3
3
|
`cerebrum` is an implementation of
|
4
|
-
[ANNs](https://en.wikipedia.org/wiki/
|
4
|
+
[ANNs](https://en.wikipedia.org/wiki/Artificial_neural_network)
|
5
5
|
in Ruby. There's no reason to train a neural network in Ruby, I'm using it to
|
6
6
|
experiment and play around with the bare fundamentals of ANNs, original idea
|
7
7
|
for this project [here](https://github.com/harthur/brain) is currently
|
data/cerebrum.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
17
17
|
# delete this section to allow pushing this gem to any host.
|
18
18
|
if spec.respond_to?(:metadata)
|
19
|
-
spec.metadata['allowed_push_host'] = "https://rubygems.org
|
19
|
+
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
20
20
|
else
|
21
21
|
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
22
22
|
end
|
data/lib/cerebrum/cerebrum.rb
CHANGED
@@ -40,8 +40,8 @@ class Cerebrum
|
|
40
40
|
input_size = training_set[0][:input].length
|
41
41
|
output_size = training_set[0][:output].length
|
42
42
|
|
43
|
-
|
44
|
-
layer_sizes = [input_size,
|
43
|
+
@hidden_layers ||= [ [3, (input_size/2).floor].max ]
|
44
|
+
layer_sizes = [input_size, @hidden_layers, output_size].flatten
|
45
45
|
construct_network(layer_sizes)
|
46
46
|
|
47
47
|
iterations.times do |i|
|
data/lib/cerebrum/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cerebrum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Irfan Sharif
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-05-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -79,7 +79,7 @@ homepage: https://github.com/irfansharif/cerebrum
|
|
79
79
|
licenses:
|
80
80
|
- MIT
|
81
81
|
metadata:
|
82
|
-
allowed_push_host: https://rubygems.org
|
82
|
+
allowed_push_host: https://rubygems.org
|
83
83
|
post_install_message:
|
84
84
|
rdoc_options: []
|
85
85
|
require_paths:
|
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
96
|
version: '0'
|
97
97
|
requirements: []
|
98
98
|
rubyforge_project:
|
99
|
-
rubygems_version: 2.
|
99
|
+
rubygems_version: 2.4.5.1
|
100
100
|
signing_key:
|
101
101
|
specification_version: 4
|
102
102
|
summary: Artificial Neural Networks in Ruby
|