3 writes to FeatureCount
Microsoft.ML.StandardTrainers (3)
FactorizationMachine\FieldAwareFactorizationMachineModelParameters.cs (3)
88
FeatureCount
= featureCount;
123
FeatureCount
= featureCount;
157
FeatureCount
= featureCount;
16 references to FeatureCount
Microsoft.ML.StandardTrainers (16)
FactorizationMachine\FactorizationMachineTrainer.cs (1)
434
ch.Check(predictor.
FeatureCount
== totalFeatureCount, "Input model's feature count mismatches training feature count");
FactorizationMachine\FieldAwareFactorizationMachineModelParameters.cs (12)
92
_latentWeightsAligned = new AlignedArray(
FeatureCount
* FieldCount * LatentDimAligned, 16);
94
for (int j = 0; j <
FeatureCount
; j++)
160
_latentWeightsAligned = new AlignedArray(
FeatureCount
* FieldCount * LatentDimAligned, 16);
161
for (int j = 0; j <
FeatureCount
; j++)
203
Host.Assert(
FeatureCount
> 0);
205
Host.Assert(Utils.Size(_linearWeights) ==
FeatureCount
);
206
Host.Assert(_latentWeightsAligned.Size ==
FeatureCount
* FieldCount * LatentDimAligned);
210
ctx.Writer.Write(
FeatureCount
);
213
float[] latentWeights = new float[
FeatureCount
* FieldCount * LatentDimension];
214
for (int j = 0; j <
FeatureCount
; j++)
270
var latentWeights = new float[
FeatureCount
* FieldCount * LatentDimension];
271
for (int j = 0; j <
FeatureCount
; j++)
FactorizationMachine\FieldAwareFactorizationMachineUtils.cs (3)
103
var featureFieldBuffer = new int[_pred.
FeatureCount
];
104
var featureIndexBuffer = new int[_pred.
FeatureCount
];
105
var featureValueBuffer = new float[_pred.
FeatureCount
];