Ask Your Question
0

How to solve for lagrange multipliers for SVM in computer? [closed]

asked 2017-05-11 06:18:21 -0600

arunim gravatar image

I am trying to implement SVM from scratch in JAVA. I have read the theory part and I know we have to use lagrange multipliers to train SVM. I can do it by hand but I don't know how to implement it in computer. Is there any package or library available?

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant by berak
close date 2017-05-17 09:25:24.133972

Comments

this is an unlucky question, because: if you just need an SVM, you don't write your own, but use opencv's builtin one, or (the java port of) libsvm.

on the other hand, if you have to write your own for a college project, this is the wrong place to ask.

berak gravatar imageberak ( 2017-05-11 06:53:46 -0600 )edit

I am learning about SVM and the best way to learn is to implement it from scratch. I have used built-in libraries previously but I want to implement SVM myself. AND, this is not for my college project.

arunim gravatar imagearunim ( 2017-05-11 07:14:31 -0600 )edit
1

When I needed to use some math functions in Java, I used (long time ago) this package: Commons Math: The Apache Commons Mathematics Library.

It is a complete Math "toolbox" for Java.

Eduardo gravatar imageEduardo ( 2017-05-11 08:50:15 -0600 )edit

@Eduardo thanks for the answer.

arunim gravatar imagearunim ( 2017-05-12 23:30:00 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-05-17 00:03:06 -0600

arunim gravatar image

I have used JOM(Java Optimization Modeler) to solve QP problem.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-05-11 06:18:21 -0600

Seen: 319 times

Last updated: May 17 '17