Mistakes easily made when using KnowledgeFlow
Introduction#
Weka KnowledgeFlow(KF) is a great interface to use. However, Weka manual does not cover every little details of using KF. Here would be a place for collecting those little tricks or details I learnt from those errors I did or will make as time goes. Many thanks to people at Wekalist (especially Mark Hall, Eibe Frank) for building a wonderful learning environment for Weka!
Remarks#
TrainingSetMaker and TestSetMaker
- a
ClassAssigner
must be linked betweenArffLoader
andTrainingSetMaker
orTestSetMaker
.
ArffSaver
- In order to save dataset into arff file successfully, it is safer to set
relationNameForFilename
to False inside configuration ofArffSaver
.
How to use TimeSeriesForecasting in KnowledgeFlow?
- Open knowledgeFlow, load dataset with ArffLoader
- go to setting, check time series forecasting perspective, right-click ArffLoader to send to all perspective
- go to time series forecasting perspective to set up a model
- run the model and copy the model to clipboard
- ctrl + v, and click to paste model to Data mining process canvas
- save prediction along with original data with ArffSaver
How to open KnowledgeFlow file directly from terminal
- add the following function into
.bash_profile
, save and exit
function wekaflstart() {
export R_HOME=/Library/Frameworks/R.framework/Resources
java -Xss10M -Xmx4096M -cp :weka.jar weka.gui.knowledgeflow.KnowledgeFlow “$1”
}
- inside a directory with a
weka.jar
file, open its terminal, runwekastart "path to a knowledgeflow file"