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)
298
DataViewType IValueMapper.InputType =>
_mapper
.InputType;
299
DataViewType IValueMapper.OutputType =>
_mapper
.OutputType;
301
bool ICanSavePfa.CanSavePfa => (
_mapper
as ICanSavePfa)?.CanSavePfa == true;
305
bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => (
_mapper
as ICanSaveOnnx)?.CanSaveOnnx(ctx) == true;
313
Host.Check(
_mapper
!= null, "The predictor does not implement IValueMapper");
314
Host.Check(
_mapper
.OutputType == NumberDataViewType.Single, "The output type of the predictor is expected to be float");
321
return
_mapper
.GetMapper<TIn, TOut>();
350
Host.Assert(
_mapper
is ISingleCanSavePfa);
351
var mapper = (ISingleCanSavePfa)
_mapper
;
384
Host.Assert(
_mapper
is ISingleCanSaveOnnx);
386
var mapper = (ISingleCanSaveOnnx)
_mapper
;