rbbt-dm 1.1.55 → 1.1.56

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rbbt/vector/model.rb +5 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da7b980af0b37e0ef665bc87eded5c966af3f9df1a58f8aa2ccec8fc2e83b980
4
- data.tar.gz: 7a35ffea3a0179fd915f3bbdd4620ead3915fb18a965df54fe555df6305bf30a
3
+ metadata.gz: 8ab1295a1cb43602045e0c75226cc71e1b8eb8fbc7ce72f869f1636309745ad7
4
+ data.tar.gz: 0c6bd97a2e8c81deb4435531344fd5b145382ddafd06012e93d8695de89f3ff2
5
5
  SHA512:
6
- metadata.gz: ce14071303cb8e80419d1d29bdb4ab3b0e7740e579bd5051a7d70392bb833cc47c96d4b1ae76d95dcb5142055486c552df5d63b25c381bc9168a71c788c06ecc
7
- data.tar.gz: eeae14bbaad12c7131ad6ffa1b44fa479a920235642fcb29b965e879f19b524b2a7446db35fe1f95cd60d23254d8d5cc89e921924ae4184233d380e0c0f443f4
6
+ metadata.gz: 9f2b34158e345c703e60a94d7481e397add3651b0fc5fd7c80205b2c44ae9578e1ccac2b9d67e3679afa37f60d56fe3defed8fbd42c81765e1239b90e8bc06da
7
+ data.tar.gz: fc1d764b9a240b60bd1de30e22f534485f7319c0396b291e28b0fe1ad48acde7cdeb5de7448509550892cd17e743b5388348f1f40584233280b5ec42cc95940c
@@ -294,15 +294,16 @@ cat(paste(label, sep="\\n", collapse="\\n"));
294
294
  good_label = labels.uniq.select{|l| l.to_s == "true"}.first if good_label.nil?
295
295
  good_label = labels.uniq.select{|l| l.to_s == "1"}.first if good_label.nil?
296
296
  good_label = labels.uniq.sort.first if good_label.nil?
297
+ good_label = good_label.to_s
297
298
 
298
299
  test.zip(predicted).each do |gs,pred|
299
300
  gs = gs.to_s
300
301
  pred = pred.to_s
301
302
 
302
- tp += 1 if gs == good_label && gs == good_label
303
- tn += 1 if gs != good_label && gs != good_label
304
- fp += 1 if gs != good_label && pred == good_label
305
- fn += 1 if gs == good_label && pred != good_label
303
+ tp += 1 if pred == good_label && gs == good_label
304
+ fp += 1 if pred == good_label && gs != good_label
305
+ tn += 1 if pred != good_label && gs != good_label
306
+ fn += 1 if pred != good_label && gs == good_label
306
307
  end
307
308
 
308
309
  p = tp + fn
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-dm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.55
4
+ version: 1.1.56
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez