2 writes to _dimension
Microsoft.ML.PCA (2)
PcaTrainer.cs (2)
455
_dimension
= eigenVectors[0].Length;
485
_dimension
= ctx.Reader.ReadInt32();
14 references to _dimension
Microsoft.ML.PCA (14)
PcaTrainer.cs (14)
472
_inputType = new VectorDataViewType(NumberDataViewType.Single,
_dimension
);
486
Host.CheckDecode(FloatUtils.IsFinite(
_dimension
));
494
var meanArray = ctx.Reader.ReadFloatArray(
_dimension
);
496
_mean = new VBuffer<float>(
_dimension
, meanArray);
501
_mean = VBufferUtils.CreateEmpty<float>(
_dimension
);
509
var vi = ctx.Reader.ReadFloatArray(
_dimension
);
511
_eigenVectors[i] = new VBuffer<float>(
_dimension
, vi);
516
_inputType = new VectorDataViewType(NumberDataViewType.Single,
_dimension
);
532
writer.Write(
_dimension
);
538
writer.WriteSinglesNoCount(_mean.GetValues().Slice(0,
_dimension
));
544
writer.WriteSinglesNoCount(_eigenVectors[i].GetValues().Slice(0,
_dimension
));
562
writer.WriteLine("Dimension: {0}",
_dimension
);
625
Host.Check(src.Length ==
_dimension
);
633
Host.Assert(src.Length ==
_dimension
);