rearrange_bayesian_symbolic 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/rearrange_bayesian_symbolic.rb +12 -0
- data/lib/rearrange_bayesian_symbolic/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: 5f2e9528b3b826c7a797db8c1fdfef33ffa4591b556cb2550a45acee40156222
|
4
|
+
data.tar.gz: 8edabb1f580dfc6b99b42ff00fdfa2697f23420f075c6b878444e01c53598a6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0edc334c2cd0ddb1eedeafa38a6d628d3fe45b8bee201f811899f914f7e5b39d2940ec6da5933e39f4058c16c42245be7dda7b8bcb631ca9fa4e2fe2c0ebb09e
|
7
|
+
data.tar.gz: 2ff652fde8090c4475aae337d9d17f2995ce763b52b44947b5c4a15ffae09a9c5fbf8af49e0e0c38f4ab83fad6a2269f4d7825fff36f29efbe0dcec960fb2ea5
|
@@ -45,19 +45,31 @@ module RearrangeBayesianSymbolic
|
|
45
45
|
if decision == "customer"
|
46
46
|
puts "This is a likely customer relationship: #{create_relationship}"
|
47
47
|
|
48
|
+
old_data = File.read("output/result.txt")
|
49
|
+
|
48
50
|
open("output/result.txt", "w") { |f|
|
51
|
+
f.puts old_data
|
52
|
+
|
49
53
|
f.puts "This is a likely customer relationship: #{create_relationship}"
|
50
54
|
}
|
51
55
|
elsif decision == "notcustomer"
|
52
56
|
puts "This is not a likely customer relationship: #{create_relationship}"
|
57
|
+
|
58
|
+
old_data = File.read("output/result.txt")
|
53
59
|
|
54
60
|
open("output/result.txt", "w") { |f|
|
61
|
+
f.puts old_data
|
62
|
+
|
55
63
|
f.puts "This is not a likely customer relationship: #{create_relationship}"
|
56
64
|
}
|
57
65
|
else
|
58
66
|
puts "Could not reliably determine relationship likelihood: #{create_relationship}"
|
59
67
|
|
60
68
|
open("output/result.txt", "w") { |f|
|
69
|
+
f.puts old_data
|
70
|
+
|
71
|
+
old_data = File.read("output/result.txt")
|
72
|
+
|
61
73
|
f.puts "Could not reliably determine relationship likelihood: #{create_relationship}"
|
62
74
|
}
|
63
75
|
end
|