danger_sense 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/danger_sense.rb +1 -1
- data/lib/danger_sense/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5257162d34aa86cb22b6b3abc08489a6c7931066fedef8b3e7df8ffe1e243e58
|
4
|
+
data.tar.gz: df7eedcb1e8bd64ab4c2bdb588b570a2a2da4bda019fac8bd71ad029693788df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fac07dbbc661891f707c24dd3ec47aecdeb9834b7ac0a8ffaa415df76d4a2ca5390badff90666b1a8c4053b2b633aefc8bdd9af051db7c4c653eb674ee426c6d
|
7
|
+
data.tar.gz: 4fd23a060fb3a110b019580905df6f48d284e4349954d250fda0c77197393a74296374e08da99f6103660237408f3a459139f8188b33e184ec6e69b49103b39a
|
data/lib/danger_sense.rb
CHANGED
@@ -26,7 +26,7 @@ module DangerSense
|
|
26
26
|
[81.0, "Danger"], [94.5, "Critical"], [108.0, "Automatic"],
|
27
27
|
]
|
28
28
|
|
29
|
-
dec_tree = DecisionTree::ID3Tree.new(
|
29
|
+
dec_tree = DecisionTree::ID3Tree.new(attribute, training, 1, :continuous); dec_tree.train
|
30
30
|
test = [input]
|
31
31
|
|
32
32
|
decision = dec_tree.predict(test)
|
data/lib/danger_sense/version.rb
CHANGED