Exemple #1
0
 // converts a function that transforms predictions to something that transforms output of BasePredictor
 public static predict <T> AsMapping <T>(BasePredictor <T> predictor, Func <char, char> transformer)
 {
     return(_ =>
     {
         Prediction p = predictor.NextPrediction;
         return new Prediction(transformer(p.Mine), transformer(p.Yours));
     });
 }
Exemple #2
0
 public Predictor(BasePredictor <T> bp, scorer s, pickSide wrapper)
 {
     BasePredictor = bp;
     Scorer        = s;
     whos          = wrapper;
 }