This project uses the ‘scikit-learn’ library to train a machine learning model using linear regression to predict CO2 emissions based on engine size, with a simple interface created using Streamlit for user interaction.
- Python: >= 3.11
- Poetry: Install
Install dependencies using Poetry:
poetry install- Activate the virtual environment:
Invoke-Expression(poetry env activate)- Train the model using the following command:
python src/train.py- Start the Streamlit app using the following command:
streamlit run src/main.py