Beispiel #1
0
 public virtual void Init(IRepository repository, IEnumerable <string> releases)
 {
     this.repository   = repository;
     PredictionRelease = releases.Last();
     if (releases.Count() > 1)
     {
         TrainReleases = releases.Take(releases.Count() - 1);
     }
     else
     {
         TrainReleases = releases;
     }
     context = new PredictorContext(repository);
 }
Beispiel #2
0
 public double[] GetPredictorValuesFor(PredictorContext c)
 {
     return(predictors.Select(p => p(c)).ToArray());
 }