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 CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
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.2.0"
8
+ s.version = "0.2.1"
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"]
@@ -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
@@ -2,11 +2,7 @@
2
2
 
3
3
  module FBayesDir
4
4
  def self.root
5
- File.expand_path '../..', __FILE__
6
- end
7
-
8
- def self.cdc_data
9
- root + "/lib/data/cdc/data/"
5
+ Gem::Specification.find_by_name("fBayes").gem_dir + "/lib/data/"
10
6
  end
11
7
  end
12
8
 
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.0
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: 870635879603635299
187
+ hash: -2836690683508422044
188
188
  required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  none: false
190
190
  requirements: