This section provides an overview of what weka is, and why a developer might want to use it.
It should also mention any large subjects within weka, and link out to the related topics. Since the Documentation for weka is new, you may need to create initial versions of those related topics.
For Mac User
replace the old info.Plist with the new one given by Mark Hall
download and install R
install rJava
inside R with
install.packages('rJava')
install Rplugin
with Weka Package Manager
go to weka 3-8-0
folder (if it is the version you are using), and open its terminal, and
run the following 2 lines of codes (thanks to Michael Hall)
export R_HOME=/Library/Frameworks/R.framework/Resources
java -Xss10M -Xmx4096M -cp .:weka.jar weka.gui.GUIChooser
to make life easier, inside a directory where you want to work with weka, save the code above into a file named as weka_r.sh
make it executable, inside this directory's terminal, run the code below:
chmod a+x weka_r.sh
paste weka.jar
from weka 3-8-0 into the directory and run the code below:
./weka_r.sh
Now, you are ready to go. Next time, you just need to go to the directory's terminal and run ./weka_r.sh
to start R with Weka.
open Weka from terminal:
go to directory of Weka 3-8-0
, open its terminal, run the following code:
java -jar weka.jar
data through Weka Explorer:
preprocess
panel, click open file
, choose a data file from weka data folder
;R console
panel, type R scripts inside R console box
.data through Weka KnowledgeFlow:
Data mining processes
panel, click DataSources
to choose ArffLoader
for example, click it onto canvas;ArffLoader
to load a data fileScripting
panel, click RscriptExecutor
onto canvasoption
+ click ArffLoader
, select dataset
, then click RScript Executor
to link themRScript Executor
to type R script, orSettings
and select R Scripting
to use R console with weka's datairis.arff
with either Explorer or KnowledgeFlow;Plotting inside R Console
example aboveInstall wekaPython
tools
, open package manager
wekaPython
, select and click to installInstall Python libraries
Explorer
pro:
cos: can't save the process;
Experimenter
pro:
KnowledgeFlow
pro:
cos:
simpleCLI
pro: run similar tasks of what Explorer does using command line
cos: it can't access all functionalities of Weka API, Jython or Groovy scripting is recommended for this task.
Workbench
pro: it gathers all other interfaces together into one place
install Jython
and JFreeChart
library from Weka Package manager;
go to home directory's terminal, enter nano .bash_profile
inside .bash_profile
, add a line of code as below
export Weka_Data=User/Documents/Directory/Of/Your/Data
save and exit
inside terminal run source .bash_profile
Then, restart Weka, go to tools
and click Jython console
, and you can try those examples above
ClassAssigner
must be linked between ArffLoader
and TrainingSetMaker
or TestSetMaker
.relationNameForFilename
to False inside configuration of ArffSaver
.