Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 60a60164

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

Re #8955 refactoring

Zobrazit rozdíly:

Server/ServerApp/Predictor/PredictionController.cs
4 4

  
5 5
using System;
6 6
using System.Collections.Generic;
7
using System.IO;
8
using Microsoft.ML;
9 7
using ServerApp.Connection.XMLProtocolHandler;
10
using ServerApp.Parser.OutputInfo;
11 8
using ServerApp.Parser.Parsers;
12 9

  
13 10
namespace ServerApp.Predictor
......
43 40
            this.dataParser = dataParser;
44 41
            this.predictors = new List<IPredictor>();
45 42
            this.buildingsToAreas = new Dictionary<string, int>();
46
            this.featureExtractor = new FeatureExtractor(dataParser, buildingsToAreas);
43
            this.featureExtractor = new FeatureExtractor(this.dataParser, buildingsToAreas);
47 44

  
48 45
            // fill predictors with all available locationKeys
49 46
            // TODO Currently all locations use the same predictor. Try dividing locations into subareas with separate predictors.
......
97 94
                    Console.WriteLine("Evaluating predictor with {0} samples.", testData.Count);
98 95
                    this.predictors[i].Evaluate(testData);
99 96
                }
100
            } else
97
            }
98
            else
101 99
            // train specified predictor only
102 100
            {
103 101
                throw new NotImplementedException();

Také k dispozici: Unified diff