2 writes to Rank
Microsoft.ML.PCA (2)
PcaTransformer.cs (2)
111
Rank
= rank;
128
Rank
= ctx.Reader.ReadInt32();
25 references to Rank
Microsoft.ML.PCA (25)
PcaTransformer.cs (25)
106
public DataViewType OutputType => new VectorDataViewType(NumberDataViewType.Single,
Rank
);
112
Contracts.CheckParam(0 <
Rank
&&
Rank
<= Dimension, nameof(
Rank
), "Rank must be positive, and at most the dimension of untransformed data");
129
Contracts.CheckDecode(0 <
Rank
&&
Rank
<= Dimension);
131
Eigenvectors = new float[
Rank
][];
132
for (int i = 0; i <
Rank
; i++)
139
Contracts.CheckDecode(MeanProjected == null || (MeanProjected.Length ==
Rank
&& FloatUtils.IsFinite(MeanProjected)));
154
Contracts.Assert(0 <
Rank
&&
Rank
<= Dimension);
156
ctx.Writer.Write(
Rank
);
157
for (int i = 0; i <
Rank
; i++)
162
Contracts.Assert(MeanProjected == null || (MeanProjected.Length ==
Rank
&& FloatUtils.IsFinite(MeanProjected)));
175
MeanProjected = new float[
Rank
];
176
for (var i = 0; i <
Rank
; ++i)
310
oversampledRank[iinfo] = Math.Min(transformInfos[iinfo].
Rank
+ columns[iinfo].Oversampling, transformInfos[iinfo].Dimension);
591
var editor = VBufferEditor.Create(ref dst, transformInfo.
Rank
);
592
for (int i = 0; i < transformInfo.
Rank
; i++)
640
float[] principalComponents = new float[transformInfo.
Rank
* transformInfo.Dimension];
641
for (int i = 0; i < transformInfo.
Rank
; i++)
645
long[] pcaDims = { transformInfo.
Rank
, transformInfo.Dimension };
648
float[] zeroMean = new float[transformInfo.
Rank
];
651
Array.Copy(transformInfo.MeanProjected, zeroMean, transformInfo.
Rank
);
654
long[] meanDims = { transformInfo.
Rank
};