internal Mapper(CalibratorTransformer <TCalibrator> parent, TCalibrator calibrator, DataViewSchema inputSchema) :
                base(parent.Host, inputSchema, parent)
            {
                _calibrator = calibrator;
                _parent     = parent;

                _scoreColIndex = inputSchema.GetColumnOrNull(DefaultColumnNames.Score)?.Index ?? -1;

                parent.Host.Check(_scoreColIndex > 0, "The data to calibrate contains no 'Score' column");
            }
示例#2
0
            internal Mapper(CalibratorTransformer <TCalibrator> parent, TCalibrator calibrator, DataViewSchema inputSchema, string scoreColumnName) :
                base(parent.Host, inputSchema, parent)
            {
                _calibrator = calibrator;
                _parent     = parent;

                _scoreColumnName = scoreColumnName;
                _scoreColIndex   = inputSchema.GetColumnOrNull(_scoreColumnName)?.Index ?? -1;

                parent.Host.Check(_scoreColIndex >= 0, "The data to calibrate contains no \'" + scoreColumnName + "\' column.");
            }