You are on page 1of 32

MEE 3033- ARTIFICIAL INTELLIGENCE

ASSIGNMENT:
INDIVIDUAL ASSIGNMENT (CLASSIFICATION)

GROUP:
A

LECTURER’S NAME:
PROFESOR MADYA DR. BAHBIBI BINTI RAHMATULLAH

PREPARED BY:
NAME MATRIC NO.

NURFARAH SYAZREEN BINTI ABDUL HAMID D20211099681


1. PROCESS DO THE REPOSTORY AND FOLDER

- Replace the data golf to another folder

- Drag Data Golf to design


- Connect to result output

- Result Data golf ( there no missing data)


- Result data golf of statistic
- Statistic help to calculate. And to make sure have done filtering correctly and there are no
red- flag in the another attributes.

- Save the process – import data


2. ANSWER QUESTIONS

* CREATING DECISION TREE

-drag filter example for filter the missing value

-but there’s data don’t have any missing value.

- here I will differentiate using filter that set to ‘is not missing’ and value tempeture.

- Now, I’m trying to put ‘outlook’ is missing value to look the result.
- Run the process

- The result if I pick ‘ is not missing value’


- The result of statistics after using filter
- Statistic help to calculate. And to make sure have done filtering correctly and there are no
red- flag in the another attributes.

- But if I put the filter is temperature is > 50 to look the result.


- The result that filter with temperature > 50

There’s no different result that using between filter temperature is >50 and outlook is not
missing.

3. MAKE A DECISION TREE

- Apply the decision tree (using filter outlook is missing )


- Save the process

- Result decision tree ( outlook) & (temperature).


- in this decision tree that the most important variable to split on OUTLOOK.
Both (TEMPERATURE & OUTLOOK) of the result is same.

- Explanation description to decision tree (outlook) & (temperature)

- Copy the process ( to easy the next process)


- Copy the process to store the next process

- Rename to – apply the model (what the process I copy)


- The data where come from and can look specific.

4. APPLY THE MODEL

- drag the ‘apply model’ into design.


-Remove the filter – for get raw data (result without filter)

- ‘Multiply‘ operator come from, the data to apply model


- Result after multiply and apply model
- ‘no’ , ‘ no’ – good the prediction was correct

- Result statistic
RESULT APPLY MODEL

1. three special attributes /prediction attributes which are confidence for no, prediction (play).

2.

5. TESTING THE MODEL

- Put ‘filter example’ and ‘performance’ operator.


- Here have something wrong with connector at filter example then, I resolve with ‘quick
solve’.
- Restore the process

- The design with apply model, performance, decision tree.


- The result performance vector (accuracy)
- The result of accuracy is 100.00%

- Result description to performance vector and save process


- Replace the decision tree operator with a K-NN operator
- I will differentiate result with K-NN operator and decision operator

- The result of replace with K-NN


- The result accuracy is 64.59%

The differentiate, of result by using data decision tree is 100% but after replace it to K-NN the
result is 64.29%. function of K-NN operator comparing an unknown example. The result getting
decrease if using K-NN operator.
- The result of descriptions

6. VALIDATING A MODEL

- Using cross validation operator

- Cross validation come from by copying or example selection of the test and training subsets
is done.
- The example set can get at TES port and connect to performance operator.
- Per functions for multiple iterations in cross validation. Per port to build average of the
different model performance.
- Have two window which is for training and test

- Drag the decision tree, apply model, performance – this is for to test and training the data
- Here I create in the training window and model.
- So then I need to put information to apply model operator.
- Parameters of cross validation

- Run the process validations (outlook)


- Result descriptions for validation

- Change the input ‘per’ at cross validation to result.


- Result of validation (accuracy)
- The result is a confusion matrix = 45.00% +/-43.78% (micro average : 50.00%)
- Accuracy was 45%, there have 14 example in the golf data set.
- The lower this number, this is a critical ( need evaluating model).
- Stable model, that is has high enough accuracy ( smaller range).
- Pred.no stand for predicted no, pred.yes stand for prediction yes.
- Formula to know its true or no.
- 6/(6+4)= 60.00% - hit

- Result of validation (description)


- Store the process

7. MOD

- Choose the ‘break point after’ to cross validations


- Cross validation come from by copying or example selection of the test and training subsets
is done.
- The example set can get at TES port and connect to performance operator.
- Per functions for multiple iterations in cross validation. Per port to build average of the
different model performance.
- Result data after run with ‘ break point after’

- Result statistic after run with ‘break point after’.


- Using mod website

- This is what answer that we want


- Store the process

- Put the ‘COMPARE ROC’ operator.


- Result data by using compare roc

- Result statistic by using compare roc


- Insert the process at inside compare roc (decision tree, naïve bayes, K-NN, rules
introduction, random forest)

- Result
- We run with cross validation and multiply data

- Result roc
FOMULAR:

ROC = RECEIVER OPERATOR CHARACTISTICS

HIT RATE FOMULAR = TRP = POSITIVE CORRECTLY CLASSIFED / TOTAL POSITIVE =(RECALL,
SENSITIVTY)

TPR = 1 /(1+4)= TRUE (HIT RATE)

FALSE ALARM RATE = NEGATIVES INCORRECTLY CLASSIFIED/ TOTAL NAGATIVES =( FALL OUT)

FPR = 3/(3+5) = FALSE (FALSE ALRAM RATE)

8. PREDICT CLASS
- Connect to result output

- The result

You might also like