I was using SVM for text classification
pipe_lr1 = Pipeline(steps=[('cv',TfidfVectorizer()),
('lr_multi',MultiOutputClassifier(LinearSVC()))])
Will SVM takes data like sparse matrices like this?
(0, 320) 1.0
(1, 106) 0.7418635863640789
(1, 320) 0.6705508326943057
(2, 547) 0.5655985284555338
(2, 1062) 0.556131277628881
(2, 320) 0.6089468832762044
or when I convert these into vectors using todense()
[[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]
...
[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]]
Which one of those will considered as inputs to svm In vector form or sparse form?
pipe_lr1.fit(x_train1,y_train1)
my question was what does SVM consider as Input data? $\endgroup$