Revize 8f8d8aa7
Přidáno uživatelem Roman Kalivoda před téměř 4 roky(ů)
Server/ServerApp/Predictor/PredictionController.cs | ||
---|---|---|
118 | 118 |
{ |
119 | 119 |
this.Predictors = predictors; |
120 | 120 |
} |
121 |
this.Train(); |
|
121 | 122 |
} |
122 | 123 |
|
123 | 124 |
PredictorConfiguration.SaveConfig(PredictorConfiguration.DEFAULT_CONFIG_PATH, Configuration); |
Server/ServerApp/Program.cs | ||
---|---|---|
173 | 173 |
// FIXME pass the right references to the JsonParser constructor |
174 | 174 |
IJsonParser jsonP = new JsonParser(dd, new CsvDataLoader()); |
175 | 175 |
IPredictionController predictionController = new PredictionController(jsonP, p); |
176 |
predictionController.Train(); |
|
177 | 176 |
//var results = predictionController.Predict() |
178 | 177 |
|
179 | 178 |
|
Server/ServerApp/Properties/launchSettings.json | ||
---|---|---|
2 | 2 |
"profiles": { |
3 | 3 |
"ServerApp": { |
4 | 4 |
"commandName": "Project", |
5 |
"commandLineArgs": "C:\\Users\\elisk\\Documents\\aswi2021tri-musketyri\\Server\\ServerApp\\server_config"
|
|
5 |
"commandLineArgs": "..\\..\\..\\server_config"
|
|
6 | 6 |
} |
7 | 7 |
} |
8 | 8 |
} |
Server/ServerAppFunctionalTests/Predictor/PredictionControllerTests.cs | ||
---|---|---|
35 | 35 |
dd.DownloadData(DataType.JIS, DataFormat.CSV, new DataDownload.Date(1, 2019), new DataDownload.Date(12, 2020)); |
36 | 36 |
dd.DownloadData(DataType.STROJE, DataFormat.CSV, new DataDownload.Date(1, 2017), new DataDownload.Date(12, 2020)); |
37 | 37 |
dd.DownloadData(DataType.POCASI, DataFormat.CSV, new DataDownload.Date(1, 2017), new DataDownload.Date(12, 2020)); |
38 |
instance.Train(); |
|
39 | 38 |
} |
40 | 39 |
|
41 | 40 |
[TestMethod()] |
Také k dispozici: Unified diff
Re #9034 Refactoring