Shark-ML / Shark

The Shark Machine Leaning Library. See more:
http://shark-ml.github.io/Shark/
GNU Lesser General Public License v3.0
493 stars 130 forks source link

Reaching dual variables in multiclass SVMs #290

Open gumityolcu opened 1 year ago

gumityolcu commented 1 year ago

Hello,

I am trying to use Shark to solve multiclass classification problems using the Crammer&Singer method, and I want to reach the dual variables.

How can I manage this?

So far, I have edited the functions so that Solver.solve() returns the RealMatrix alpha variable at the end, instead of the weight vectors. This seems to return a matrix of all 1s.

What would you recommend doing? What do you think I may be misunderstanding?

Thank you. Galip