From c019ecedcb54e0ccbfebcf6901b3007d1e24ba1d Mon Sep 17 00:00:00 2001 From: mguetlein Date: Tue, 28 Feb 2012 10:36:17 +0100 Subject: remove unneeded dataset files when performing loo-cv --- test/test_examples.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'test/test_examples.rb') diff --git a/test/test_examples.rb b/test/test_examples.rb index f3c0b7e..2b95cf2 100755 --- a/test/test_examples.rb +++ b/test/test_examples.rb @@ -274,6 +274,22 @@ module ValidationExamples end end + ######################################################################################################## + + class HamsterLooCrossvalidation < LooCrossValidation + def initialize + @dataset_file = File.new("data/hamster_carcinogenicity.csv","r") + end + end + + class LazarHamsterLooCrossvalidation < HamsterLooCrossvalidation + def initialize + @algorithm_uri = File.join(CONFIG[:services]["opentox-algorithm"],"lazar") + @algorithm_params = "feature_generation_uri="+File.join(CONFIG[:services]["opentox-algorithm"],"fminer/bbrc") + super + end + end + ######################################################################################################## class LazarHamsterMiniCrossvalidation < CrossValidation @@ -828,6 +844,8 @@ module ValidationExamples "22e" => [ AmbitVsNtuaTrainingTest ], "22f" => [ AnotherAmbitJ48TrainingTest ], "22g" => [ TumTrainingTest ], + + "23a" => [ LazarHamsterLooCrossvalidation ], } -- cgit v1.2.3