编程代写 COMP90049 Introduction to Machine Learning (Semester 1, 2022)

School of Computing and Information Systems The University of Melbourne
COMP90049 Introduction to Machine Learning (Semester 1, 2022)
1. What is optimization? What is a “loss function”?
2. Given the following dataset, build a Naïve Bayes model for the given training instances.

Copyright By PowCoder代写 加微信 powcoder

3. Using the Naïve Bayes model that you developed in question 2, classify the given test instances.
(i). No smoothing.
(ii). Using the “epsilon” smoothing method.
(iii). Using “Laplace” smoothing (𝛼 = 1)
4. For the following set of classification problems, we want to design a Naive Bayes classification model.
A. You want to classify a set of images of animals in to ‘cats’, ‘dogs’, and ‘others’.
B. You want to classify whether each customer will purchase a product, given all the products (s)he has bought previously.
Answer the following questions for each problem:
(i). what are the instances, what are the features (and values)?
(ii). explain which distributions you would choose to model the observations, and
(iii). explain the significance of the Naive Bayes assumption.
5. [OPTIONAL] Given the following dataset,
(i). Build a Naïve Bayes model for the given training instances (1-4, above the line).
(ii). Estimate the probability of the test instance (5, below the line)
𝑋! ( 𝐻 𝑒 𝑎 𝑑 𝑎 𝑐 h 𝑒 ) 𝑋! ( 𝑆 𝑜 𝑟 𝑒 )
0.8 0.4 0 0.8 0.4 0.4
0.4 0 0.8 0.8
𝑋! ( 𝑇 𝑒 𝑚 𝑝 )
39.5 37.8 37.8 37.8 37.8
Y ( D i a g n o s i s )
Flu Cold Flu Cold ? (Flu)

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com