Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update svm.py #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Assignment-2/svm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -412,4 +412,4 @@ def main():
print("No such part for multiclass classification")

if __name__ == "__main__":
main()
main()