Find optimal coefficient by using gradient descent algorithm

Assignment Help Data Structure & Algorithms
Reference no: EM133896982

Assignment:

Implementation of Gradient Descent with MNIST data

For Task 2, we will use the same data as Task 1. However, we will find the optimal coefficients by using "Gradient Descent" algorithm. Then, we will compare with the solution that we found in Task 1.

The procedure of Task 2 is the almost same as Task 1, but need to implement "Gradient Descent" algorithm, instead of a least-square minimization based solution of single line equation as ((X'X)^(-1)X'y).

For the Gradient Descent algorithm, please follow the procedure:

1. Set the initial coefficient to zeros (can be any random values though) - Think of what the dimension of the coefficient vector is?

2. Determine hyper-parameters such as learning rate (α) and iteration numbers (k).

3. Run "gradient descent" algorithm with the hyper-parameters and check "Learning Curve" as shown: * Learning curve shows whether it converges or not. X-axis shows the number of iterations, while y-axis shows cost (J). * Learning curve must be showing as "converged", otherwise the solution may be not good.

4. Display the optimal coefficients (denoted by b_est)

5. Classify test data (MNIST_test.csv) with a threshold of 0.5 as described below: - y_pred = X_test * b_est - if y_pred > 0.5, class 1, otherwise 0

6. Display the accuracy

7. Display the aggregate difference between b_opt and b_est as defined below: - sum(abs(b_opt - b_est)

Reference no: EM133896982

Questions Cloud

Identify two aspects of external labour supply : Identify two aspects of external labour supply relevant to your organization's workforce requirement and based on organization's industry or skill requirements.
Appraise the impact of strategic workforce planning : Appraise the impact of strategic workforce planning on optimizing healthcare service delivery, considering the link between macro-policy and micro-outcomes
Overview human service syllabus : Evaluate the strengths of the syllabus by pointing out at least four effective features of the syllabus. Use Learning Resources to support your evaluation.
What topics would be featured in your curriculum : What topics would be featured in your curriculum? What might be some resources / tools you would use? What kinds of activities would be part of the course?
Find optimal coefficient by using gradient descent algorithm : For Task 2, we will use the same data as Task 1. However, we will find the optimal coefficients by using "Gradient Descent" algorithm.
List the documents that inform project quality management : List the documents that inform project quality management. For each document, explain how it informs project quality management.
Identify three questions that the customer should be asked : Identify three questions that the customer should be asked to ascertain if they have special dietary requirements.
Social learning theory : According to social learning theory what is the key to the development of authoritarian personalities and social dominance orientation?
Identify positive and negative impact on social discourse : Issues of censorship and accuracy of algorithms have been raised, as well as concern over fact versus truth has entered the public discourse.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd