confusion_matrix 1.1.1 → 1.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 +4 -4
- data/test/{matrix_test.rb → test_matrix.rb} +7 -7
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6a76eda091096738783d486e2f52006e32314571fbdfa5586e45fca368078f62
|
|
4
|
+
data.tar.gz: b45f69e18c44496b90da269e3e369d4255963c53b86f09621797c35256e7ccad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8147ff3419cd734f52a1b22ba6012b77cdc3b4a09231a5eebbf5b16df4b5712544bd93422927d9f9c2d3ec9cb86223954aabae2a418e758156593378033bfa7f
|
|
7
|
+
data.tar.gz: 882658b2b1aab5e7460d5cf403adfa400ebb602b3aa510667a3af70ef74c647fb0d067288739876d17d6bcca5830c36fc21db7697b5f4a908d74c28b5b280771
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
require
|
|
2
|
-
require
|
|
1
|
+
require "confusion_matrix"
|
|
2
|
+
require "minitest/autorun"
|
|
3
3
|
|
|
4
4
|
class TestConfusionMatrix < Minitest::Test
|
|
5
5
|
def test_empty_case
|
|
6
6
|
cm = ConfusionMatrix.new
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
assert_equal(0, cm.total)
|
|
8
|
+
assert_equal(0, cm.true_positive(:none))
|
|
9
|
+
assert_equal(0, cm.false_negative(:none))
|
|
10
|
+
assert_equal(0, cm.false_positive(:none))
|
|
11
|
+
assert_equal(0, cm.true_negative(:none))
|
|
12
12
|
assert_in_delta(0, cm.true_rate(:none))
|
|
13
13
|
end
|
|
14
14
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: confusion_matrix
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter Lane
|
|
@@ -22,11 +22,12 @@ files:
|
|
|
22
22
|
- LICENSE.rdoc
|
|
23
23
|
- README.rdoc
|
|
24
24
|
- lib/confusion_matrix.rb
|
|
25
|
-
- test/
|
|
25
|
+
- test/test_matrix.rb
|
|
26
26
|
homepage: https://rubygems.org/gems/confusion_matrix
|
|
27
27
|
licenses:
|
|
28
28
|
- MIT
|
|
29
29
|
metadata:
|
|
30
|
+
documentation_uri: https://rubydoc.info/gems/confusion_matrix
|
|
30
31
|
source_code_uri: https://codeberg.org/peterlane/confusion-matrix
|
|
31
32
|
rdoc_options:
|
|
32
33
|
- "-m"
|
|
@@ -37,7 +38,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
37
38
|
requirements:
|
|
38
39
|
- - ">="
|
|
39
40
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
41
|
+
version: '3.1'
|
|
41
42
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
42
43
|
requirements:
|
|
43
44
|
- - ">="
|