cerebrum 0.1.1 → 0.1.2

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
  SHA1:
3
- metadata.gz: 0f30759c9f08ac49ff7c52a6a0fd97dcf288d255
4
- data.tar.gz: 94a095b0fe5853e8b7e5b8e6f88c4cfe8ea1fd7a
3
+ metadata.gz: 8ad9f879fedc9edbdb4898c23ac34c774ce96d93
4
+ data.tar.gz: e69a64b6c1cb78e474f7223cebc3879588511e37
5
5
  SHA512:
6
- metadata.gz: 7c6cc26527c029730a51e2c1f5a36eed725d1b4e3c473732b67bc02673da9b28557adeb9a88c6ea2b1916f432a5d673ffc17cd52d8236decba912bf54c2b85a7
7
- data.tar.gz: 6b755cd92c8fbb84c69dde3b4751247c670278272112128ca6412c798b15a57ad26770367afed48315b5c7dce905ef1d6e0a4949e165927985f8890fd79782d8
6
+ metadata.gz: 5f0fafaae68fd966304f3ef83b8a8b4b124931132693ffe2a53607f37c3f1b79966d9f32172b093200467c9801cff505c14bac8af3a668f1d88b6c71e432c4ab
7
+ data.tar.gz: d0fc8ce6021dc2262cb6e4bb12f34aceb1fae9408aeb4b0e3918ecf12f2f557217d1bf07082fa5fae8153108ca8fc17562df474fa30e55c4152ba1ac4b3a2092
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
- # GEM: cerebrum ![](https://travis-ci.org/irfansharif/cerebrum.svg?branch=master)
1
+ # GEM: cerebrum ![](https://travis-ci.org/irfansharif/cerebrum.svg?branch=master) [![Gem Version](https://badge.fury.io/rb/cerebrum.svg)](https://badge.fury.io/rb/cerebrum)
2
2
 
3
3
  `cerebrum` is an implementation of
4
- [ANNs](https://en.wikipedia.org/wiki/Artificial_neural_networ://en.wikipedia.org/wiki/Artificial_neural_network)
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
@@ -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
@@ -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
- hidden_layer_sizes = [ [3, (input_size/2).floor].max ] unless @hidden_layers
44
- layer_sizes = [input_size, hidden_layer_sizes, output_size].flatten
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|
@@ -1,3 +1,3 @@
1
1
  class Cerebrum
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-04-21 00:00:00.000000000 Z
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.6.3
99
+ rubygems_version: 2.4.5.1
100
100
  signing_key:
101
101
  specification_version: 4
102
102
  summary: Artificial Neural Networks in Ruby