The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Regression unable to use polynomial label(or any label)
green_duck
Member Posts: 4 Learner I
in Help
Hello all,
new here and new to RM(which will be made obvious shortly). So, i'm trying to do a simple regression analysis based on a attribute(label) as(-1,0,1). I've followed the steps provided to me, but every time I input a regression operator, I get an error saying the operator cannot handle polynomial or numerical labels. I'm stumped.
Any help would be greatly appreciated! Thanks! <?xml version="1.0" encoding="UTF-8"?>
new here and new to RM(which will be made obvious shortly). So, i'm trying to do a simple regression analysis based on a attribute(label) as(-1,0,1). I've followed the steps provided to me, but every time I input a regression operator, I get an error saying the operator cannot handle polynomial or numerical labels. I'm stumped.
Any help would be greatly appreciated! Thanks! <?xml version="1.0" encoding="UTF-8"?>
Tagged:
0
Best Answers
-
lionelderkrikor RapidMiner Certified Analyst, Member Posts: 1,195 Unicorn@green_duck,
In attached file, the working process.
How said previously, you have a classification problem, thus you need a classifier model (Here I used a Naive Bayes model).
The Linear Model you used is dedicated to regression task(s) and thus raised an error in your case.
To go further and to find the best model for your use case, I advice you to use the Auto-Model tool : Click on Auto-Model, submit your data, choose Predict and select your label attribute (in your case "sentiment") and then follow the indications.
Good luck !
Hope this helps,
Regards,
Lionel
1 -
lionelderkrikor RapidMiner Certified Analyst, Member Posts: 1,195 Unicorn@green_duck,
I'm not specialist of Deep-learning but as said previously, you can start with the Deep learning model proposed in Auto-Model with the default parameters.
Don't forget to enable the option Turn into Classification.
You will obtain a first performance. Then you can play with the structure of the neural network by adding or removing hidden layer(s), and/or playing with the number of epochs (increase this parameter), modify the activation function etc. and see if you can improve the performance of your process.
Hope this helps,
Regards,
Lionel
6
Answers
If your attribute(label) has (-1,0,1) as values, it is a classification problem and not a regression problem.
A regression problem is characterized by a continuous attribute(label).
Can you provide your process and your data in order we can fix your error ?
Regards,
Lionel
Thanks for getting back to me - I had a feeling this may have been the case as I was also attempting to use cross-validation but I couldn't get the operator to work either. I've attached the data(should've done this earlier).
XML below:
Thank you so much! This was very helpful - Just have one last question - are there any deep learning models(NNs) that you would suggest for this same dataset?