rocker 0.0.9 → 0.0.10
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.
- data/Rakefile +1 -0
- data/ext/rockerxx/rockerxx.h +5 -1
- data/lib/rocker.rb +4 -3
- metadata +21 -7
data/Rakefile
CHANGED
@@ -14,6 +14,7 @@ $hoe = Hoe.spec 'rocker' do
|
|
14
14
|
self.developer 'John Woods', 'john.woods@marcottelab.org'
|
15
15
|
self.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required
|
16
16
|
# self.extra_deps = [['activesupport','>= 2.0.2']]
|
17
|
+
self.extra_deps = [['facets','>=2.8.3']]
|
17
18
|
end
|
18
19
|
|
19
20
|
require 'newgem/tasks'
|
data/ext/rockerxx/rockerxx.h
CHANGED
@@ -45,7 +45,11 @@ bool path_to_uint(const boost::filesystem::path& p, uint& n) {
|
|
45
45
|
class Rocker {
|
46
46
|
public:
|
47
47
|
|
48
|
-
// Connect to the database and create the read transaction
|
48
|
+
// Connect to the database and create the read transaction.
|
49
|
+
// This also creates the place where query results from the fetch operation will
|
50
|
+
// be stored. It won't work if the fetcher creates those results itself, since
|
51
|
+
// perform() apparently creates a copy and therefore doesn't write to the
|
52
|
+
// original's var.
|
49
53
|
Rocker(string dbarg, uint m_id, uint e_id)
|
50
54
|
: c(dbarg), known_(new map<uint, set<uint> >), fetch(m_id, known_), update(e_id)
|
51
55
|
{
|
data/lib/rocker.rb
CHANGED
@@ -2,13 +2,14 @@ $:.unshift(File.dirname(__FILE__)) unless
|
|
2
2
|
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
|
3
3
|
|
4
4
|
# STDERR.puts("__FILE__=#{__FILE__}\ndirname=#{File.dirname(__FILE__)}")
|
5
|
-
# $:.unshift(File.join(File.dirname(__FILE__),'..','ext','
|
5
|
+
# $:.unshift(File.join(File.dirname(__FILE__),'..','ext','rockerxx'))
|
6
6
|
# STDERR.puts($:)
|
7
7
|
|
8
|
-
|
8
|
+
require 'facets'
|
9
|
+
require_local '../ext/rockerxx/rockerxx.so'
|
9
10
|
|
10
11
|
module Rocker
|
11
|
-
VERSION = '0.0.
|
12
|
+
VERSION = '0.0.10'
|
12
13
|
DBARGS = "dbname=crossval_development user=jwoods password=youwish1"
|
13
14
|
|
14
15
|
# Calculate AUCs in the current working directory
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 10
|
9
|
+
version: 0.0.10
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- John Woods
|
@@ -14,13 +14,27 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-04-
|
17
|
+
date: 2010-04-26 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
name:
|
21
|
+
name: facets
|
22
22
|
prerelease: false
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 2
|
29
|
+
- 8
|
30
|
+
- 3
|
31
|
+
version: 2.8.3
|
32
|
+
type: :runtime
|
33
|
+
version_requirements: *id001
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: rubyforge
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
24
38
|
requirements:
|
25
39
|
- - ">="
|
26
40
|
- !ruby/object:Gem::Version
|
@@ -30,11 +44,11 @@ dependencies:
|
|
30
44
|
- 4
|
31
45
|
version: 2.0.4
|
32
46
|
type: :development
|
33
|
-
version_requirements: *
|
47
|
+
version_requirements: *id002
|
34
48
|
- !ruby/object:Gem::Dependency
|
35
49
|
name: hoe
|
36
50
|
prerelease: false
|
37
|
-
requirement: &
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
38
52
|
requirements:
|
39
53
|
- - ">="
|
40
54
|
- !ruby/object:Gem::Version
|
@@ -44,7 +58,7 @@ dependencies:
|
|
44
58
|
- 0
|
45
59
|
version: 2.6.0
|
46
60
|
type: :development
|
47
|
-
version_requirements: *
|
61
|
+
version_requirements: *id003
|
48
62
|
description: |-
|
49
63
|
This gem is very fast C++ code for calculating AUCs on results of cross-validation.
|
50
64
|
|