Re: Problem loading large ARFF file in Weka 3.8.6
Peter Reutemann <[email protected]>
| Newsgroups | gmane.comp.ai.weka |
|---|---|
| Message-ID | <CAHoQ12KbJoZyqmHNEWFktnm3SqNp4Pyg09MJaTp9o8PhEWnK0w@mail.gmail.com> |
> Yes, you need to change the configuration file, "runweka.ini" in the main Weka folder. > I had the same problem, as Weka got installed with only 8GB allowance, while the system itself uses about 6GB (with all the extensions I have installed). I have 32GB on my system, so I decided to give Weka 16GB to play with. > First check how much your Weka installation is allowed to use at the moment- in Weka GUI Chooser go to Help/ System Info and find "memory.max" - there you will see how much memory you are using at the moment. Then decide how much more you might need, just remember to leave something for the OS itself :) > In order to do that you need to edit the above mentioned file and find this part of code : > > # the heap size (or any other JVM option) > javaOpts=%JAVA_OPTS% > > -and just below that add: > javaOpts=%JAVA_OPTS% -Xmx16g > -where "g" means GBytes, "m" will count as MBytes and so on. > > Restart weka, check system info again to confirm that it worked. Using an environment variable is usually recommended, as not everyone may have admin rights to change files in the "Program Files" folder. Also, if you should reinstall or upgrade Weka, the setting from the environment variable won't disappear. If you want to manage (and isolate) multiple Weka installations, you could have a look at my weka-virtualenv tool: https://github.com/fracpete/weka-virtualenv There you can set the memory for each individual installation. Just make sure to run "Install -> Update" from the menu to refresh the list of available Weka releases. Cheers, Peter -- Peter Reutemann Dept. of Computer Science University of Waikato, NZ +64 (7) 858-5174 (office) +64 (7) 577-5304 (home office) https://www.cs.waikato.ac.nz/~fracpete/ http://www.data-mining.co.nz/ _______________________________________________ Wekalist mailing list -- [email protected] Send posts to [email protected] To unsubscribe send an email to [email protected] To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html