9 references to If
Microsoft.ML.Data (9)
Model\Pfa\PfaUtils.cs (2)
314elseBlock.Add(If( 319If(Call("==", "size", 0), jobj.AddReturn("type", arrType).AddReturn("value", new JArray()),
Scorers\BinaryClassifierScorer.cs (2)
297return PfaUtils.If(PfaUtils.Call(">", scoreToken, _threshold), trueVal, 298PfaUtils.If(PfaUtils.Call("<=", scoreToken, _threshold), falseVal, nullVal));
Transforms\KeyToValue.cs (2)
493outType, PfaUtils.If(PfaUtils.Call("<", "key", 0), defaultToken, 498return PfaUtils.If(PfaUtils.Call("<", srcToken, 0), defaultToken, PfaUtils.Index(cellRef, srcToken));
Transforms\KeyToVector.cs (1)
696arrType, PfaUtils.If(PfaUtils.Call(">=", "i", 0),
Transforms\ValueToKeyMappingTransformer.cs (2)
979PfaUtils.Type.Int, PfaUtils.If(PfaUtils.Call("map.containsKey", cellRef, "term"), PfaUtils.Index(cellRef, "term"), -1)); 983return PfaUtils.If(PfaUtils.Call("map.containsKey", cellRef, srcToken), PfaUtils.Index(cellRef, srcToken), -1);