rbrain 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rbrain.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6776afb3944b923284d98f00f6deff32acc6fcab119bde3251209e6e3c0bb4a9
|
4
|
+
data.tar.gz: a2452de8edd5f05d10d8307a7ef3dff5fd6b926db4fb09b7ef7df2fb45b19fea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2c1285f5cd39ecf8530768c38d62556b8861c127cdadfd670962e4108d28cf495595d096b64c5afb19928464971e5df576bc565d863b9537e5b0ec80e8fe92c
|
7
|
+
data.tar.gz: 7fcc36fb65eb4d6fe744fd8627602fa613db7ced702eba2e8c2cab6cb811925bce7ac4cda402fa8fd3dd1170bc06aa4d253341347d0bf3663efe31b540a79023
|
data/lib/rbrain.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2018-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: csv
|