18 references to TryGetDataKind
Microsoft.ML.Core (2)
Data\ColumnTypeExtensions.cs (2)
71
columnType.RawType.
TryGetDataKind
(out InternalDataKind result);
132
if (type.
TryGetDataKind
(out kind))
Microsoft.ML.Core.Tests (3)
UnitTests\ColumnTypes.cs (1)
79
Assert.True(rawType.
TryGetDataKind
(out var kind));
UnitTests\CoreBaseTestClass.cs (2)
89
var result = vecType.ItemType.RawType.
TryGetDataKind
(out var kind);
133
var result = type.RawType.
TryGetDataKind
(out var kind);
Microsoft.ML.Data (12)
DataLoadSave\Database\DatabaseLoader.cs (2)
149
if (!InternalDataKindExtensions.
TryGetDataKind
(field.FieldType.IsArray ? field.FieldType.GetElementType() : field.FieldType, out dk))
155
if (!InternalDataKindExtensions.
TryGetDataKind
(property.PropertyType.IsArray ? property.PropertyType.GetElementType() : property.PropertyType, out dk))
DataLoadSave\Text\TextLoader.cs (2)
1612
if (!InternalDataKindExtensions.
TryGetDataKind
(field.FieldType.IsArray ? field.FieldType.GetElementType() : field.FieldType, out dk))
1618
if (!InternalDataKindExtensions.
TryGetDataKind
(property.PropertyType.IsArray ? property.PropertyType.GetElementType() : property.PropertyType, out dk))
DataView\ArrayDataViewBuilder.cs (1)
88
values.GetType().GetElementType().
TryGetDataKind
(out InternalDataKind kind);
DataView\InternalSchemaDefinition.cs (1)
199
if (!itemType.
TryGetDataKind
(out _) && !DataViewTypeManager.Knows(itemType, attributes))
DataView\TypedCursor.cs (1)
248
if (!actualType.
TryGetDataKind
(out _) && !DataViewTypeManager.Knows(actualType, customAttributes))
Transforms\Normalizer.cs (1)
476
itemType.RawType.
TryGetDataKind
(out InternalDataKind itemKind);
Transforms\TypeConverting.cs (1)
589
if (!type.
TryGetDataKind
(out InternalDataKind OutputKind))
Transforms\ValueMapping.cs (2)
201
if (!type.
TryGetDataKind
(out InternalDataKind kind))
777
if (!type.
TryGetDataKind
(out InternalDataKind kind))
Transforms\ValueToKeyMappingTransformer.cs (1)
893
InternalDataKindExtensions.
TryGetDataKind
(_parent._unboundMaps[iinfo].OutputType.RawType, out dataKind);
Microsoft.ML.Transforms (1)
MissingValueHandlingTransformer.cs (1)
182
if (!replaceItemType.RawType.
TryGetDataKind
(out InternalDataKind replaceItemTypeKind))