2 writes to _numClusters
Microsoft.ML.Data (2)
Evaluators\ClusteringEvaluator.cs (2)
593
_numClusters
= numClusters;
611
_numClusters
= ctx.Reader.ReadInt32();
18 references to _numClusters
Microsoft.ML.Data (18)
Evaluators\ClusteringEvaluator.cs (18)
596
var key = new KeyDataViewType(typeof(uint),
_numClusters
);
598
_types[SortedClusterCol] = new VectorDataViewType(key,
_numClusters
);
599
_types[SortedClusterScoreCol] = new VectorDataViewType(NumberDataViewType.Single,
_numClusters
);
612
Host.CheckDecode(
_numClusters
> 0);
615
var key = new KeyDataViewType(typeof(uint),
_numClusters
);
617
_types[SortedClusterCol] = new VectorDataViewType(key,
_numClusters
);
618
_types[SortedClusterScoreCol] = new VectorDataViewType(NumberDataViewType.Single,
_numClusters
);
637
Host.Assert(
_numClusters
> 0);
638
ctx.Writer.Write(
_numClusters
);
660
var scoresArr = new Single[
_numClusters
];
661
int[] sortedIndices = new int[
_numClusters
];
695
var editor = VBufferEditor.Create(ref dst,
_numClusters
);
696
for (int i = 0; i <
_numClusters
; i++)
709
var editor = VBufferEditor.Create(ref dst,
_numClusters
);
710
for (int i = 0; i <
_numClusters
; i++)
724
var slotNamesType = new VectorDataViewType(TextDataViewType.Instance,
_numClusters
);
728
sortedClusters.AddSlotNames(vectorSize, CreateSlotNamesGetter(
_numClusters
, "Cluster"));
731
builder.AddSlotNames(vectorSize, CreateSlotNamesGetter(
_numClusters
, "Score"));