3 ms·
Hey, one easy way to decide features is to use a correlation matrix. The stronger the correlation coefficient r is, the more of a linear relationship exists. T
by alexhwoods 11y ago
Hey, one easy way to decide features is to use a correlation matrix. The stronger the correlation coefficient r is, the more of a linear relationship exists.
The code goes like this -
install.packages('corrplot')
library(corrplot)
mcor <- cor(crime) # if crime is your dataframe
corrplot(mcor)
That's one easy way to start out. Perhaps I'll write a post on feature engineering.
- cstuder 11y agoThank you, I will try this. And I would love to see such a post.