summaryrefslogtreecommitdiff
path: root/lib/model.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2016-02-27 16:47:48 +0100
committerChristoph Helma <helma@in-silico.ch>2016-02-27 16:47:48 +0100
commitb90720cc26d789a96fa6f7a054fe06fc8b4ef33d (patch)
tree3c5e28e4576b31eb66d1bc29a7c2abea38802bb3 /lib/model.rb
parente778475c578f13f30af4437845716d7e781c2609 (diff)
local pls regression as default regression algorithmfminer
Diffstat (limited to 'lib/model.rb')
-rw-r--r--lib/model.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/model.rb b/lib/model.rb
index 0d2354f..41b3217 100644
--- a/lib/model.rb
+++ b/lib/model.rb
@@ -34,7 +34,7 @@ module OpenTox
def initialize training_dataset, params={}
super params
- bad_request_error "More than one prediction feature found in training_dataset #{training_dataset.id}" unless training_dataset.features.size == 1
+ #bad_request_error "More than one prediction feature found in training_dataset #{training_dataset.id}" unless training_dataset.features.size == 1
# TODO document convention
prediction_feature = training_dataset.features.first
@@ -159,7 +159,7 @@ module OpenTox
def self.create training_dataset, params={}
model = self.new training_dataset, params
model.neighbor_algorithm ||= "fingerprint_neighbors"
- model.prediction_algorithm ||= "OpenTox::Algorithm::Regression.weighted_average"
+ model.prediction_algorithm ||= "OpenTox::Algorithm::Regression.local_pls_regression"
model.neighbor_algorithm_parameters ||= {}
{
:type => "MP2D",