Lab 3
Lab 3
INSTALLATION INSTRUCTIONS
[VIDEO Tutorial]:
1
2. Configuration of the jar files dalam Eclispe and run the WeatherForecast.java. Please
follow below step by step:
Step 2: Unzip the WeatherForecast.zip into your own workspace for example
C:\Users\Acer\eclipse-workspace
Step 3: In the eclipse, Click Open project> Import Source> Select Directory>
C:\Users\Acer\eclipse-workspace\WeatherForecast and Click Folder WeatherForecast
> Finish.
2
Step 4.1: Click on WeatherForecast > Double click pom.xml and observe the weka
3.8.0 stable [https://mvnrepository.com/artifact/nz.ac.waikato.cms.weka/weka-stable]
statement as below in the pom.xml file
*Please take note that updating dependencies or library of most stable 3.8.0 weka jar can
be refered as the following:
[ https://mvnrepository.com/artifact/nz.ac.waikato.cms.weka/weka-stable/3.8.4]
Maven is pom.xml is a technology that can update and resolve dependencies/library
easily in Java programming.
Hence weka 3.8.0 weka jar files will be synchronized using Maven project & update
maven
Step 4.4: In the Maven Update Project Dialog Box > Click WeatherForecast> OK
3
Step 4.6: Observe the download sources and Javadoc.
Step 4.2
Step 4.1
Step 4.3
Step 4.5
4
Step 5.2: Please Click on WeatherForecast2.java and click on button at the top right
conner . Please observe all important functions namely readdataFile, classify, calculate
accuracy, crossvalidation and main as the following:
5
Step 6: Observe the model and prediction output the prediction of J48 (b) Part Decision
List (c) Decision Table and (d) Decision Stump as the following:
Model
Accuracy
Accuracy
Accuracy
Accuracy
(a)
J48 (b) Part Decision List (c) Decision Table and (d) Decision Stump model and prediction
outputs and accuracies respectively.
(a) Please change the weather.arff dataset using two other datasets in the weka 3-8-4-
azulzulu-windows> data and used other two type of machine learning/classifier methods
such as KNN dan Neural Network classifiers.
6
(b) Upload your sourcecode and the screenshot of model file and output results for the new
datasets.
(10 marks)
(c) Please show the table of accuracy (% percentage) showing the differences of performance
as the table below:
Dataset1
Dataset 2
(5 marks)
Prepared by
AP Dr Siti Norul Huda Sh. Abdullah.
Dr Kerk Yi Wen.
TC2013 Instructor