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); 486Host.CheckDecode(FloatUtils.IsFinite(_dimension)); 494var meanArray = ctx.Reader.ReadFloatArray(_dimension); 496_mean = new VBuffer<float>(_dimension, meanArray); 501_mean = VBufferUtils.CreateEmpty<float>(_dimension); 509var vi = ctx.Reader.ReadFloatArray(_dimension); 511_eigenVectors[i] = new VBuffer<float>(_dimension, vi); 516_inputType = new VectorDataViewType(NumberDataViewType.Single, _dimension); 532writer.Write(_dimension); 538writer.WriteSinglesNoCount(_mean.GetValues().Slice(0, _dimension)); 544writer.WriteSinglesNoCount(_eigenVectors[i].GetValues().Slice(0, _dimension)); 562writer.WriteLine("Dimension: {0}", _dimension); 625Host.Check(src.Length == _dimension); 633Host.Assert(src.Length == _dimension);