summaryrefslogtreecommitdiff
path: root/lib/feature.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2015-08-07 19:50:09 +0200
committerChristoph Helma <helma@in-silico.ch>2015-08-07 19:50:09 +0200
commit04af01b8135ea147e9ce253e5526e3ee3adcc675 (patch)
tree7b7fc17c5c8c5d2c6317db6bfc250e77b9a75628 /lib/feature.rb
parent6efd73ed92c0a1eee46464ec11d0ed41df3570e9 (diff)
initial k-nn weighted average implementation
Diffstat (limited to 'lib/feature.rb')
-rw-r--r--lib/feature.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/feature.rb b/lib/feature.rb
index 0801a47..005d78f 100644
--- a/lib/feature.rb
+++ b/lib/feature.rb
@@ -27,7 +27,8 @@ module OpenTox
end
class Smarts < NominalFeature
- field :name, as: :smarts, type: String # causes warnings
+ field :smarts, type: String
+ #field :name, as: :smarts, type: String # causes warnings
field :algorithm, type: String, default: "OpenTox::Algorithm::Descriptors.smarts_match"
field :parameters, type: Hash, default: {:count => false}
def initialize params
@@ -46,6 +47,10 @@ module OpenTox
end
end
+ class FingerprintSmarts < Smarts
+ field :count, type: Integer
+ end
+
class NominalBioAssay < NominalFeature
field :description, type: String
end