-
Notifications
You must be signed in to change notification settings - Fork 0
kmollard/353-Project
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
2. gas_prices.csv for gas prices
3. IEA-EV-dataEV-salesCarsHistorical.csv for EV sales
1. fuel.py for Fuel Consumption Analysis
2. gas.py for Fuel Cost Analysis
3. ev.py for EV Analysis
4. correlation.ipynb for Fuel Consumption vs EV Sales correlation check
Required Libraries:
numpy, pandas, matplotlib.pyplot, statsmodels.api, and sklearn
Specific modules from sklearn include:
model_selection.train_test_split
linear_model.LinearRegression
preprocessing.PolynomialFeatures
neighbors.KNeighborsClassifier
neighbors.KNeighborsRegressionn
pipeline.make_pipeline
metrics.r2_score
metrics.mean_squared_error
The following modules were explored, but not used in the final results:
statsmodels.nonparametric.smoothers_lowess.lowess
sklearn.ensemble.RandomForestRegressor
sklearn.neural_network.MLPRegressor
After cloning the repo, simply run the python files from the project directory to go through the data analysis of the report. These files were run with Python 3.9.12 and Python 3.11.1
Example for fuel consumption:
''..\project> python fuel.py''
One exception to this is the correlations.ipynb to be run and explored in a notebook environment
Each separate python file produces the appropriate plots for each country.
Plots are stored in their respective folders within the plots directory
Example for fuel consumption:
Each country (or the World) plot is stored in the plots/consumption folder
About
Computational Data Science Project - Country Fuel and EV Data Analysis
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published