Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Problem loading/installing additional RWeka classifier

  1. #1
    Join Date
    Dec 2015
    Posts
    2

    Default Problem loading/installing additional RWeka classifier

    Hi all, as the title suggests, I am having problem loading/installing additional RWeka classifier.

    First, I wanted to import the NBTree classifer into my Rweka and I bumped into this page. (http://blog.harbu.org/2014/11/27/nbtree-in-R.html)

    So I followed the steps to the dot, and the commands I put down in sequence was


    library("rJava")
    library("RWekajars")
    library("RWeka")


    WPM("refresh-cache")
    WPM("package-info", "repository", "naiveBayesTree")
    WPM("install-package", "naiveBayesTree")

    1. With the last command "WPM("install-package", "naiveBayesTree")", the R was just kept loading and not returning anything.
    I stopped the loading checked with WPM("list-packages", "installed"), naiveBayesTree was not installed.

    2. I went to Weka and tried install the naiveBayesTree from package manager, I did it successfully and checked with WPM("list-packages", "installed"), it
    showed naiveBayesTree was installed and loaded, which at first i thought it was a good sign.
    Then I tried to do this command WOW("weka/classifiers/trees/NBTree"), i got error message of "Error in .jnew(name) : java.lang.ClassNotFoundException"

    Any ideas what's gone wrong? Thanks for all the help!

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

    Default

    Did you try an explicit:

    WPM("load-package", "naiveBayesTree")

    before trying to create an NBTree?

    Cheers,
    Mark.

  3. #3
    Join Date
    Dec 2015
    Posts
    2

    Default

    Quote Originally Posted by Mark View Post
    Did you try an explicit:

    WPM("load-package", "naiveBayesTree")

    before trying to create an NBTree?

    Cheers,
    Mark.
    Hi Mark,

    Tried that too, error return saying naiveBayesTree not found even though I see the classifier is in the collection.

Tags for this Thread

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.