Run a simple SVM model
ReJay
New Altair Community Member
I run the decision model and knn model using the same layout,but the SVM model fail.
Tagged:
0
Answers
-
It shows me that rapidminer (LibSVM) cannot handle polynominal attributes.
0 -
Hello @ReJay
SVM algorithms cannot work on attributes with Nominal (Categorical) variables. They only work on numerical data. In case of nominal, you can convert them to numerical using "nominal to numerical" and run SVM. I am not sure about your data properties so I cannot comment if it is a good idea to convert nominal attributes to numerical.
Hope this helps.
Regards
Varun
2 -
Thank you for your answering(I don't know how to @ you )
My data is number.
I read it on hive. If the reason is the name of table?
0 -
Are all your fields numeric (numbers)? I think you might have some categorical variables (nominal attributes) n your dataset which is causing this issue. If you want us to check please follow the below steps.
Please export your process (.rmp file) using FILE --> Export Process from rapidminer and attach your dataset file (Excel, CSV etc.) and the exported process in this thread? It will help us to check and inform more details.
0 -
-
Hello @ReJay
Thanks for attaching the files. I checked your data in RM and can confirm that all columns are numbers. The new error I saw is related to the label (output) column Y. This iY column is also read as a numeric value. As you are trying to do a classification problem (based on SVM kernel type) I added numerical to nominal operator that converts the numerical Y column into nominal. Now the process works.
Import the attached process into your RM by using FILE --> Import process and attach your dataset and run it.
Hope this helps. Let us know if you need more information.1 -
I change "Y" to "y" in Set Role when it send error. But the NtP send error.0 -
If it is already nominal you don't need to change it using numeric to nominal. Just disable the nominal to numeric and try running it. In my case, it is read as numeric so I changed it to nominal.1