Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use Python to implement functions for above descriptions of Standardization, Error ( cost function ) , Gradient Partial Derivatives and Updating m and b using

Use Python to implement functions for above descriptions of Standardization, Error (cost
function), Gradient Partial Derivatives and Updating m and b using a learning rate
initialize m=0.5,b=0 and \alpha =0.0001
Show the datapoints from the student marks data set in a figure where the x-axis is midterm
mark and the y-axis is the final mark
Show the initial regression line on the same figure (m=0.5,b=0)
Update b and m 100 times, and create another figure showing the regression line and datapoints
in the same figure
Create a new graph showing Error at each iteration (from the initial point to iteration 100).
the x-axis is the iteration number and the y-axis is the Error
Update b and m for 2000 iterations (each update is one iteration), and create another graph
create a new graph showing Error at each iteration (from the initial point to iteration 2000).
x-axis is the iteration number and the y-axis is the Error
verify your results using Python API
perform the above steps once with standardized features and once without Standardization
3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions

Question

Explain the concept of careers and career paths.

Answered: 1 week ago