🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Run a simple SVM model

ReJayUser: "ReJay"
New Altair Community Member
Updated by Jocelyn


I run the decision model and knn model using the same layout,but the SVM model fail.

Find more posts tagged with

Sort by:
1 - 8 of 81
    ReJayUser: "ReJay"
    New Altair Community Member
    OP
     It shows me that rapidminer (LibSVM) cannot handle polynominal attributes.
    varunm1User: "varunm1"
    New Altair Community Member
    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
    ReJayUser: "ReJay"
    New Altair Community Member
    OP
    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?


    varunm1User: "varunm1"
    New Altair Community Member
    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.
    ReJayUser: "ReJay"
    New Altair Community Member
    OP
    Ok, you are so kind! thank you for help again.
    varunm1User: "varunm1"
    New Altair Community Member
    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.
    ReJayUser: "ReJay"
    New Altair Community Member
    OP

    I change "Y" to "y" in Set Role when it send error. But  the NtP send error. 
    varunm1User: "varunm1"
    New Altair Community Member
    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.