WeatherPrediction is a weather forecasting app powered by machine learning that predicts temperatures for Global and London locations. The app predicts the average temperature between the maximum and minimum values for a given day.
🌍 Global: Predicts the average global temperature for a specific date.
🏙️ London: Predicts the average temperature within London for the selected date.
You can access the app here: WeatherPrediction App
- Multivariate Polynomial Regression
- Global Model Accuracy: 90% (Error rate: 12%)
- London Model Accuracy: 72% (Error rate: 26%)
For more details, check out the Jupyter Notebook GitHub Repository.

- Languages: JavaScript, CSS, HTML
- Frameworks: React, Bootstrap
- Pyodide & WebAssembly - Allows running Python and ML libraries natively in the browser.
- Python & Scikit-learn - Robust libraries for machine learning.
The machine learning model is integrated into the app using Pyodide (a Python interpreter for the browser) and WebAssembly. This combination allows the app to run the model with native capabilities directly in the browser.
The integration flow includes:
- Web-worker loads Pyodide and required Python libraries.
- The selected date is passed to either the Global or London temperature prediction model.

- Web-worker: Communicates between the frontend and the ML backend.
- It processes:
- Loading Pyodide
- Passing the selected date for Global or London temperature predictions..
