public void Load(GazeToDisplayConverterParameters param) { var data = (TwoStageConverterParameters)param; Order = data.Order; Samples = data.Samples; }
public void Load(GazeToDisplayConverterParameters param) { var data = (EndToEndConverterParameters)param; mlContext = new MLContext(seed: 0); using (var s = new MemoryStream()) { s.Write(data.PredictorX, 0, data.PredictorX.Length); estimatorX = (RegressionPredictionTransformer <FastTreeRegressionModelParameters>)mlContext.Model.Load(s, out _); } using (var s = new MemoryStream()) { s.Write(data.PredictorY, 0, data.PredictorY.Length); estimatorY = (RegressionPredictionTransformer <FastTreeRegressionModelParameters>)mlContext.Model.Load(s, out _); } GenPredictors(); }