Which estimators in scikit-learn don't support sparse matrices?

前端 未结 1 858
时光说笑
时光说笑 2021-01-06 17:12

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

相关标签:
1条回答
  • 2021-01-06 17:29

    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.

    0 讨论(0)
提交回复
热议问题