33 references to Type
Microsoft.ML.Data (33)
Model\Pfa\BoundPfaContext.cs (2)
13
using T = PfaUtils.
Type
;
171
return
T
.PfaTypeOrNullForColumnType(type);
Model\Pfa\PfaUtils.cs (10)
68
return ((JObject)null).AddReturn("type",
Type
.String).AddReturn("value", str);
105
cases.Add(jobj.AddReturn("as",
Type
.Map(itemType)).AddReturn(
107
cases.Add(jobj.AddReturn("as",
Type
.Array(itemType)).AddReturn(
279
ctx.AddFunc(name, new JArray(Param("a",
Type
.Vector(itemType))),
Type
.Int,
293
ctx.AddFunc(name, new JArray(Param("str",
Type
.String)),
Type
.Bool,
305
var arrType =
Type
.Array(
Type
.Double);
318
ctx.AddFunc(name, new JArray(Param("size",
Type
.Int)), arrType,
Transforms\ColumnConcatenatingTransformer.cs (3)
33
using PfaType = PfaUtils.
Type
;
825
var itemType =
PfaType
.PfaTypeOrNullForColumnType(itemColumnType);
829
var arrType =
PfaType
.Array(itemType);
Transforms\KeyToValue.cs (4)
466
var outType = PfaUtils.
Type
.PfaTypeOrNullForColumnType(TypeOutput);
473
var defaultToken = PfaUtils.
Type
.DefaultTokenOrNull(TypeOutput);
485
string cellName = ctx.DeclareCell("KeyToValueMap", PfaUtils.
Type
.Array(outType), jsonValues);
492
ctx.Pfa.AddFunc(funcName, new JArray(PfaUtils.Param("key", PfaUtils.
Type
.Int)),
Transforms\KeyToVector.cs (6)
676
JToken arrType = PfaUtils.
Type
.Array(PfaUtils.
Type
.Double);
681
PfaContext.CreateFuncBlock(new JArray() { PfaUtils.Param("k", PfaUtils.
Type
.Int) },
691
new JArray() { PfaUtils.Param("v", PfaUtils.
Type
.Double) }, PfaUtils.
Type
.Double,
695
new JArray(PfaUtils.Param("a", arrType), PfaUtils.Param("i", PfaUtils.
Type
.Int)),
Transforms\NormalizeColumnDbl.cs (2)
759
var itemType = PfaUtils.
Type
.Double;
760
var arrType = PfaUtils.
Type
.Array(itemType);
Transforms\NormalizeColumnSng.cs (2)
916
var itemType = PfaUtils.
Type
.Double;
917
var arrType = PfaUtils.
Type
.Array(itemType);
Transforms\ValueToKeyMappingTransformer.cs (4)
972
"TermMap", PfaUtils.
Type
.Map(PfaUtils.
Type
.Int), jsonMap);
978
ctx.Pfa.AddFunc(funcName, new JArray(PfaUtils.Param("term", PfaUtils.
Type
.String)),
979
PfaUtils.
Type
.Int, PfaUtils.If(PfaUtils.Call("map.containsKey", cellRef, "term"), PfaUtils.Index(cellRef, "term"), -1));