117 references to InternalDataKind
Microsoft.ML.Core (109)
Data\ColumnTypeExtensions.cs (24)
65/// Gets the equivalent <see cref="InternalDataKind"/> for the <paramref name="columnType"/>'s RawType. 66/// This can return default(<see cref="InternalDataKind"/>) if the RawType doesn't have a corresponding 67/// <see cref="InternalDataKind"/>. 69public static InternalDataKind GetRawKind(this DataViewType columnType) 71columnType.RawType.TryGetDataKind(out InternalDataKind result); 112public static PrimitiveDataViewType PrimitiveTypeFromKind(InternalDataKind kind) 114if (kind == InternalDataKind.TX) 116if (kind == InternalDataKind.BL) 118if (kind == InternalDataKind.TS) 120if (kind == InternalDataKind.DT) 122if (kind == InternalDataKind.DZ) 124if (kind == InternalDataKind.UG) 131InternalDataKind kind; 139private static NumberDataViewType NumberTypeFromKind(InternalDataKind kind) 143case InternalDataKind.I1: 145case InternalDataKind.U1: 147case InternalDataKind.I2: 149case InternalDataKind.U2: 151case InternalDataKind.I4: 153case InternalDataKind.U4: 155case InternalDataKind.I8: 157case InternalDataKind.U8: 159case InternalDataKind.R4: 161case InternalDataKind.R8:
Data\DataKind.cs (85)
75/// Data type specifier used in command line. <see cref="InternalDataKind"/> is the underlying version of <see cref="DataKind"/> 124public const InternalDataKind KindMin = InternalDataKind.I1; 125public const InternalDataKind KindLim = InternalDataKind.U16 + 1; 131public static int ToIndex(this InternalDataKind kind) 139public static InternalDataKind FromIndex(int index) 142return (InternalDataKind)(index + (int)KindMin); 146/// This function converts <paramref name="dataKind"/> to <see cref="InternalDataKind"/>. 147/// Because <see cref="DataKind"/> is a subset of <see cref="InternalDataKind"/>, the conversion is straightforward. 149public static InternalDataKind ToInternalDataKind(this DataKind dataKind) => (InternalDataKind)dataKind; 153/// Because <see cref="DataKind"/> is a subset of <see cref="InternalDataKind"/>, we should check if <paramref name="kind"/> 156public static DataKind ToDataKind(this InternalDataKind kind) 158Contracts.Check(kind != InternalDataKind.UG); 166public static ulong ToMaxInt(this InternalDataKind kind) 170case InternalDataKind.I1: 172case InternalDataKind.U1: 174case InternalDataKind.I2: 176case InternalDataKind.U2: 178case InternalDataKind.I4: 180case InternalDataKind.U4: 182case InternalDataKind.I8: 184case InternalDataKind.U8: 221public static long ToMinInt(this InternalDataKind kind) 225case InternalDataKind.I1: 227case InternalDataKind.U1: 229case InternalDataKind.I2: 231case InternalDataKind.U2: 233case InternalDataKind.I4: 235case InternalDataKind.U4: 237case InternalDataKind.I8: 239case InternalDataKind.U8: 249public static Type ToType(this InternalDataKind kind) 253case InternalDataKind.I1: 255case InternalDataKind.U1: 257case InternalDataKind.I2: 259case InternalDataKind.U2: 261case InternalDataKind.I4: 263case InternalDataKind.U4: 265case InternalDataKind.I8: 267case InternalDataKind.U8: 269case InternalDataKind.R4: 271case InternalDataKind.R8: 273case InternalDataKind.TX: 275case InternalDataKind.BL: 277case InternalDataKind.TS: 279case InternalDataKind.DT: 281case InternalDataKind.DZ: 283case InternalDataKind.UG: 293public static bool TryGetDataKind(this Type type, out InternalDataKind kind) 299kind = InternalDataKind.I1; 301kind = InternalDataKind.U1; 303kind = InternalDataKind.I2; 305kind = InternalDataKind.U2; 307kind = InternalDataKind.I4; 309kind = InternalDataKind.U4; 311kind = InternalDataKind.I8; 313kind = InternalDataKind.U8; 315kind = InternalDataKind.R4; 317kind = InternalDataKind.R8; 319kind = InternalDataKind.TX; 321kind = InternalDataKind.BL; 323kind = InternalDataKind.TS; 325kind = InternalDataKind.DT; 327kind = InternalDataKind.DZ; 329kind = InternalDataKind.UG; 332kind = default(InternalDataKind); 343public static string GetString(this InternalDataKind kind) 347case InternalDataKind.I1: 349case InternalDataKind.I2: 351case InternalDataKind.I4: 353case InternalDataKind.I8: 355case InternalDataKind.U1: 357case InternalDataKind.U2: 359case InternalDataKind.U4: 361case InternalDataKind.U8: 363case InternalDataKind.R4: 365case InternalDataKind.R8: 367case InternalDataKind.BL: 369case InternalDataKind.TX: 371case InternalDataKind.TS: 373case InternalDataKind.DT: 375case InternalDataKind.DZ: 377case InternalDataKind.UG:
Microsoft.ML.Data (6)
DataLoadSave\Database\DbExtensions.cs (1)
70/// <summary>Maps a <see cref="InternalDataKind"/> to the associated <see cref="DbType"/>.</summary>
DataLoadSave\Text\TextLoader.cs (3)
89/// <param name="kind"><see cref="InternalDataKind"/> of the items in the column.</param> 110/// <see cref="InternalDataKind"/> of the items in the column. It defaults to float. 111/// Although <see cref="InternalDataKind"/> is internal, <see cref="Type"/>'s information can be publicly accessed by <see cref="DataKind"/>.
DataLoadSave\Text\TextLoaderParser.cs (1)
71for (var kind = InternalDataKindExtensions.KindMin; kind < InternalDataKindExtensions.KindLim; kind++)
Utilities\TypeParsingUtils.cs (1)
21/// the returned <see cref="InternalDataKind"/> can really be made into a key with the specified <paramref name="keyCount"/>.
Microsoft.ML.Recommender (1)
RecommenderUtils.cs (1)
41/// is a <see cref="InternalDataKind.U4"/> key of known cardinality.
Microsoft.ML.Transforms (1)
ExpressionTransformer.cs (1)
375var kind = InternalDataKindExtensions.FromIndex(dataKindIndex);