fBayes 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/.DS_Store CHANGED
Binary file
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/fBayes.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "fBayes"
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ivan Acosta-Rubio"]
data/lib/.DS_Store CHANGED
Binary file
data/lib/data/.DS_Store CHANGED
Binary file
@@ -11,8 +11,8 @@ puts "*" * 100
11
11
  puts "CDC CLASSIFIER"
12
12
  puts "*" * 100
13
13
 
14
- categories_path = Dir["./data/cdc/data/*"]
15
- categories = categories_path.map{|path| path.gsub("./data/cdc/data/", "")}
14
+ categories_path = Dir["./lib/data/cdc/data/*"]
15
+ categories = categories_path.map{|path| path.gsub("./lib/data/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( "./data/cdc/data/#{category}")
27
+ data = File.read( "./lib/data/cdc/data/#{category}")
28
28
 
29
29
 
30
30
  puts category +": " + data.size.to_s
Binary file
@@ -4,8 +4,9 @@ puts "*" * 100
4
4
  puts "SR24 CLASSIFIER:"
5
5
  puts "*" * 100
6
6
 
7
- categories_path = Dir["./data/sr24/data/*"]
8
- @categories = categories_path.map{|path| path.gsub("./data/sr24/data/", "")}
7
+ categories_path = Dir["./lib/data/sr24/data/*"]
8
+
9
+ @categories = categories_path.map{|path| path.gsub("./lib/data/sr24/data/", "")}
9
10
 
10
11
  @sr24_classifier = Classifier::Bayes.new
11
12
 
@@ -18,7 +19,7 @@ total_size = 0
18
19
 
19
20
  @categories.each do |category|
20
21
  method = "train_" + category.downcase
21
- data = File.read("./data/sr24/data/#{category}")
22
+ data = File.read("./lib/data/sr24/data/#{category}")
22
23
  puts category +": " + data.size.to_s
23
24
  @sr24_classifier.send(method, data)
24
25
  total_size += data.size.to_i
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.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -179,7 +179,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
179
179
  version: '0'
180
180
  segments:
181
181
  - 0
182
- hash: -1184345455816930889
182
+ hash: 3861426290773412944
183
183
  required_rubygems_version: !ruby/object:Gem::Requirement
184
184
  none: false
185
185
  requirements: