From 85319425d431d30f3ef5272ba2b08abb54490485 Mon Sep 17 00:00:00 2001 From: Abhishek Burnwal <34074072+abhiaj@users.noreply.github.com> Date: Mon, 9 Mar 2020 01:07:56 +0530 Subject: [PATCH] Update svm.py --- Assignment-2/svm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assignment-2/svm.py b/Assignment-2/svm.py index d4fe0b5..9742d14 100644 --- a/Assignment-2/svm.py +++ b/Assignment-2/svm.py @@ -179,7 +179,7 @@ def libsvm_both(train_data,train_output,test_data,test_output,gamma,penalty): # ENDING OF BINARY CLASSIFICATION FUNCTIONS. BELOW CODE IS FOR MULTICLASS CLASSIFICATION -# multiclass classification using cvxopt and 45 SVMs i.e. one vs all classification +# multiclass classification using cvxopt and 45 SVMs i.e. one vs one classification def multiclass_svm_cvxopt(train_data_path,test_data_path,gamma,penalty,tolerance): svm_dict = {} num_max = 1 @@ -412,4 +412,4 @@ def main(): print("No such part for multiclass classification") if __name__ == "__main__": - main() \ No newline at end of file + main()