A machine learning project that predicts the remaining range of an electric vehicle based on sensor inputs.
- Regression model (Random Forest)
- Interactive Streamlit app with advanced visualizations
- Direct input and slider options for parameters
- Gauges and efficiency metrics
- 3D visualization of relationships between variables
- Input: Battery voltage, current, temperature, SOC, speed, load
- Output: Estimated range in km
- Create and activate a virtual environment:
python -m venv venv
# On Windows:
venv\Scripts\activate
# On Unix/MacOS:
source venv/bin/activate- Install dependencies:
pip install -r requirements.txt- For enhanced visualizations, install Plotly:
pip install plotly- Generate sample data (if not already present):
python src/simulate_ev_range_data.py- Train the model:
python model/train_model.py- Run the interactive app:
streamlit run app/app.py- Choose between slider controls or direct numeric input
- Real-time prediction of EV range
- Visual battery and temperature gauges
- Parameter efficiency visualization
- Advanced 3D relationship plots and correlation heatmaps
- Reference values and optimal ranges
(Screenshots of the app would be displayed here)
python model/train_model.py