cjlin1 / libsvm

LIBSVM -- A Library for Support Vector Machines
https://www.csie.ntu.edu.tw/~cjlin/libsvm/
BSD 3-Clause "New" or "Revised" License
4.54k stars 1.64k forks source link

how to optimize self-defined objective functions of SVR results #112

Open Hailprob opened 6 years ago

Hailprob commented 6 years ago

I want to use mse or mape indicator to show model performance, and use pso to optimize mse。However, I should define mse use the traditional formula without parameters c or gamma. And I got struck, needing help!

cjlin1 commented 6 years ago

I think our MSE is the same as the standard definition.. It does involve C or gamma.

Hailprob writes:

I want to use mse or mape indicator to show model performance, and use pso to optimize mse。However, I should define mse use the traditional formula without parameters c or gamma. And I got struck, needing help!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.*

Hailprob commented 6 years ago

Thanks for your reply , and I am new to python, I am now looking for way of get mse by directly use the model methods or attributes. Could you please show me how I can use the mse?