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