Closed vividfog closed 4 months ago
Index.html updated with a new history chart, which shows up to 14 previous prediction snapshots. This should give a clearer picture of the movement of the predictions over time. Together with this, the model is now trained with all available data every time a prediction runs: continuous training. When --train and --predict are used together, the RF model is not saved to disk, as both now happen in-memory. Models can still be saved for numerical analysis etc.
This is auto-generated by GPT-4 based on discussion of various ideas, outline for a future session.
Quote:
Motivation
To enhance the interactivity and information richness of the Nordpool Spot Price Prediction eCharts visualization, we are implementing a feature that allows users to toggle the visibility of historical prediction lines. These lines represent past predictions and help users visualize the evolution of price forecasts. Each line's opacity will decrease as it goes further back in time, providing a clear visual distinction between recent and older predictions.
Plan Overview
Part 1: Database Schema and Data Insertion
SQL Schema
Data Insertion Logic
Part 2: Backend Data Preparation
Implement a backend service to fetch the last 4 snapshots from the database and format them as JSON.
Part 3: Frontend Implementation
HTML
JavaScript
Part 4: Testing
This plan includes all the details you need to enhance your chart with a new feature that improves the user's experience by providing context to the prediction data through historical lines. Make sure to adjust the database paths, JSON fetching logic, and eCharts configuration as per your project's setup.