3 writes to LatentDimension
Microsoft.ML.StandardTrainers (3)
FactorizationMachine\FieldAwareFactorizationMachineModelParameters.cs (3)
89LatentDimension = latentDim; 124LatentDimension = latentDim; 158LatentDimension = latentDim;
19 references to LatentDimension
Microsoft.ML.StandardTrainers (19)
FactorizationMachine\FactorizationMachineTrainer.cs (1)
435ch.Check(predictor.LatentDimension == _latentDim, "Input model's latent dimension mismatches trainer's");
FactorizationMachine\FieldAwareFactorizationMachineModelParameters.cs (18)
73/// and each latent vector contains <see cref="LatentDimension"/> values. In the f-th field, the j-th feature's latent vector, `v_{j, f}` in the doc 98int index = j * FieldCount * LatentDimension + f * LatentDimension; 102if (k < LatentDimension) 165int vBias = j * FieldCount * LatentDimension + f * LatentDimension; 169if (k < LatentDimension) 204Host.Assert(LatentDimension > 0); 211ctx.Writer.Write(LatentDimension); 213float[] latentWeights = new float[FeatureCount * FieldCount * LatentDimension]; 218int vBias = j * FieldCount * LatentDimension + f * LatentDimension; 220for (int k = 0; k < LatentDimension; k++) 263/// and each latent vector contains <see cref="LatentDimension"/> values. In the f-th field, the j-th feature's latent vector, `v_{j, f}` in the doc 270var latentWeights = new float[FeatureCount * FieldCount * LatentDimension]; 275int index = j * FieldCount * LatentDimension + f * LatentDimension; 277for (int k = 0; k < LatentDimension; k++)