I'm working on a TimeSeries model, and need to analyze the anomalies of the data collection. To do that, I'm using DetectSpikeBySsa. But the thing is, what I need now it is to retrain the model for the future data.
I've already search for documentation, and I only got about other types of model, like LinearRegression.
// Pipeline that I used
var pipeline = context.Transforms.DetectSpikeBySsa(
outputColumnName: nameof(DataPredicted.Prediction),
inputColumnName: nameof(DataPoints.value),
confidence: 99,
pvalueHistoryLength: data.Count() / numberOfDays,
trainingWindowSize: data.Count(),
seasonalityWindowSize: data.Count() / numberOfDays);
// Train and Save the model locally
ITransformer trainedModel = pipeline.Fit(dataComplete);
context.Model.Save(trainedModel, dataComplete.Schema, file);
// Loading the trained model in other instance
ITransformer trainedModel = context.Model.Load(file, out var modelInputSquema);
// After this I would like to retrain the model and analyze the differences between before and after.
The trained model is working well with the old data, but of course we need to retrain the model using the new data.
So, the questions are:
- How to get the parameters of the trained model (DetectSpikeBySsa)?
- How to retrain the model and compare the old one?
Thanks a lot! Any information will be appreciated.