Use the Auto MPG dataset auto-mpg.data, available at https://archive.ics.uci.edu/ml/datasets/Auto+MPG a) [Marks: 5%] Drop the car name...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Use the Auto MPG dataset auto-mpg.data, available at https://archive.ics.uci.edu/ml/datasets/Auto+MPG a) [Marks: 5%] Drop the car name attribute. b) [Marks: 5%] Split the data into 80% training and 20% testing sets. c) [Marks: 10%] Attribute horsepower has 6 missing values. Fill these up with the average horsepower for the respective number of cylinders. d) [Marks: 10% ] Train a poor model to predict mpg in such a way that the model intentionally overfits the training data. e) [Marks: 10% ] Train a better model that does not overfit the training data. f) [Marks: 10% ] Generate a graph showing both models for d) and e); the graph should have in the x-axis the feature that has the highest correlation with the mpg label, and in the y-axis the mpg. g) [Marks: 10%] Then test both models d) and e) using the testing set of b), and report the MSE for both models d) and e). Submit: [1] your code in a file named auto.py, [2] the graph in a file called auto.jpeg, and [3] the MSEs for models d) and e) as a comment at the very top of your file auto.py. Use the Auto MPG dataset auto-mpg.data, available at https://archive.ics.uci.edu/ml/datasets/Auto+MPG a) [Marks: 5%] Drop the car name attribute. b) [Marks: 5%] Split the data into 80% training and 20% testing sets. c) [Marks: 10%] Attribute horsepower has 6 missing values. Fill these up with the average horsepower for the respective number of cylinders. d) [Marks: 10% ] Train a poor model to predict mpg in such a way that the model intentionally overfits the training data. e) [Marks: 10% ] Train a better model that does not overfit the training data. f) [Marks: 10% ] Generate a graph showing both models for d) and e); the graph should have in the x-axis the feature that has the highest correlation with the mpg label, and in the y-axis the mpg. g) [Marks: 10%] Then test both models d) and e) using the testing set of b), and report the MSE for both models d) and e). Submit: [1] your code in a file named auto.py, [2] the graph in a file called auto.jpeg, and [3] the MSEs for models d) and e) as a comment at the very top of your file auto.py.
Expert Answer:
Posted Date:
Students also viewed these programming questions
-
A projectile is fired in such a way that its horizontal range is equal to three times its maximum height. What is the angle of projection?
-
A ball is thrown in such a way that it does not spin about its own axis. Does this mean that the angular momentum is zero about an arbitrary origin? Explain.
-
A die is loaded in such a way that the probabilities of getting 1, 2, 3, 4, 5, and 6 are 1 / 2, 1/6,1 / 12,1 / 12, and 1/12, respectively.
-
Metlock Advertising Agency Inc. was founded in January 2000. Presented below are adjusted and unadjusted trial balances as at December 31, 2023 Cash Accounts receivable Supplies Prepaid insurance...
-
Provide two examples of transactions that begin and end at a particular point in time and two examples of continuous transactions.
-
Denver Office Equipment manufactures and sells metal shelving. It began operations on January 1, 2011. Costs incurred for 2011 are as follows (V stands for variable; F stands for fixed): Direct...
-
Fashion Fabrics makes custom handbags and accessories for high-end clothing boutiques. Record summary journal entries for each of the following transactions that took place during the month of...
-
In the Low Knock Oil Company blending problem, it was assumed that one barrel of crude would result in one barrel of gasoline as the final product. In processing one barrel of crude, a typical...
-
15.A ray of light is incident on a slab as shown in figure. The refractive index of medium of slab changes as =1+ y. The angle made by ray with x-axis at y = 2 is 30 0 air 2
-
Chris and Stefani Watanabe live with their two boys at 1400 Victoria Lane, Riverside, CA 92501. Chris is an accountant who has his own accounting practice. Stefani is an elementary school teacher....
-
Physicians' Hospital has the following balances on December 31, 2024, before any adjustment: Accounts Receivable = $58,000; Allowance for Uncollectible Accounts = $1,200 (credit). On December 31,...
-
Linda's income statement for the year ended 31 March 2018 is as follows: Notes: (a) Linda draws a salary of 200 per week from th e business. This is included in the wages and salaries figure. (b)...
-
Melissa owns a house which she lets to tenants. The house was let througho ut tax year 2017-18 at a rent of 600 per month . Her allowable expenditure in 2017-18 was 900 and she had property losses...
-
Ivy begins trading as a farmer on 1 January 201 5, making up annual accounts to 31 December. Her adjusted trading profits/(losses) in the opening years are as follows: (a) (b) year to 31 December...
-
Brian and Danny are civil partners. They were both born in 1974 and they both claim the basic personal allowance for 2017 -18. Brian's total income for 201 7-18 is 25,000 and Danny's total income for...
-
Stephanie (who is not a Scottish taxpayer) has the following income in 2017-18: Income from self-employment 28,880 Rents received 15,730 Bank interest 200 Dividends 250 Compute Stephanie's income tax...
-
Working Capital - higher numbers are better Current ratio - higher numbers are better Inventory turnover - higher numbers are better Days in inventory - fewer days are better Accounts receivable...
-
Write a program to move a signed number from smaller register to bigger register. Hint: movzx ax, bl Topic: Data Related Operators and Directives in assembly language
-
You are provided with the worksheet for Norman Pty Ltd for the year ended 30 June 2019. The adjustments have already been made and the worksheet begins with the adjusted trial balance. Assume all...
-
The unadjusted trial balance of Innovative Computers Pty Ltd on 30 June 2019 is presented below. The following additional information is available. 1. The inventories as of 30 June 2019 were as...
-
Basic Chemicals Ltd produces a highly flammable chemical product. The company experienced a flood on 1 April 2019 that destroyed its entire work in process inventory but did not affect the raw...
Study smarter with the SolutionInn App