fBayes 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/fBayes.gemspec +1 -1
- data/lib/data/cdc/classifier.rb +3 -3
- data/lib/fBayes.rb +1 -5
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/fBayes.gemspec
CHANGED
data/lib/data/cdc/classifier.rb
CHANGED
@@ -11,8 +11,8 @@ puts "*" * 100
|
|
11
11
|
puts "CDC CLASSIFIER"
|
12
12
|
puts "*" * 100
|
13
13
|
|
14
|
-
categories_path = Dir[ FBayesDir.root + "/data/*"]
|
15
|
-
categories = categories_path.map{|path| path.gsub(FBayesDir.root + "/data/", "")}
|
14
|
+
categories_path = Dir[ FBayesDir.root + "/cdc/data/*"]
|
15
|
+
categories = categories_path.map{|path| path.gsub(FBayesDir.root + "/cdc/data/", "")}
|
16
16
|
@cdc_classifier = Classifier::Bayes.new
|
17
17
|
|
18
18
|
categories.each do |c|
|
@@ -24,7 +24,7 @@ total_size = 0
|
|
24
24
|
|
25
25
|
categories.each do |category|
|
26
26
|
method = "train_" + category.downcase
|
27
|
-
data = File.read( FBayesDir.root + "/data/#{category}")
|
27
|
+
data = File.read( FBayesDir.root + "/cdc/data/#{category}")
|
28
28
|
|
29
29
|
|
30
30
|
puts category +": " + data.size.to_s
|
data/lib/fBayes.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fBayes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -184,7 +184,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
184
184
|
version: '0'
|
185
185
|
segments:
|
186
186
|
- 0
|
187
|
-
hash:
|
187
|
+
hash: -2836690683508422044
|
188
188
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
189
|
none: false
|
190
190
|
requirements:
|