summaryrefslogtreecommitdiff
path: root/example.rb
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2010-07-13 13:35:25 +0200
committermguetlein <martin.guetlein@gmail.com>2010-07-13 13:35:25 +0200
commit2291a400b7fe5f7ffe4e173b8a910db75e64fbb6 (patch)
tree3cb2947c146b794700ff8c831b7944e4fb7103ba /example.rb
parentb0d858950a942d4f283663e1950b019823c2bbc2 (diff)
fixed r-square, added validated_datasets (to example page as well)
Diffstat (limited to 'example.rb')
-rw-r--r--example.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/example.rb b/example.rb
index b0de21d..ceb1329 100644
--- a/example.rb
+++ b/example.rb
@@ -7,11 +7,13 @@ class Example
@@file_type="text/x-yaml"
@@model=File.join @@config[:services]["opentox-model"],"1"
@@feature= URI.encode("http://localhost/toxmodel/feature#Hamster%20Carcinogenicity%20(DSSTOX/CPDB)")
+ @@predicted_feature= URI.encode("http://localhost/toxmodel/feature#Hamster%20Carcinogenicity%20(DSSTOX/CPDB)_lazar_classification")
@@alg = File.join @@config[:services]["opentox-algorithm"],"lazar"
@@alg_params = "feature_generation_uri="+File.join(@@config[:services]["opentox-algorithm"],"fminer")
@@data=File.join @@config[:services]["opentox-dataset"],"1"
@@train_data=File.join @@config[:services]["opentox-dataset"],"2"
@@test_data=File.join @@config[:services]["opentox-dataset"],"3"
+ @@prediction_data=File.join @@config[:services]["opentox-dataset"],"5"
@@css_file="http://apps.ideaconsult.net:8080/ToxPredict/style/global.css"
@@summary=""
@@ -39,7 +41,8 @@ class Example
"validation_report_id" => "1",
"crossvalidation_report_id" => "1",
"css_file" => @@css_file,
- }
+ "prediction_dataset_uri" => @@prediction_data,
+ "predicted_feature" => @@predicted_feature }
sub.each do |k,v|
res.gsub!(/<#{k}>/,v)