Question: I need help in python without using sklearn, only using pandas, numpy and matplotlib. I am very new to python and I need to define
I need help in python without using sklearn, only using pandas, numpy and matplotlib. I am very new to python and I need to define a linear, quadratic, cubic, and fourth model from the text file.
you will create a regression program and choose a model to predict the womens Olympic 100-meter race record time for year 2024. We will code the year of each race as we did in lecture 2.3.
A text file with the data is available for the years 1928 through 2008 when the Olympics were held. The first line of the text file indicates there are m lines of data and n number of features (in this case, one). You need to write a code to read data from the file. You can use packages, such as panda, to load the data.
W100MTimes.txt
19 1 28 12.2 32 11.9 36 11.5 48 11.9 52 11.5 56 11.5 60 11.0 64 11.4 68 11.0 72 11.07 76 11.08 80 11.06 84 10.97 88 10.54 92 10.82 96 10.94 100 11.12 104 10.93 108 10.78
######################################################################
# TODO: Write the code for reading data from file #
######################################################################
pass
######################################################################
# END OF YOUR CODE #
######################################################################
######################################################################
# TODO: Define the regression models #
######################################################################
pass
##############################################################################
# END OF YOUR CODE #
##############################################################################
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
