1 write to _mapper
Microsoft.ML.Data (1)
Prediction\Calibrator.cs (1)
312_mapper = SubModel as IValueMapper;
11 references to _mapper
Microsoft.ML.Data (11)
Prediction\Calibrator.cs (11)
298DataViewType IValueMapper.InputType => _mapper.InputType; 299DataViewType IValueMapper.OutputType => _mapper.OutputType; 301bool ICanSavePfa.CanSavePfa => (_mapper as ICanSavePfa)?.CanSavePfa == true; 305bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => (_mapper as ICanSaveOnnx)?.CanSaveOnnx(ctx) == true; 313Host.Check(_mapper != null, "The predictor does not implement IValueMapper"); 314Host.Check(_mapper.OutputType == NumberDataViewType.Single, "The output type of the predictor is expected to be float"); 321return _mapper.GetMapper<TIn, TOut>(); 350Host.Assert(_mapper is ISingleCanSavePfa); 351var mapper = (ISingleCanSavePfa)_mapper; 384Host.Assert(_mapper is ISingleCanSaveOnnx); 386var mapper = (ISingleCanSaveOnnx)_mapper;