Ok, sorry! The cost function is embedded into the C smo() function. I think that you cannot access it directly. Matthieu Brucher ha scritto:
Well this is an input parameter, I'd like to access the cost function directly so that I can use it to follow its gradient to the limit between the two classes.
Matthieu
2008/2/15, Davide Albanese <albanese@fbk.eu <mailto:albanese@fbk.eu>>:
Yes: https://mlpy.fbk.eu/wiki/MlpyExamplesWithDoc
* svm() Initialize the svm class.
Inputs: ... cost - for cost-sensitive classification [-1.0, 1.0]
Matthieu Brucher ha scritto:
> OK, I'll try it then :) > > Is there an access to the underlying cost function ? (this is mainly > what I need) > > Matthieu >
> 2008/2/15, Davide Albanese <albanese@fbk.eu <mailto:albanese@fbk.eu> <mailto:albanese@fbk.eu <mailto:albanese@fbk.eu>>>:
> > I don't know very well libsvm too, the core of svm-mlpy is written > in C > and was developed by Stefano Merler (merler@fbk.eu <mailto:merler@fbk.eu>
> <mailto:merler@fbk.eu <mailto:merler@fbk.eu>>).
> I have simply wrapped it into svm() Python class. > > Regards, > > /* da */ > > > > -- > French PhD student > Website : http://matthieu-brucher.developpez.com/ > Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92 > LinkedIn : http://www.linkedin.com/in/matthieubrucher
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org <mailto:Numpy-discussion@scipy.org> http://projects.scipy.org/mailman/listinfo/numpy-discussion
-- French PhD student Website : http://matthieu-brucher.developpez.com/ Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92 LinkedIn : http://www.linkedin.com/in/matthieubrucher