Predicting Car MPG

****You are given a dataset of car attributes and their gas consumption in MPG (Mile Per Gallon). The task is to build a regression model that can predict a car’s MPG given its attributes.

****Car MPG dataset:

The dataset consists of 393 car models, their attributes and their MPG. The columns in the data set are as follows:

1. Car Model Name

2. MPG - Miles Per Gallon. This is the value that we want to predict

3. Number of cylinders

4. Engine Displacement

5. Engine Horse Power

6. Car Weight

7. Acceleration (time needed to reach a speed of 60 miles/hour)

8. Model Year

9. Origin


****Create a Jupyter Notebook that shows how you do the following in python:

1. Load the data from the csv file using Pandas

2. Preview/print the top 10 rows of the data

3. Create the Features matrix (columns 3-9 above – i.e. exclude the model_name and the mpg


4. Create the Labels vector (the mpg column)

5. Plot the relationship between each of the features and the label mpg on a scatter chart. This will be a total of 7 charts.

6. Normalize the features using the StandardScaler class of the [login to view URL] package

7. Split the data into training and test data using the cross_validation class of sklearn

8. Train a regression model on the training subset using the SGDRegressor class of the

sklearn.linear_models package. Set the number of iterations of the learner to be 500 iterations.

Perform the training as follows:

 Train a model using one feature at a time. For example, train a model using the cylinders

feature only, then train a model using the displacement feature only, and so on.

 Then, train a model using all the features altogether.

9. For each of the models trained in step 8, apply the model to the test subset and then compute the r2_score, the mean_squared_error, and the mean_absolute_error scores for the predictions of each model trained above.

10. Train a model using all features for 500 iterations while setting the regularization type (penalty) to ‘l1’ instead of the default ‘l2’. Apply the model to the test data and compute the evaluation metrics as in step 9.

11. Train a model using all features for 500 iterations with ‘l2’ regularization and an initial learning rate (eta0) set to 10.0. Compute the evaluation metrics as in step 9.

Квалификация: Machine Learning (ML), Python

Показать больше sample car mechanics flyer, cross sectional diagrams house, edit mpg, car wash brochure sample, print ads enterprise car rental, free web car design, attach banner car, car banner, article car sales, text editor column options, car community site, car articles, flash car game actionscript, car cross promotion, car file csv, arrange width column cross tab report, column layout cross browser blueprint, car mpg list csv

О работодателе:
( 2 отзыв(-а, -ов) ) adfsdffas, United States

ID проекта: #23911658



Hello, ‌Hope you doing well.I have checked all your requirements and we able to do this and deliver in time.I have 5 years of experience in these types of work. So, I believe we can do that work with your support. ‌Reg Больше

$50 USD за 4 дней(-я)
(10 отзывов(-а))

4 фрилансеров(-а) в среднем готовы выполнить эту работу за $74


My profile is as follows:- 4 years of experience in statistical analysis,data science,machine learning and artificial intelligence solving complex problems - Proficient in R programming  , Python, SQL,Matlab ; Hands o Больше

$200 USD за 3 дней(-я)
(41 отзывов(-а))

I am a Machine learning and deep learning Enthusiast who have a keen interest to use them for real-world problems. Have good knowledge of machine learning algorithms like logistics regression, support vector, random fo Больше

$20 USD за 7 дней(-я)
(0 отзывов(-а))

I have 4+ years of experience in data science. I have studied the requirement in detail, and can create the required models using Python's sklearn library. I will deliver a Jupyter notebook with all the required graphs Больше

$25 USD за 2 дней(-я)
(0 отзывов(-а))