Increase heap to avoid Out of Memory Error in WEKA

前端 未结 3 1341
北荒
北荒 2020-12-20 21:58

I am trying to run a classifier in WEKA, using a J48 classifier using the following command line:

$ java -Xmx2048m -cp /home/weka-3-7-9/weka.jar weka.classif         


        
相关标签:
3条回答
  • 2020-12-20 22:30

    In terminal use this command

    sudo gedit /usr/bin/weka
    

    Change the size in the line

    MEMORY="256m"

    0 讨论(0)
  • 2020-12-20 22:43

    Quick instruction for the Ubuntu-Users: The heap can be set by changing the line MEMORY="256m" in the file /usr/bin/weka with your favored editor.

    0 讨论(0)
  • 2020-12-20 22:44

    Weka's instructions state that the "-Xmx..." command will not work from the simple command line interface. I believe you should increase the heap size by editing the RunWeka.ini file. The link I provided should point you in the right direction.

    0 讨论(0)
提交回复
热议问题