{"id":23063461,"url":"https://github.com/ashishpatel8736/emissions-predictor-using-mlr","last_synced_at":"2026-04-30T01:34:34.879Z","repository":{"id":264066314,"uuid":"892253495","full_name":"ashishpatel8736/Emissions-Predictor-using-MLR","owner":"ashishpatel8736","description":"CO2 Emissions Predictor is a machine learning project that uses a Multiple Linear Regression (MLR) model to predict the CO2 emissions of vehicles based on their specifications, such as engine size, cylinders, and fuel consumption.","archived":false,"fork":false,"pushed_at":"2024-11-28T14:20:08.000Z","size":406,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T08:13:58.179Z","etag":null,"topics":["machine-learning","multi-linear-regression","python"],"latest_commit_sha":null,"homepage":"https://emissions-mlr.streamlit.app/","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ashishpatel8736.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-21T19:18:31.000Z","updated_at":"2024-11-28T14:20:11.000Z","dependencies_parsed_at":"2025-02-08T21:40:30.308Z","dependency_job_id":"bba70c2f-6673-4235-9ea6-0235dd2b9d49","html_url":"https://github.com/ashishpatel8736/Emissions-Predictor-using-MLR","commit_stats":null,"previous_names":["ashishpatel8736/emissions-predictor-using-mlr"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ashishpatel8736/Emissions-Predictor-using-MLR","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashishpatel8736%2FEmissions-Predictor-using-MLR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashishpatel8736%2FEmissions-Predictor-using-MLR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashishpatel8736%2FEmissions-Predictor-using-MLR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashishpatel8736%2FEmissions-Predictor-using-MLR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashishpatel8736","download_url":"https://codeload.github.com/ashishpatel8736/Emissions-Predictor-using-MLR/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashishpatel8736%2FEmissions-Predictor-using-MLR/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32451348,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["machine-learning","multi-linear-regression","python"],"created_at":"2024-12-16T04:10:30.188Z","updated_at":"2026-04-30T01:34:34.839Z","avatar_url":"https://github.com/ashishpatel8736.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚗 Emissions Predictor Using Multiple Linear Regression (MLR)\n\n**Emissions Predictor Using MLR** is a machine learning application that uses a **Multiple Linear Regression (MLR)** model to predict carbon dioxide emissions (g/km) of a vehicle based on multiple features like engine size, fuel consumption, and other vehicle characteristics. This project demonstrates how to build, train, evaluate, and deploy a regression model using Python and Streamlit.\n\n![Emissions Predictor Banner](banner_md.jpeg)\n\n---\n\n## 🌟 Features\n- **Multiple Linear Regression (MLR) Model**: Accurate prediction of CO2 emissions using multiple features.\n- **Interactive User Interface**: Built using Streamlit for an easy-to-use experience.\n- **Real-Time Predictions**: Adjust features like engine size and fuel consumption to get instant CO2 emission predictions.\n- **Data Visualization**: Displays visualizations to understand the relationships between vehicle features and CO2 emissions.\n\n---\n\n## 🛠️ Tech Stack\n- **Python**: Core programming language.\n- **Streamlit**: Framework for creating the interactive web application.\n- **Scikit-learn**: Machine learning library used for training the MLR model.\n- **Matplotlib**: For data visualization.\n- **Pandas**: For data manipulation and analysis.\n\n---\n\n## 🚀 How It Works\n1. **Input Features**: Use the sliders to select features like engine size and fuel consumption.\n2. **Real-Time Prediction**: The app instantly predicts the CO2 emissions based on the input.\n3. **Visualize Data**: See scatterplots and other visualizations to understand the relationship between features and emissions.\n\n---\n## 📂 Repository Structure\n```plaintext\n\n📦 Emissions-Predictor-using-MLR\n\n├──  app.py \n├──  mlr_model.pkl \n├──  ridge_tuned_model.pkl\n├──  scaler.pkl\n├──  CO2 Emissions Predictor using MLR.ipynb\n├──  README.md                 \n├──  vehicle_data.csv \n├──  requirements.txt           \n├──  LICENSE                   \n├──  banner_md.jpeg             \n├──  icons8-github-50.png\n```\n\n---\n\n## 🖥️ Installation and Usage\n\n### Prerequisites\n- Python 3.8 or higher installed on your machine.\n\n### Setup Instructions\n\n### Step 1: Clone the Repository\n```bash\ngit clone https://github.com/ashishpatel8736/Emissions-Predictor-using-MLR.git\n   cd CO2-Emissions-Predictor\n```\n\n### Step 2: Install Dependencies\nEnsure you have Python installed. Run the following to install the required libraries:\n```bash\npip install -r requirements.txt\n\n```\n\n### Step 3: Start the Application\nRun the Streamlit app:\n```bash\nstreamlit run app.py\n```\n\n### Step 4: Open your browser and go to:\n\n```bash\nhttp://localhost:8501\n\n```\n\n\n## 📊 Sample Data\nHere is an example of the dataset used for training the SLR model:\n\n| Engine Size (L) | Fuel Consumption (L/100km)| CO2 Emissions (g/km) |\n|------------------|----------------------|----------------------|\n| 1.5              | 6.5                  | 145                  |\n| 2.0              | 7.0                  | 185                  |\n| 3.0              | 8.5                  | 250                  |\n| 4.0              | 9.0                  | 320                  |\n| 5.0              | 10.5                 | 400                  |\n\n\n---\n\n## 🎯 Future Enhancements\n- Add support for more input features, such as vehicle weight or fuel type.\n- Implement model optimization techniques like cross-validation for better accuracy.\n- Add support for uploading custom datasets.\n- Provide downloadable results and summary reports.\n\n\n\n\n---\n\n\n## 🤝 Contributing\nContributions are welcome! If you'd like to contribute, please:\n\n1. **Fork the repository**.\n2. **Create a feature branch**.\n3. **Submit a pull request**.\n\n\n\n## 🙌 Acknowledgements\n- **Scikit-learn** for providing robust machine learning tools.\n- **Streamlit** for enabling easy deployment of ML apps.\n- **Pandas and Matplotlib** for data manipulation and visualization.\n\n---\n## 🛡️ License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---\n\n## 👤 Author  \n**Ashish Patel**  \n[![GitHub](icons8-github-50.png)](https://github.com/ashishpatel8736) | [![LinkedIn](https://img.icons8.com/ios-filled/50/0077b5/linkedin.png)](https://www.linkedin.com/in/ashishpatel8736)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashishpatel8736%2Femissions-predictor-using-mlr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashishpatel8736%2Femissions-predictor-using-mlr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashishpatel8736%2Femissions-predictor-using-mlr/lists"}