bayesball 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bayesball/classifier.rb +6 -0
- data/lib/bayesball/version.rb +1 -1
- data/spec/bayesball/classifier_spec.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ce4bfb61252ea0761c5d9709fe7a3b4ac3ca4da
|
4
|
+
data.tar.gz: 9998148ae40301923e4164c56d19309d5ea7da48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b31bcb3c7798385cfd0534cd4bbf17d55a20c4524c71ec53d7f7e59477f37157fe5f141e57104bb731e31fc5a3f0aa441915d4673e85d0307f2e8e51aae0795e
|
7
|
+
data.tar.gz: bfc8c9f2e3615e3ee2ba1ac2a027291287e4d98a87cb6e47a8d832e8b4dc91b53c1d9c68d87a1526c9bc176b8aae486c6a3dced5f7028c7951e753fe39560cbd
|
data/lib/bayesball/classifier.rb
CHANGED
data/lib/bayesball/version.rb
CHANGED
@@ -12,7 +12,12 @@ describe Bayesball::Classifier do
|
|
12
12
|
subject.train('basketball', 'The ball went in the hoop')
|
13
13
|
subject.train('baseball', 'He hit another grand slam!')
|
14
14
|
|
15
|
-
|
15
|
+
subject.score('The ball went in the hoop')
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'should accept a seed' do
|
19
|
+
subject.seed('basketball' => { 'hoop' => 1 })
|
20
|
+
subject.classify('hoop').must_equal 'basketball'
|
16
21
|
end
|
17
22
|
|
18
23
|
it 'should classify' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bayesball
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Staten
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A bayes classifier
|
14
14
|
email:
|