pyod
pyod copied to clipboard
Does input data not support sparse matrix ?
train_X is A sparse matrix call fit(train_X) raise TypeError('A sparse matrix was passed, but dense ' TypeError: A sparse matrix was passed, but dense data is required. Use X.toarray() to convert to a dense numpy array.
I think only certain models support that. Most of them are not. So you have to do some conversion first. Will take this down for future development.
So you have to do some conversion first.
Sparse matrices are usually used where dense ones are not feasible.