8
$\begingroup$

I have a dataset that I want to classify and I do the following:

clf = Classify[xtrain -> ytrain, Method -> "SupportVectorMachine"]

How can I use my own values for the parameters of the SupportVectorMachine ?

$\endgroup$
10
$\begingroup$

You can try setting them as suboptions

Classify[xtrain -> ytrain, 
 Method -> {"SupportVectorMachine", "KernelType" -> "Linear", 
   "SoftMarginParameter" -> 2}]
$\endgroup$
  • $\begingroup$ Could you please let me know how to find what sub options are available? $\endgroup$ – chris May 9 '15 at 17:05
  • $\begingroup$ @chris I don't recall exactly, sorry. Hopefully, they will get documented $\endgroup$ – Rojo May 9 '15 at 22:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.