rbbt-dm 1.1.15 → 1.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rbbt/statistics/random_walk.rb +12 -8
- data/lib/rbbt/statistics/rank_product.rb +0 -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: 0ae479006dfc634dda28affa527fd67a90215c95
|
4
|
+
data.tar.gz: d6b3e24779cf07cf276dc7273338e9bf04ed5f49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecc5a24854bc69ccc075f652430f31db3e9e769b23ca87e2aa4c76441ccc5bedff2898e1575e28b83fb52f15f309e861cb528235c14f6e7b0b81c5d87c556f89
|
7
|
+
data.tar.gz: 2ccfacc38784a9c4fe83e8e82ddebb7f17ab6ae9a93c703c51632e7fb6e0ca7e5443979bffeab0ded34f9298e0b553c8e78b362567e8d0cb89368e120f99d8e4
|
@@ -260,15 +260,19 @@ module RandomWalk
|
|
260
260
|
repo_file = "/tmp/rw_repo7"
|
261
261
|
repo = Persist.open_tokyocabinet(repo_file, false, :float_array)
|
262
262
|
key = Misc.digest([size, total, missing, times, scoring_method].inspect)
|
263
|
-
|
264
|
-
|
265
|
-
repo[key]
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
repo
|
263
|
+
begin
|
264
|
+
repo.read
|
265
|
+
if repo[key]
|
266
|
+
repo[key]
|
267
|
+
else
|
268
|
+
p = permutations(size, total, missing, times)
|
269
|
+
repo.write_and_close do
|
270
|
+
repo[key] = p
|
271
|
+
end
|
272
|
+
p
|
270
273
|
end
|
271
|
-
|
274
|
+
ensure
|
275
|
+
repo.close
|
272
276
|
end
|
273
277
|
end
|
274
278
|
|
@@ -63,7 +63,6 @@ module TSV
|
|
63
63
|
|
64
64
|
signature_sizes = fields.collect{|field| slice(field).values.select{|v| v and not (v.respond_to?(:empty?) and v.empty?)}.length}
|
65
65
|
|
66
|
-
#score = RankProduct.score(positions, fields.collect{ tsv.size })
|
67
66
|
score = RankProduct.score(positions, signature_sizes)
|
68
67
|
|
69
68
|
score
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbbt-dm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rbbt-util
|