13 references to IsValidDataType
Microsoft.ML.Core (1)
Data\IEstimator.cs (1)
68
Contracts.CheckParam(!isKey || KeyDataViewType.
IsValidDataType
(itemType.RawType), nameof(itemType), "The item type must be valid for a key");
Microsoft.ML.Core.Tests (1)
UnitTests\ColumnTypes.cs (1)
54
if (!KeyDataViewType.
IsValidDataType
(rawType))
Microsoft.ML.Data (10)
Data\Conversion.cs (1)
440
if (!KeyDataViewType.
IsValidDataType
(typeDst.RawType))
Data\SchemaDefinition.cs (1)
440
if (!KeyDataViewType.
IsValidDataType
(dataType))
DataLoadSave\Binary\Codecs.cs (2)
1243
Contracts.CheckDecode(KeyDataViewType.
IsValidDataType
(itemType.RawType));
1340
Contracts.CheckDecode(KeyDataViewType.
IsValidDataType
(itemType.RawType));
DataLoadSave\Database\DatabaseLoader.cs (2)
575
Contracts.CheckDecode(KeyDataViewType.
IsValidDataType
(kind.ToType()));
689
Contracts.CheckUserArg(KeyDataViewType.
IsValidDataType
(rawType), nameof(DatabaseLoader.Column.Type), "Bad item type for Key");
DataLoadSave\Text\TextLoader.cs (1)
940
Contracts.CheckDecode(KeyDataViewType.
IsValidDataType
(kind.ToType()));
Transforms\TypeConverting.cs (2)
364
else if (!KeyDataViewType.
IsValidDataType
(kind.ToType()))
371
ectx.Assert(KeyDataViewType.
IsValidDataType
(key.RawType));
Utilities\TypeParsingUtils.cs (1)
61
Contracts.CheckUserArg(KeyDataViewType.
IsValidDataType
(rawType), nameof(TextLoader.Column.Type), "Bad item type for Key");
Microsoft.ML.DataView (1)
KeyDataViewType.cs (1)
50
if (!
IsValidDataType
(type))