summaryrefslogtreecommitdiff
path: root/example.rb
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2010-05-07 14:10:27 +0200
committermguetlein <martin.guetlein@gmail.com>2010-05-07 14:10:27 +0200
commit6f437cd052fef1dfcdf2317688a78442d2d8a1f7 (patch)
tree91aa05c488293b22d07222a1629a1093013245c7 /example.rb
parent3c7ab47857f9f86caca6cdddfe7f6ef8672db797 (diff)
fix feature encoding, add comparables report to nightly
Diffstat (limited to 'example.rb')
-rw-r--r--example.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/example.rb b/example.rb
index 9684748..9f46705 100644
--- a/example.rb
+++ b/example.rb
@@ -6,7 +6,8 @@ class Example
@@file=File.new("data/hamster_carcinogenicity.yaml","r")
@@file_type="text/x-yaml"
@@model=File.join @@config[:services]["opentox-model"],"1"
- @@feature="http://localhost/toxmodel/feature%23Hamster%20Carcinogenicity%20(DSSTOX/CPDB)"
+ #@@feature="http://localhost/toxmodel/feature%23Hamster%20Carcinogenicity%20(DSSTOX/CPDB)"
+ @@feature= "http://localhost/toxmodel/feature#Hamster%20Carcinogenicity%20(DSSTOX/CPDB)"
@@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"
@@ -75,7 +76,7 @@ class Example
log "crossvalidation"
Lib::Crossvalidation.auto_migrate!
cv = Validation::Crossvalidation.new({ :dataset_uri => data_uri, :algorithm_uri => @@alg, :num_folds => 5, :stratified => false })
- cv.create_cv_datasets( URI.decode(@@feature) )
+ cv.create_cv_datasets( URI.decode(@@feature) )
cv.perform_cv( @@alg_params )
log "create validation report"