Re: [scikit-learn] Sparse Input for HistGradientBoostingClassifier

2019-10-21 Thread thomasjpfan
Currently, it is not implemented. Feel free to open an issue regarding sparse support for HistGradientBoosting. Thomas > On Oct 21, 2019, at 9:00 PM, Jason Wolosonovich wrote: > >  > Hi! > > I'm getting an error when trying to use the HistGradientBoostingClassifier by > feeding it the outpu

[scikit-learn] Sparse Input for HistGradientBoostingClassifier

2019-10-21 Thread Jason Wolosonovich
Hi! I'm getting an error when trying to use the HistGradientBoostingClassifier by feeding it the output from CountVectorizer and then TfidfTransformer. The error is: TypeError: A sparse matrix was passed, but dense data is required. Use X.toarray() to convert to a dense numpy array. I haven't op