Search code examples
xmlclassificationsvmdocument-classificationfeature-selection

Is it possible to use SVM to learn a training sample with an input of "Feature Matrix" rather than a "Feature Vector"?


Is it possible to use SVM to learn a training sample with an input of "Feature Matrix" rather than a "Feature Vector" ? I need to classify XML documents by representing each document as a Feature Matrix. Typically, a feature vector is used to train SVM for text classification. However, representing XML documents as feature vectors could lead to structural information loss!

Thanks in advance!


Solution

  • Standard practice is to create "long vectors" by "rasterizing" the matrix.

    Ultimately, SVMs resolve into lines or hyperplanes, not polygons.