Revize 74bb2a59
Přidáno uživatelem Roman Kalivoda před více než 3 roky(ů)
Server/ServerApp/Predictor/PredictionController.cs | ||
---|---|---|
171 | 171 |
if (locationKey is null) |
172 | 172 |
// train all predictors |
173 | 173 |
{ |
174 |
DataParser.Parse(DateTime.MinValue, DateTime.MaxValue, this.Configuration.TimeResolution, wholeDay: false); |
|
174 | 175 |
for (int i = 0; i < this.Predictors.Count; i++) |
175 | 176 |
{ |
176 | 177 |
// train on all available data |
177 |
List<ModelInput> data = FeatureExtractor.PrepareTrainingInput(i, DateTime.MinValue, DateTime.MaxValue);
|
|
178 |
List<ModelInput> data = FeatureExtractor.PrepareTrainingInput(i); |
|
178 | 179 |
Console.WriteLine("Training predictor with {0} samples.", data.Count); |
179 | 180 |
this.Predictors[i].Fit(data); |
180 | 181 |
} |
Také k dispozici: Unified diff
Re #8953 refactoring