0
$\begingroup$

I have a dataset which has only categorical values. As I came across a few articles people suggested that KNN / Random forest would work for dataset like this. Though in R it couldn't handle as if contains more than 53 categories.

Whereas in Sklearn, I used linear regression against each column to the column which I was predicting. After which I created a weighted average of all the outputs. But I'm pretty sure it's not the right way.

Can anyone suggest a better way?
PS : The dataset contains 4 columns with only categorical values. With 200 - 250 different categories in each column.

$\endgroup$
12

1 Answer 1

1
$\begingroup$

Welcome to the site!

I think the 53 category issue is specific to R's randomForest package. If you're set on using a random forest, try other packages like ranger and Rborist.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.