3 writes to FieldCount
Microsoft.ML.StandardTrainers (3)
FactorizationMachine\FieldAwareFactorizationMachineModelParameters.cs (3)
87
FieldCount
= fieldCount;
122
FieldCount
= fieldCount;
156
FieldCount
= fieldCount;
28 references to FieldCount
Microsoft.ML.StandardTrainers (28)
FactorizationMachine\FieldAwareFactorizationMachineModelParameters.cs (24)
72
/// <param name="latentWeights">Latent representation of each feature. Note that one feature may have <see cref="
FieldCount
"/> latent vectors
92
_latentWeightsAligned = new AlignedArray(FeatureCount *
FieldCount
* LatentDimAligned, 16);
96
for (int f = 0; f <
FieldCount
; f++)
98
int index = j *
FieldCount
* LatentDimension + f * LatentDimension;
99
int indexAligned = j *
FieldCount
* LatentDimAligned + f * LatentDimAligned;
160
_latentWeightsAligned = new AlignedArray(FeatureCount *
FieldCount
* LatentDimAligned, 16);
163
for (int f = 0; f <
FieldCount
; f++)
165
int vBias = j *
FieldCount
* LatentDimension + f * LatentDimension;
166
int vBiasAligned = j *
FieldCount
* LatentDimAligned + f * LatentDimAligned;
202
Host.Assert(
FieldCount
> 0);
206
Host.Assert(_latentWeightsAligned.Size == FeatureCount *
FieldCount
* LatentDimAligned);
209
ctx.Writer.Write(
FieldCount
);
213
float[] latentWeights = new float[FeatureCount *
FieldCount
* LatentDimension];
216
for (int f = 0; f <
FieldCount
; f++)
218
int vBias = j *
FieldCount
* LatentDimension + f * LatentDimension;
219
int vBiasAligned = j *
FieldCount
* LatentDimAligned + f * LatentDimAligned;
234
FieldAwareFactorizationMachineInterface.CalculateIntermediateVariables(
FieldCount
, LatentDimAligned, count,
262
/// Latent representation of each feature. Note that one feature may have <see cref="
FieldCount
"/> latent vectors
270
var latentWeights = new float[FeatureCount *
FieldCount
* LatentDimension];
273
for (int f = 0; f <
FieldCount
; f++)
275
int index = j *
FieldCount
* LatentDimension + f * LatentDimension;
276
int indexAligned = j *
FieldCount
* LatentDimAligned + f * LatentDimAligned;
342
int featCount = Model.
FieldCount
;
414
for (int i = 0; i < Model.
FieldCount
; i++)
FactorizationMachine\FieldAwareFactorizationMachineUtils.cs (4)
101
var latentSum = new AlignedArray(_pred.
FieldCount
* _pred.
FieldCount
* _pred.LatentDimAligned, 16);
106
var inputGetters = new ValueGetter<VBuffer<float>>[_pred.
FieldCount
];
114
for (int f = 0; f < _pred.
FieldCount
; f++)