diff options
Diffstat (limited to 'lib/model.rb')
-rw-r--r-- | lib/model.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/model.rb b/lib/model.rb index d732aa4..8abd040 100644 --- a/lib/model.rb +++ b/lib/model.rb @@ -24,7 +24,7 @@ module OpenTox lazar.algorithm = File.join(@@config[:services]["opentox-algorithm"],"lazar") lazar.trainingDataset = yaml[:activity_dataset] lazar.dependentVariables = yaml[:endpoint] - lazar.predictedVariables = yaml[:endpoint] #+ " lazar prediction" + lazar.predictedVariables = yaml[:endpoint] + "_lazar_prediction" lazar end @@ -52,6 +52,14 @@ module OpenTox resource.post(data, :content_type => "application/x-yaml").to_s end +# def self.create(task) +# @uri = RestClient.post(@@config[:services]["opentox-model"], :task_uri => task.uri) +# end + +# def yaml=(data) +# RestClient.put(@@uri, data, :content_type => "application/x-yaml").to_s +# end + def endpoint YAML.load(RestClient.get(uri))[:endpoint] end |