2 writes to ValueMapper
Microsoft.ML.Data (2)
Scorers\SchemaBindablePredictorWrapper.cs (2)
56
ScoreType = GetScoreType(Predictor, out
ValueMapper
);
78
ScoreType = GetScoreType(Predictor, out
ValueMapper
);
25 references to ValueMapper
Microsoft.ML.Data (25)
Scorers\SchemaBindablePredictorWrapper.cs (25)
47
bool ICanSavePfa.CanSavePfa => (
ValueMapper
as ICanSavePfa)?.CanSavePfa == true;
49
bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => (
ValueMapper
as ICanSaveOnnx)?.CanSaveOnnx(ctx) == true;
98
Contracts.Assert(
ValueMapper
is ISingleCanSavePfa);
112
Contracts.Assert(
ValueMapper
is ISingleCanSaveOnnx);
113
var mapper = (ISingleCanSaveOnnx)
ValueMapper
;
130
var typeIn =
ValueMapper
!= null ?
ValueMapper
.InputType : new VectorDataViewType(NumberDataViewType.Single);
169
Contracts.Assert(
ValueMapper
!= null);
172
var map =
ValueMapper
.GetMapper<TSrc, TDst>();
328
Contracts.Assert(
ValueMapper
is ISingleCanSavePfa);
331
var mapper = (ISingleCanSavePfa)
ValueMapper
;
344
Contracts.Assert(
ValueMapper
is ISingleCanSaveOnnx);
347
var mapper = (ISingleCanSaveOnnx)
ValueMapper
;
435
Contracts.Assert(
ValueMapper
is IDistCanSavePfa);
438
var mapper = (IDistCanSavePfa)
ValueMapper
;
456
var mapper =
ValueMapper
as ISingleCanSaveOnnx;
649
Contracts.CheckParam(
ValueMapper
!= null &&
ValueMapper
.InputType is VectorDataViewType vectorType
668
Contracts.CheckDecode(
ValueMapper
!= null &&
ValueMapper
.InputType is VectorDataViewType vectorType
706
Contracts.Assert(
ValueMapper
== null ||
707
typeSrc.Size ==
ValueMapper
.InputType.GetVectorSize() ||
ValueMapper
.InputType.GetVectorSize() == 0);
711
var featureCount =
ValueMapper
!= null ?
ValueMapper
.InputType.GetVectorSize() : 0;