Binary Classification - Linear Regression
I am using the mushroom data from UCI. It has two classes p and e.
It binary classification problem and all the data is in text form. My data has a column called "class". I set it as a label. Then I performed a "Nominal to Numerical" all the columns since all the data is text. I applied Linear Regression as the model and added a "Performance" at the end. It gave me the error "The label Attribute (class) must be numerical for the calculation of performance for regression tasks".
The only solution I have found is to first put the "Nominal to Numerical" it will separate the class into two (class = e, class = p) but I have noticed that I can only either class = e as label or class = p label, even if I put two separate blocks of "SetRoles" for class e and p.
How can I set two labels for regression?
Also, the root means the square error is zero and the squared correlation is 1. I don't think my results are correct.