[Solved] CPE695-Homework1 -Applied Machine Learning

$25

File Name: CPE695-Homework1_-Applied_Machine_Learning.zip
File Size: 395.64 KB

SKU: [Solved] CPE695-Homework1 -Applied Machine Learning Category: Tag:
5/5 - (1 vote)

Please answer the following questions related to Machine Learning concepts:

  1. [18 points] Explain the following concepts:
    • supervised learning,
    • unsupervised learning,
    • online learning,
    • batch learning, 5) model-based learning, 6) instance-based learning.
  1. [6 points] What is overfitting of training data? What is regularization?
  2. [6 points] Prove Bayes Theorem.

Programming Problem:

  1. [40 points] In this problem, we write a program to find the coefficients for a linear regression model. You need to use Python to implement the following methods of finding the coefficients:
    • Normal equation, and
    • Gradient descent (batch or stochastic mode)
      1. Print the cost function vs. iterations
      2. Discuss how you choose the right alpha (learning rate). For example, you can plot cost function vs. learning rate to determine the best learning rate.

A simulated dataset will be provided, you job is to find the coefficients that can accurately estimate the true coefficients. Your solution should be 2 for intercept and 3, 4, 5 for the three coefficients.

Please do NOT use the fit() function of the Scikit-Learn library in your program. (You need to implement the Gradient Descent algorithm in your code.)

Simulated data is given as follows in Python:

import numpy as np x1 = 2 * np.random.rand(100, 1) x2 = 2 * np.random.rand(100, 1) x3 = 2 * np.random.rand(100, 1) y = 3 * x1 + 4 * x2 + 5 * x3 + np.random.randn(100, 1) + 2

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] CPE695-Homework1 -Applied Machine Learning
$25