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