Projekt

Obecné

Profil

Stáhnout (1.69 KB) Statistiky
| Větev: | Tag: | Revize:
1 ebe96ca4 Roman Kalivoda
//
2
// Author: Roman Kalivoda
3
//
4
5
using System.Collections.Generic;
6 d358b79e Roman Kalivoda
using ServerApp.Connection.XMLProtocolHandler;
7 ebe96ca4 Roman Kalivoda
8
namespace ServerApp.Predictor
9
{
10
    /// <summary>
11
    /// Interface for PredictionController class. Defines basic interface methods to access the "model" package.
12
    /// </summary>
13
    public interface IPredictionController
14
    {
15
        /// <summary>
16
        /// </summary>
17 662b2404 Roman Kalivoda
        /// <returns>A list with all existing predictors.</returns>
18 ebe96ca4 Roman Kalivoda
        List<string> GetPredictors();
19
20
        /// <summary>
21
        /// Trains all predictors. The training data are taken from given path location.
22
        /// </summary>
23 0e7b6b11 Roman Kalivoda
        void Train();
24 ebe96ca4 Roman Kalivoda
25
        /// <summary>
26
        /// Loads trained predictors from files in <c>path</c>.
27
        /// </summary>
28
        /// <param name="path">A path to folder with trained prediction model.</param>
29 3c4b53fe Roman Kalivoda
        int Load(string path);
30 0e7b6b11 Roman Kalivoda
31
        /// <summary>
32
        /// Rolls back the predictors to previous trained instances.
33
        /// </summary>
34 3c4b53fe Roman Kalivoda
        int Rollback();
35 ebe96ca4 Roman Kalivoda
36
        /// <summary>
37 d358b79e Roman Kalivoda
        /// Predicts turnout level at given time supposing given weather conditions.
38 ebe96ca4 Roman Kalivoda
        /// </summary>
39 d358b79e Roman Kalivoda
        /// <param name="request">A request with time and weather information.</param>
40
        /// <returns>A server response filled with predictions.</returns>
41
        Response Predict(Request request);
42 0e7b6b11 Roman Kalivoda
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();
48 3c4b53fe Roman Kalivoda
49
        /// <summary>
50
        /// Saves the predictors to model data path.
51
        /// </summary>
52
        public void Save();
53 ebe96ca4 Roman Kalivoda
    }
54
}