1
$\begingroup$

Tell me please, what method of decreasing the number of attributes (features) can be applied to the Bayesian classifier in Python? Thank you

$\endgroup$
1
  • $\begingroup$ I think PCA might work well with Naive Bayes... $\endgroup$
    – Djib2011
    Sep 16, 2018 at 17:00

1 Answer 1

0
$\begingroup$

PCA. If a few principal components explain a significant portion of the variance, you could achieve meaningful dimension reduction this way.

PCA also has the added benefit of giving you uncorrelated variables, which helps with satisfying the Naive Bayes assumptions (i.e. Naive Bayes assumes that given the class, feature are independent).

You could also take a look at factor analysis, and checking if your factor loadings are interpretable (although I guess that's not super important for an ML application). Factor scores are also uncorrelated.

$\endgroup$

Your Answer

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

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