"SVM learner on Excel data"

JasonTheKnightJasonTheKnight MemberPosts:2Contributor I
edited May 2019 inHelp
Hello

Further to my last post I've tried to use an Excel sheet which I put some post data in.

I import the Excel via ExcelExampleSource, then use StringTextInput to process the data set via StringTokenizer, EnglishStopWordFilter, TokenLengthFilter, PorterStemmer

This works fine, but I get an error message when I try to run LibSVMLearner on the results, basically telling me that I can't use polynomial attributes.....but there are only two labels (positive and negative in the dataset).

http://mrinterview2.gfknop.co.uk/jk/work/clipboard02.jpg
http://mrinterview2.gfknop.co.uk/jk/work/clipboard01.jpg
http://mrinterview2.gfknop.co.uk/jk/work/clipboard03.jpg

Excel is here:

http://mrinterview2.gfknop.co.uk/jk/work/Book2.xls

I'm just trying to get my head around making the learner build a model based on this data.

The XML is here:






























Thanks!

Jason
Tagged:

Answers

  • TobiasMalbrechtTobiasMalbrecht Moderator, Employee, MemberPosts:294RM Product Management
    Hi Jason,

    the problem here is not the label (containing positive or negative as values) but a polynomial attribute. If you look more closely at your data (or maybe better the meta data) you will recognize that your data contains a polynomial attribute ... the attributetextwhich contains the actual texts is potentially a string attribute and therefore (poly)nominal. You simply have to filter that attribute out (or set it to a special role) and then your process should be working.

    Hope that helps,
    Tobias
Sign InorRegisterto comment.