From 04af01b8135ea147e9ce253e5526e3ee3adcc675 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Fri, 7 Aug 2015 19:50:09 +0200 Subject: initial k-nn weighted average implementation --- lib/opentox-client.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/opentox-client.rb') diff --git a/lib/opentox-client.rb b/lib/opentox-client.rb index 42e8186..092b84e 100644 --- a/lib/opentox-client.rb +++ b/lib/opentox-client.rb @@ -5,12 +5,14 @@ require 'yaml' require 'json' require 'logger' require 'mongoid' +require 'rserve' # TODO store development/test, validation, production in separate databases ENV["MONGOID_ENV"] = "development" Mongoid.load!("#{ENV['HOME']}/.opentox/config/mongoid.yml") +R = Rserve::Connection.new -CLASSES = ["Compound", "Feature", "Dataset"]#, "Validation", "Task", "Investigation"] +CLASSES = ["Feature","Compound", "Dataset"]#, "Validation", "Task", "Investigation"] #CLASSES = ["Feature", "Dataset", "Validation", "Task", "Investigation"] # Regular expressions for parsing classification data @@ -26,8 +28,8 @@ FALSE_REGEXP = /^(false|inactive|0|0.0|low tox|deactivating|non-carcinogen|non-m #"otlogger.rb", "opentox.rb", #"task.rb", - "compound.rb", "feature.rb", + "compound.rb", #"data_entry.rb", "dataset.rb", #"algorithm.rb", -- cgit v1.2.3