41 references to Call
Microsoft.ML.Data (41)
Model\Pfa\PfaUtils.cs (12)
280
VectorCase(itemType, "a", "ma",
Call
("map.len", "ma"), "aa",
Call
("a.len", "aa")));
294
Call
(">",
Call
("s.len", "str"), 0));
311
Call
(refname,
Call
("//", "size", 2)))));
313
Call
("a.concat", "halfsize", "halfsize"))));
315
Call
("==",
Call
("&", "size", 1), 1),
316
Call
("a.append", "fullsize", 0.0), "fullsize"));
319
If(
Call
("==", "size", 0), jobj.AddReturn("type", arrType).AddReturn("value", new JArray()),
345
ctx.AddFunc(name, new JArray(Param("a", itemType), Param("b", itemType)), returnType,
Call
(binOp, "a", "b"));
Prediction\Calibrator.cs (3)
1788
return PfaUtils.
Call
("m.link.logit",
1789
PfaUtils.
Call
("+", -Offset, PfaUtils.
Call
("*", -Slope, input)));
Scorers\BinaryClassifierScorer.cs (2)
297
return PfaUtils.If(PfaUtils.
Call
(">", scoreToken, _threshold), trueVal,
298
PfaUtils.If(PfaUtils.
Call
("<=", scoreToken, _threshold), falseVal, nullVal));
Scorers\ClusteringScorer.cs (1)
132
return PfaUtils.
Call
("a.argmax", mapperOutputs[0]);
Scorers\MulticlassClassificationScorer.cs (1)
600
return PfaUtils.
Call
("a.argmax", mapperOutputs[0]);
Transforms\ColumnConcatenatingTransformer.cs (1)
850
result = PfaUtils.
Call
(srcPrimitive[i] ? "a.append" : "a.concat", result, srcTokens[i]);
Transforms\KeyToValue.cs (3)
493
outType, PfaUtils.If(PfaUtils.
Call
("<", "key", 0), defaultToken,
496
return PfaUtils.
Call
("a.map", srcToken, funcRef);
498
return PfaUtils.If(PfaUtils.
Call
("<", srcToken, 0), defaultToken, PfaUtils.Index(cellRef, srcToken));
Transforms\KeyToVector.cs (7)
674
return PfaUtils.
Call
("cast.fanoutDouble", srcToken, 0, keyCount, false);
680
return PfaUtils.
Call
("a.flatMap", srcToken,
682
arrType, PfaUtils.
Call
("cast.fanoutDouble", "k", 0, keyCount, false)));
692
PfaUtils.
Call
("+", "v", 1));
696
arrType, PfaUtils.If(PfaUtils.
Call
(">=", "i", 0),
700
return PfaUtils.
Call
("a.fold", srcToken,
701
PfaUtils.
Call
("cast.fanoutDouble", -1, 0, keyCount, false), PfaUtils.FuncRef("u." + funcName));
Transforms\NormalizeColumnDbl.cs (4)
698
=> PfaUtils.
Call
("*", PfaUtils.
Call
("-", srcToken, Offset), Scale);
767
srcToken = PfaUtils.
Call
("a.zipmap", srcToken, offsetCell, PfaUtils.FuncRef(ctx.Pfa.EnsureSub(itemType)));
769
return PfaUtils.
Call
("a.zipmap", srcToken, scaleCell, PfaUtils.FuncRef(ctx.Pfa.EnsureMul(itemType)));
Transforms\NormalizeColumnSng.cs (4)
856
=> PfaUtils.
Call
("*", PfaUtils.
Call
("-", srcToken, Offset), Scale);
924
srcToken = PfaUtils.
Call
("a.zipmap", srcToken, offsetCell, PfaUtils.FuncRef(ctx.Pfa.EnsureSub(itemType)));
926
return PfaUtils.
Call
("a.zipmap", srcToken, scaleCell, PfaUtils.FuncRef(ctx.Pfa.EnsureMul(itemType)));
Transforms\ValueToKeyMappingTransformer.cs (3)
979
PfaUtils.Type.Int, PfaUtils.If(PfaUtils.
Call
("map.containsKey", cellRef, "term"), PfaUtils.Index(cellRef, "term"), -1));
981
return PfaUtils.
Call
("a.map", srcToken, funcRef);
983
return PfaUtils.If(PfaUtils.
Call
("map.containsKey", cellRef, srcToken), PfaUtils.Index(cellRef, srcToken), -1);