opentox-ruby 1.0.0 → 1.0.1
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/VERSION +1 -1
- data/lib/algorithm.rb +1 -2
- data/lib/dataset.rb +2 -1
- data/lib/feature.rb +3 -0
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
data/lib/algorithm.rb
CHANGED
@@ -190,8 +190,7 @@ module OpenTox
|
|
190
190
|
gram_matrix[i][i] = 1.0
|
191
191
|
end
|
192
192
|
|
193
|
-
LOGGER.debug gram_matrix.to_yaml
|
194
|
-
|
193
|
+
#LOGGER.debug gram_matrix.to_yaml
|
195
194
|
@r = RinRuby.new(false,false) # global R instance leads to Socket errors after a large number of requests
|
196
195
|
@r.eval "library('kernlab')" # this requires R package "kernlab" to be installed
|
197
196
|
LOGGER.debug "Setting R data ..."
|
data/lib/dataset.rb
CHANGED
@@ -165,7 +165,8 @@ module OpenTox
|
|
165
165
|
|
166
166
|
# Detect feature type(s) in the dataset
|
167
167
|
# @return [String] `classification", "regression", "mixed" or unknown`
|
168
|
-
def feature_type
|
168
|
+
def feature_type(subjectid=nil)
|
169
|
+
load_features(subjectid)
|
169
170
|
feature_types = @features.collect{|f,metadata| metadata[OT.isA]}.uniq
|
170
171
|
if feature_types.size > 1
|
171
172
|
"mixed"
|
data/lib/feature.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opentox-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Christoph Helma, Martin Guetlein, Andreas Maunz, Micha Rautenberg, David Vorgrimmler
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-03-
|
18
|
+
date: 2011-03-16 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|