Answer to Question #215517 in Python for Hamza

Question #215517
Q2) Do work for both parts (10)
a) Write Python code for baysean learning to dataset as given in Q1 theory paper .Assume test
data=33% and Dataset contains integers values in dataset.
b) Classify following example Fast yes or no using baysean classification algorithm
Engine = Small , SC/Turbo= Yes , Weight=Light , Fuel Eco= Good
1
Expert's answer
2021-07-09T03:46:07-0400
  • Bayes' theorem allows you to update the predicted probabilities of an event by incorporating new information.
  • Bayes' theorem was named after 18th-century mathematician Thomas Bayes.
  • It is often employed in finance in updating risk evaluation.


"P(A \\backslash B) = \\dfrac{P(B \\backslash A) P(A)}{P(B)}"


Here you can see the way how to write program for your question:

https://machinelearningmastery.com/naive-bayes-classifier-scratch-python/

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS