rbrain 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rbrain.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e4a24336e395eb28572c7aae82fbc8e4dc90d2cd582e25cb5f0a70a2bedaba6
4
- data.tar.gz: e3c8a27c2f788bb849abb78f7be8a60cb15630f0859caa3c3c2f9bc1e670bbb8
3
+ metadata.gz: 6776afb3944b923284d98f00f6deff32acc6fcab119bde3251209e6e3c0bb4a9
4
+ data.tar.gz: a2452de8edd5f05d10d8307a7ef3dff5fd6b926db4fb09b7ef7df2fb45b19fea
5
5
  SHA512:
6
- metadata.gz: 4ca160b64ba9fe15cf4faf38164a59a57b0774b28b8a5690705f486aa27d953610463d42718bc03056ebe7ed12467fc2d8b396cba0820e643165ef28c1fa9b91
7
- data.tar.gz: 314e842c0ab79e74a715a741066537d3fa3fbab409c736c9e93eb70e1f49835e79bb205d3d64d4a4f08f6229b742e7f1644066750e937d8b7b95f81d4aa8e3a4
6
+ metadata.gz: d2c1285f5cd39ecf8530768c38d62556b8861c127cdadfd670962e4108d28cf495595d096b64c5afb19928464971e5df576bc565d863b9537e5b0ec80e8fe92c
7
+ data.tar.gz: 7fcc36fb65eb4d6fe744fd8627602fa613db7ced702eba2e8c2cab6cb811925bce7ac4cda402fa8fd3dd1170bc06aa4d253341347d0bf3663efe31b540a79023
@@ -63,14 +63,14 @@ class Rbrain
63
63
  end
64
64
  neuron[3] += neuron[4]
65
65
  neuron[4] = 0
66
- neuron[5] = true
66
+ neuron[5] = true if fired
67
67
  return fired
68
68
  end
69
69
 
70
70
 
71
71
  def self.print_fired_neurons(neurons)
72
72
  neurons.each do |n|
73
- puts "Fired #{n[0]}"
73
+ puts "Fired #{n[0]}" if n[5]
74
74
  end
75
75
  end
76
76
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbrain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Auxilus
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-15 00:00:00.000000000 Z
11
+ date: 2018-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: csv