Revize 0e7b6b11
Přidáno uživatelem Roman Kalivoda před téměř 4 roky(ů)
Server/ServerApp/Predictor/IPredictionController.cs | ||
---|---|---|
20 | 20 |
/// <summary> |
21 | 21 |
/// Trains all predictors. The training data are taken from given path location. |
22 | 22 |
/// </summary> |
23 |
/// <param name="locationKey">A string identifier of the location for which to train a predictor.</param> |
|
24 |
void Train(string locationKey = null); |
|
23 |
void Train(); |
|
25 | 24 |
|
26 | 25 |
/// <summary> |
27 | 26 |
/// Loads trained predictors from files in <c>path</c>. |
28 | 27 |
/// </summary> |
29 |
/// <param name="locationKey">A string identifier of the location for which to load a predictor.</param> |
|
30 | 28 |
/// <param name="path">A path to folder with trained prediction model.</param> |
31 |
void Load(string locationKey = null, string path = null); |
|
29 |
void Load(string path); |
|
30 |
|
|
31 |
/// <summary> |
|
32 |
/// Rolls back the predictors to previous trained instances. |
|
33 |
/// </summary> |
|
34 |
void Rollback(); |
|
32 | 35 |
|
33 | 36 |
/// <summary> |
34 | 37 |
/// Predicts turnout level at given time supposing given weather conditions. |
... | ... | |
36 | 39 |
/// <param name="request">A request with time and weather information.</param> |
37 | 40 |
/// <returns>A server response filled with predictions.</returns> |
38 | 41 |
Response Predict(Request request); |
42 |
|
|
43 |
/// <summary> |
|
44 |
/// Returns the filenames of data files used to train current predictor instances |
|
45 |
/// </summary> |
|
46 |
/// <returns>Collection of filenames</returns> |
|
47 |
IEnumerable<string> GetDataFileNames(); |
|
39 | 48 |
} |
40 | 49 |
} |
Také k dispozici: Unified diff
Re #9049 Implementation of GetDataFileNames and Load methods