COMS W4721: Machine Learning - Homework 2, Spring 2019 - Solution
VerifiedAdded on 2023/04/23
|11
|1171
|139
Homework Assignment
AI Summary
This document presents a solution to a homework assignment related to Machine Learning, specifically focusing on Naive Bayes and K-Nearest Neighbors (K-NN) classifiers. The solution includes a theoretical explanation of the Naive Bayes classifier, including formulas for prior and posterior probabilities, and a discussion of parameter estimation using Gamma priors. It also covers the implementation of the Naive Bayes classifier in Python. Furthermore, the solution discusses the implementation of the K-NN classifier, including finding the optimal value of K and plotting prediction accuracy. The document further delves into the implementation of the steepest ascent algorithm for logistic regression and the application of Newton's method. The homework addresses topics such as prediction model implementation, parameter tuning, and evaluation of classification performance. The document also includes a 2X2 table prediction plot on the y values.
1 out of 11













