1 write to IsKey
Microsoft.ML.Core (1)
Data\IEstimator.cs (1)
73IsKey = isKey;
34 references to IsKey
Microsoft.ML.Core (7)
Data\AnnotationUtils.cs (3)
328&& metaCol.Kind == SchemaShape.Column.VectorKind.Scalar && !metaCol.IsKey 344&& metaCol.Kind == SchemaShape.Column.VectorKind.Vector && !metaCol.IsKey 444if (labelColumn != null && labelColumn.Value.IsKey)
Data\IEstimator.cs (4)
82/// - The <see cref="Name"/>, <see cref="Kind"/>, <see cref="ItemType"/>, <see cref="IsKey"/> fields match. 96if (IsKey != source.IsKey) 112if (IsKey)
Microsoft.ML.Data (10)
DataLoadSave\FakeSchema.cs (1)
50if (column.IsKey)
Prediction\CalibratorCatalog.cs (1)
112setIdCol.Kind == scalar && setIdCol.IsKey && setIdCol.ItemType == NumberDataViewType.UInt32 &&
Transforms\ColumnConcatenatingEstimator.cs (1)
112if (col.IsKey)
Transforms\ColumnCopying.cs (1)
81var col = new SchemaShape.Column(outputColumnName, originalColumn.Kind, originalColumn.ItemType, originalColumn.IsKey, originalColumn.Annotations);
Transforms\KeyToValue.cs (2)
642if (!col.IsKey) 652result[colInfo.outputColumnName] = new SchemaShape.Column(colInfo.outputColumnName, col.Kind, keyMetaCol.ItemType, keyMetaCol.IsKey, metadata);
Transforms\KeyToVector.cs (1)
831if (((colInfo.OutputCountVector && col.IsKey) || col.Kind != SchemaShape.Column.VectorKind.VariableVector) && keyMeta.ItemType is TextDataViewType)
Transforms\Normalizer.cs (1)
365result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, col.Kind, col.ItemType, col.IsKey, meta);
Transforms\ValueToKeyMappingEstimator.cs (2)
193if (!col.IsKey || !col.Annotations.TryFindColumn(AnnotationUtils.Kinds.KeyValues, out var kv) || kv.Kind != SchemaShape.Column.VectorKind.Vector) 196colInfo.AddKeyValueAnnotationsAsText ? TextDataViewType.Instance : col.ItemType, col.IsKey);
Microsoft.ML.FastTree (1)
FastTreeRanking.cs (1)
129if (!labelCol.IsKey && labelCol.ItemType != NumberDataViewType.Single)
Microsoft.ML.ImageAnalytics (1)
ImageGrayscale.cs (1)
257result[colInfo.outputColumnName] = new SchemaShape.Column(colInfo.outputColumnName, col.Kind, col.ItemType, col.IsKey, col.Annotations);
Microsoft.ML.LightGbm (1)
LightGbmRankingTrainer.cs (1)
277if (!labelCol.IsKey && labelCol.ItemType != NumberDataViewType.Single)
Microsoft.ML.Mkl.Components (1)
VectorWhitening.cs (1)
901result[colPair.Name] = new SchemaShape.Column(colPair.Name, col.Kind, col.ItemType, col.IsKey, null);
Microsoft.ML.Tests (6)
Transformers\ValueMappingTests.cs (6)
381Assert.False(dColumn.IsKey); 384Assert.False(eColumn.IsKey); 387Assert.False(fColumn.IsKey); 412Assert.True(dColumn.IsKey); 415Assert.True(eColumn.IsKey); 418Assert.True(fColumn.IsKey);
Microsoft.ML.Transforms (7)
CustomMappingTransformer.cs (1)
267if (itemType != column.ItemType || isKey != column.IsKey
Dracula\CountTableTransformer.cs (1)
335if (!col.IsKey || !col.ItemType.Equals(NumberDataViewType.UInt32))
MissingValueDroppingTransformer.cs (1)
51var col = new SchemaShape.Column(outputColumnName, SchemaShape.Column.VectorKind.VariableVector, originalColumn.ItemType, originalColumn.IsKey, originalColumn.Annotations);
MutualInformationFeatureSelection.cs (1)
225if (!(label.IsKey || MutualInformationFeatureSelectionUtils.IsValidColumnType(label.ItemType)))
StatefulCustomMappingTransformer.cs (1)
400if (itemType != column.ItemType || isKey != column.IsKey
Text\NgramHashingTransformer.cs (1)
1198if (!col.IsKey)
Text\NgramTransform.cs (1)
974if (!col.IsKey)