From 3cea6abe3606ea586b733e943737f77d58f215f9 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Mon, 27 Jul 2015 20:51:25 +0200 Subject: reasonable query performace for data_entries --- lib/feature.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib/feature.rb') diff --git a/lib/feature.rb b/lib/feature.rb index b2f9a93..de8e4c9 100644 --- a/lib/feature.rb +++ b/lib/feature.rb @@ -8,6 +8,8 @@ module OpenTox field :calculated, type: Boolean field :supervised, type: Boolean field :source, as: :title, type: String + #belongs_to :dataset + #belongs_to :data_entry end class NominalFeature < Feature @@ -36,10 +38,9 @@ module OpenTox end class FminerSmarts < Smarts - field :training_algorithm, type: String - field :training_compound_ids, type: Array - field :training_feature_id, type: BSON::ObjectId - field :training_parameters, type: Hash + field :pValue, type: Float + field :effect, type: String + field :dataset_id def initialize params super params supervised = true -- cgit v1.2.3