RCP_Network 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc57f67314cd411f3c0b32b2d0a00ed132259b3de51cde7e11fccd0f8b34615e
4
- data.tar.gz: 67e74542a076bf6bce26a90d7a8257a747f7a1fedd15945314037aa56d6f6c4f
3
+ metadata.gz: bb674243733aa979c986342accf24a58f89c36cd76835ddfdcba6427cb977ca3
4
+ data.tar.gz: fd1d372fe6b68fd46ddd5c94d65cb788e5dc6f9e6a11bcddc5828b30b03e5f52
5
5
  SHA512:
6
- metadata.gz: bb0cb5e360aed3090f7c855d8a3c03d2ebf2a4bc9fc527bd5e10c1dee69dc596f953b313a5a56c0bf8e21531b87c1d164cebd181b4f4599cf21c87d3adfadb47
7
- data.tar.gz: c3807fb27667a8cf3cdd96db63f90d95cdce7c4fbcf5cb81eaea162d904b3c6f885dabe8cb045448a5ac85c4c1f707dada10ef989bd78e0e2c58855d1044313c
6
+ metadata.gz: d8f307cbda95776db43e5f6be9378abfaf595c672ad05c1a6b236cafc0e58919bfbb0591aa530e27ce08113f2499c801f017d583c1e67426919d7014f0853585
7
+ data.tar.gz: fa514d824a81d448349d5968a61ad7ebc33974c3a8946a48b32b04ae9919a85ba7a18e2787debe4b32a51e101630c1e890e6251eb626c67204429b2c5a6419b9
data/lib/RCP_Network.rb CHANGED
@@ -55,7 +55,7 @@ module RCPNetwork
55
55
  def self.predict_from_data
56
56
  require "decisiontree"
57
57
 
58
- input = File.readlines("data/input/modifier_ratio.txt")
58
+ input = File.readlines("data/input/modifier_ratio.txt").strip.to_f
59
59
 
60
60
  attribute = ["Modifier"]
61
61
 
@@ -77,6 +77,12 @@ module RCPNetwork
77
77
  else
78
78
  RCPNetwork::ConciousReason.make_choice
79
79
  end
80
+
81
+ new_input = input += 0.5
82
+
83
+ open("data/input/modifier_ratio.txt", "w") { |f|
84
+ f.puts new_input
85
+ }
80
86
  end
81
87
 
82
88
  end
@@ -1,3 +1,3 @@
1
1
  module RCPNetwork
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: RCP_Network
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
  - Gitea