From 7b8d85cb91c0a0a6ec530fc527be6ec67f70df99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20G=C3=BCtlein?= Date: Fri, 26 Mar 2010 11:23:15 +0100 Subject: changes related to feature-encode-problem --- lib/model.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/model.rb') diff --git a/lib/model.rb b/lib/model.rb index e8eee09..9f03c4b 100644 --- a/lib/model.rb +++ b/lib/model.rb @@ -20,6 +20,8 @@ module OpenTox @dependent_variables = owl.dependentVariables @independent_variables = owl.independentVariables @predicted_variables = owl.predictedVariables + + raise "invalid model: "+self.to_yaml unless @dependent_variables.to_s.size>0 && @independent_variables.to_s.size>0 && @predicted_variables.to_s.size>0 end end @@ -28,7 +30,7 @@ module OpenTox def self.build( algorithm_uri, algorithm_params ) - LOGGER.debug "Build model, algorithm_uri:"+algorithm_uri.to_s+", algorithm_parms: "+algorithm_params.to_s + LOGGER.debug "Build model, algorithm_uri:"+algorithm_uri.to_s+", algorithm_parms: "+algorithm_params.inspect.to_s uri = OpenTox::RestClientWrapper.post(algorithm_uri,algorithm_params).to_s uri = OpenTox::Task.find(uri).wait_for_resource.to_s if Utils.task_uri?(uri) return PredictionModel.find(uri) -- cgit v1.2.3