Hi Kalyan A,
Thank you for reaching out to Microsoft Q & A forum.
You're using the SSA (Singular Spectrum Analysis) algorithm in ML.NET to predict future Nifty Bank high prices based on historical data. Your current parameters are:
Window Size = 120 (number of past observations used for each prediction)
series Length = 250 (total length of the time series considered)
train Size = 250 (amount of data used for training)
horizon = 60 (number of future days being predicted)
Suggested Improvements:
1.Window Size (120) – This determines how much past data influences the forecast. A smaller value (e.g., 80–100) may be better for short-term trends, while a larger one (e.g., 150–200) captures long-term patterns.
2.Series Length (250) – Ideally, this should be at least 1.5x–3x the window size to capture historical trends effectively. Since your total data is 250, reducing this to around 180–220 could improve performance.
3.Training Size (250) – Since you’re using the full dataset for training, testing with a slightly smaller value (200–230) may improve generalization.
4.Horizon (60) – Predicting 60 days ahead can be challenging, as accuracy tends to decrease over longer timeframes. You might get better results by first testing a 15–30 day forecast, then gradually increasing it.
Recommended Adjustments:
Window Size: 80–150
Series Length: 180–220
Training Size: 200–230
Horizon: Start with 15–30 days, then scale up to 60 if results remain accurate
Please feel free to contact us if you have any additional questions.
If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community.