From 8a12de4c866e9abc713c86ebd4bf42527d24b9cb Mon Sep 17 00:00:00 2001
From: Thomas Feuvrier <thomas.feuvrier@c-s.fr>
Date: Thu, 27 Sep 2007 08:08:11 +0000
Subject: [PATCH] Anulation correction Gregoire sur le signe

---
 Utilities/otbsvm/svm.cxx | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/Utilities/otbsvm/svm.cxx b/Utilities/otbsvm/svm.cxx
index c80fdf100a..2294369728 100644
--- a/Utilities/otbsvm/svm.cxx
+++ b/Utilities/otbsvm/svm.cxx
@@ -2536,10 +2536,9 @@ double svm_predict(const svm_model *model, const svm_node *x)
 		double res;
 		svm_predict_values(model, x, &res);
 		
-//Gregoire M. corection
-/* 		if(model->param.svm_type == ONE_CLASS)
+ 		if(model->param.svm_type == ONE_CLASS)
 			return (res>0)?1:-1;
-		else*/
+		else
 			return res;
 	}
 	else
-- 
GitLab