Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: weka.classifiers.functions.LibSVM: Cannot handle numeric class!

  1. #1

    Unhappy weka.classifiers.functions.LibSVM: Cannot handle numeric class!

    The documentation states that SVM can be used for Regression.

    Why then am I getting this error when I try it:

    weka.classifiers.functions.LibSVM: Cannot handle numeric class!

  2. #2
    Join Date
    Aug 2006
    Posts
    1,741

    Default

    Have you set the SVMType option to "epsilon-SVR"? It works fine for me on numeric class datasets in Weka 3.7.13.

    Cheers,
    Mark.

  3. #3

    Default

    Thanks, it's working now. First I added

    classifier.setSVMType(new SelectedTag(LibSVM.SVMTYPE_EPSILON_SVR, LibSVM.TAGS_SVMTYPE));

    Then after some trial-and-error I noticed I also needed a kernel type.
    Last edited by archi; 11-19-2015 at 12:13 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.