Senin, 11 September 2023

Calculation of Naive Bayes Classification (Part 2) Training Data Test Phase

After calculating each probability, the next step is to test the training data.

  • Training Data Test Phase


Information :
  • The data above is the data that we have obtained from the previous training data
  • What is calculated first is the part of P (Remarks | Roadworthy)
  • P(Remarks|Easy to Road) is the calculation for the criteria Description|Easy to Go * Driver criteria = Healthy * Lights criteria = On * Tire criteria = New * Machine criteria = New
  • = 0.6 * (0.555556 * 0.666667 * 0.555556 * 0.44444) and the result is below
  • This stage is carried out for all training data

So the results obtained are as follows :


This stage is also carried out for criteria P (Remarks|Not Roadworthy), so the results are as follows :


The next step is to enter the results of criteria P (Remarks|Road Worthy) and P criteria (Remarks|Not Roadworthy) into a table.


From the data above, we compare the results of Roadworthy and Roadworthy criteria and select the largest value, so we get the following results :


From the data above it can be concluded :
  • The data that corresponds to the training data is 13 data
  • Data that does not match the training data are 2 data

Tidak ada komentar:

Posting Komentar