I want to train a dataset that has a lot of nominal attributes. I noticed from some posts that to convert nominal attributes on has to transform them into repetitive binary features. Also as I understood that doing so will conceptually make the dataset sparse. Also I know that scikit-learn uses sparse matrices with some estimators because it's faster or so. But also I found that some estimators don't accept sparse matrices, still. My question is: which ones don't accept sparse matrices until now?
You can check whether a method in scikit-learn supports sparse matrices by checking the docstring. If it says
X : {array-like, sparse matrix}
then sparse matrix inputs are supported. When it says just "array-like", they're not supported.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With