diff options
author | Martin Gütlein <martin.guetlein@gmail.com> | 2010-03-26 11:23:15 +0100 |
---|---|---|
committer | Martin Gütlein <martin.guetlein@gmail.com> | 2010-03-26 11:23:15 +0100 |
commit | 7b8d85cb91c0a0a6ec530fc527be6ec67f70df99 (patch) | |
tree | 05fac83528f95542d57c1e756c5db874f37ee073 /lib/model.rb | |
parent | 0230d687322bab8c0fd24cf41e33a28554a364db (diff) |
changes related to feature-encode-problem
Diffstat (limited to 'lib/model.rb')
-rw-r--r-- | lib/model.rb | 4 |
1 files changed, 3 insertions, 1 deletions
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) |