Does input data not support sparse matrix ?
Created by: z595054650
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.