// 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)); }); }
public Predictor(BasePredictor <T> bp, scorer s, pickSide wrapper) { BasePredictor = bp; Scorer = s; whos = wrapper; }