29 references to ToType
Microsoft.ML.Data (17)
DataLoadSave\Database\DatabaseLoader.cs (2)
575Contracts.CheckDecode(KeyDataViewType.IsValidDataType(kind.ToType())); 580itemType = new KeyDataViewType(kind.ToType(), count);
DataLoadSave\Text\TextLoader.cs (2)
940Contracts.CheckDecode(KeyDataViewType.IsValidDataType(kind.ToType())); 962itemType = new KeyDataViewType(kind.ToType(), count);
DataView\ArrayDataViewBuilder.cs (1)
89_columns.Add(new AssignmentColumn<T1>(new KeyDataViewType(kind.ToType(), keyCount), values));
Transforms\KeyToValue.cs (3)
514var t = InternalDataKindExtensions.ToInternalDataKind(DataKind.Int64).ToType(); 554t = InternalDataKindExtensions.ToInternalDataKind(DataKind.Double).ToType(); 568t = InternalDataKindExtensions.ToInternalDataKind(DataKind.Boolean).ToType();
Transforms\TypeConverting.cs (3)
364else if (!KeyDataViewType.IsValidDataType(kind.ToType())) 379itemType = new KeyDataViewType(kind.ToType(), count); 505var t = _parent._columns[iinfo].OutputKind.ToInternalDataKind().ToType();
Transforms\ValueMapping.cs (1)
1202var t = InternalDataKindExtensions.ToInternalDataKind(DataKind.String).ToType();
Transforms\ValueToKeyMappingTransformer.cs (3)
793var t = InternalDataKindExtensions.ToInternalDataKind(DataKind.String).ToType(); 806var t = InternalDataKindExtensions.ToInternalDataKind(DataKind.Single).ToType(); 897castNode.AddAttribute("to", dataKind.ToType());
Utilities\TypeParsingUtils.cs (2)
60Type rawType = type.HasValue ? type.Value.ToType() : InternalDataKind.U8.ToType();
Microsoft.ML.KMeansClustering (1)
KMeansModelParameters.cs (1)
367var t = InternalDataKindExtensions.ToInternalDataKind(DataKind.UInt32).ToType();
Microsoft.ML.StandardTrainers (9)
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
1006var t = InternalDataKindExtensions.ToInternalDataKind(DataKind.UInt32).ToType();
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (4)
462var t = InternalDataKindExtensions.ToInternalDataKind(DataKind.Single).ToType(); 533t = InternalDataKindExtensions.ToInternalDataKind(DataKind.Single).ToType(); 557t = InternalDataKindExtensions.ToInternalDataKind(DataKind.Single).ToType(); 567t = InternalDataKindExtensions.ToInternalDataKind(DataKind.UInt32).ToType();
Standard\MulticlassClassification\OneVersusAllTrainer.cs (3)
589var t2 = InternalDataKindExtensions.ToInternalDataKind(DataKind.UInt32).ToType(); 808var t = InternalDataKindExtensions.ToInternalDataKind(DataKind.Boolean).ToType(); 818var t1 = InternalDataKindExtensions.ToInternalDataKind(DataKind.Single).ToType();
Standard\Simple\SimpleTrainers.cs (1)
427var t = InternalDataKindExtensions.ToInternalDataKind(DataKind.Single).ToType();
Microsoft.ML.Transforms (2)
Text\NgramTransform.cs (1)
796var t = InternalDataKindExtensions.ToInternalDataKind(dataKind).ToType();
Text\TokenizingByCharacters.cs (1)
267var t = InternalDataKindExtensions.ToInternalDataKind(DataKind.UInt16).ToType();