TransWikia.com

how can i fix this problem ? I tried to train a simple linear VSM classifier

Data Science Asked by intmain12 on February 7, 2021

 library(kernlab)
 letter_classifier <- ksvm(letter ~ ., data = letters_train,
                       kernel = "vanilladot")
>  Setting default kernel parameters   Error in .local(x, ...) :    No
> Support Vectors found. You may want to change your parameters In
> addition: Warning message: In .local(x, ...) : NAs introduced by
> coercion

One Answer

Check the structure of letters_train.

SVM is for continuous and categorical variable analysis, and surely one of your variables (letter) is likely still a character variable. Change it to factor and try again.

Answered by Opeyemi Olomola on February 7, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP