Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 4977ce53

Přidáno uživatelem Roman Kalivoda před téměř 4 roky(ů)

Re #8832 Refactoring

Refactored existing classes to comply with the coding conventions

Zobrazit rozdíly:

Server/ServerApp/Predictor/IPredictor.cs
1
using System;
1
//
2
// Author: Roman Kalivoda
3
//
4

  
5
using System;
2 6
using System.Collections.Generic;
3 7
using System.Linq;
4 8
using System.Text;
......
6 10
using Microsoft.ML;
7 11
using Microsoft.ML.Data;
8 12

  
13

  
9 14
namespace ServerApp.Predictor
10 15
{
16
    /// <summary>
17
    /// A predictor interface.
18
    /// </summary>
11 19
    interface IPredictor
12 20
    {
13

  
21
        /// <summary>
22
        /// Trains the predictor with the given training data input.
23
        /// </summary>
24
        /// <param name="trainInput">A collection of <c>ModelInput</c> instances. The objects contain both feature vector inputs and corresponding labels.</param>
14 25
        void Fit(IEnumerable<ModelInput> trainInput);
15 26

  
16
        String[] Predict(IEnumerable<ModelInput> input);
27
        /// <summary>
28
        /// Predicts classes to the given feature vectors.
29
        /// </summary>
30
        /// <param name="input">A collection of model feature vectors in <c>ModelInput</c> instances.</param>
31
        /// <returns>A collection of <c>PredictionResult</c> instances.</returns>
32
        IDataView Predict(IEnumerable<ModelInput> input);
17 33
    }
18 34
}

Také k dispozici: Unified diff