From 33c2404882cbed78c1c5d9d0b60e0da4594a7fc5 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Mon, 14 Sep 2015 13:44:51 +0200 Subject: tests for Model::Prediction.[classification|regression]? --- test/prediction_models.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/prediction_models.rb b/test/prediction_models.rb index b4ad415..001ebcd 100644 --- a/test/prediction_models.rb +++ b/test/prediction_models.rb @@ -15,6 +15,8 @@ class PredictionModelTest < MiniTest::Test [:endpoint,:species,:source].each do |p| refute_empty pm[p] end + assert pm.classification? + refute pm.regression? assert pm.crossvalidation.accuracy > 0.8 prediction = pm.predict Compound.from_smiles("CCCC(NN)C") assert_equal "true", prediction[:value] -- cgit v1.2.3