Hi,
Linear Regression algorithm like many other needs numerical features. if categorical features exists, they needs to be converted first before applying the model. There are many different ways of converting categorical to numerical depending on what kind of categorical variables you are dealing with.
Since I don't have full details of the features you are working with, sharing here the link to refer and apply the correct method to convert categorical features to numeric.
https://towardsdatascience.com/all-about-categorical-variable-encoding-305f3361fd02
Please let me know if that helps.
------------------------------
Nataraj Krishnappa
------------------------------
Original Message:
Sent: Sun March 08, 2020 04:41 AM
From: Josué AFOUDA
Subject: How to deal with Categorical features in Modeling
Hi everybody,
My name is Josue Afouda and i'm a self-learner in Data Science. I want to predict the agricole production in terms of Type of culture (millet, corn , ...), locality and many other features. But i get an error when i trying to make a MLR model due to categoricals features. How can i deal with these categorical features.
Is someone can help me please ?
Josué Afouda
#GlobalAIandDataScience
#GlobalDataScience