linear regression nominal data problem

Waad
Waad New Altair Community Member
edited November 5 in Community Q&A
hi everyone
i have a problem implementing linear regression on a dataset that has polynomial and numerical data
but theproblem is i want to predict Activity which is polynomial values
and when i use Nominal to Numerical i still get error
thank you all

Best Answer

  • Caperez
    Caperez Altair Community Member
    edited July 2021 Answer ✓
    Hi @Waad,

    You need to ensure that all your attributes are numeric type. If you assign a role before to the numerical transformation the nominal to numeric operator will ignore that attribute unless you mark to include special attribute.
    In any case, You need to work better your dataset, for example eliminating the alphabetical part in your attributes with reggex code and preserve the numerical part.

    In the RM Academy you have a lot of great videos to learn about data transformations.



    Please find attached a simple aprox to your problem. You need to work on your dataset it and analyze your assumptions and the results.

    Best

Answers

  • Caperez
    Caperez Altair Community Member
    edited July 2021 Answer ✓
    Hi @Waad,

    You need to ensure that all your attributes are numeric type. If you assign a role before to the numerical transformation the nominal to numeric operator will ignore that attribute unless you mark to include special attribute.
    In any case, You need to work better your dataset, for example eliminating the alphabetical part in your attributes with reggex code and preserve the numerical part.

    In the RM Academy you have a lot of great videos to learn about data transformations.



    Please find attached a simple aprox to your problem. You need to work on your dataset it and analyze your assumptions and the results.

    Best

  • Waad
    Waad New Altair Community Member
    thank you so much @ceaperez
    it was very helpful