Search engine
SOLUTION:
- Open both training and test set files in Weka and save as .arff files.
- Open them with a plain text editor (Notepad, Notepad++, etc.).
- Check the nominal attributes (i.e. not numerical), which Weka has put into arrays of this format: {..}.
- Compare the attribute arrays of the training file against test set. The order depends on how they appear in the file, so just rearrange the arrays in both training and test set for matching attribute arrays. It should now run without throwing an "incompatible" error.
Thanks. Very helpful comment. have wasted 1 hour with this. you saved from wasting more :)
ReplyDeleteYou're welcome, I wasted some time with it too, so I'm glad to help others :)
Delete