3 writes to NumberOfFeatures
Microsoft.ML.StandardTrainers (3)
Standard\LogisticRegression\MulticlassLogisticRegression.cs (3)
461NumberOfFeatures = numFeatures; 508NumberOfFeatures = numFeatures; 551NumberOfFeatures = ctx.Reader.ReadInt32();
21 references to NumberOfFeatures
Microsoft.ML.StandardTrainers (21)
Standard\LogisticRegression\MulticlassLogisticRegression.cs (21)
467Contracts.Assert(weights.Length == NumberOfClasses + NumberOfClasses * NumberOfFeatures); 474weights.CopyTo(ref Weights[i], NumberOfClasses + i * NumberOfFeatures, NumberOfFeatures); 478InputType = new VectorDataViewType(NumberDataViewType.Single, NumberOfFeatures); 515Contracts.Assert(weights[iClass].Length == NumberOfFeatures); 523InputType = new VectorDataViewType(NumberDataViewType.Single, NumberOfFeatures); 552Host.CheckDecode(NumberOfFeatures >= 1); 567Host.CheckDecode(numWeights == NumberOfClasses * NumberOfFeatures); 571var w = ctx.Reader.ReadFloatArray(NumberOfFeatures); 572Weights[i] = new VBuffer<float>(NumberOfFeatures, w); 591Host.CheckDecode(Utils.IsIncreasing(0, indices[i], NumberOfFeatures)); 601Weights[i] = new VBuffer<float>(NumberOfFeatures, Utils.Size(values), values, indices[i]); 605InputType = new VectorDataViewType(NumberDataViewType.Single, NumberOfFeatures); 633Host.Assert(fw.Length == NumberOfFeatures); 651ctx.Writer.Write(NumberOfFeatures); 661ctx.Writer.Write(NumberOfFeatures * Weights.Length); 664Host.Assert(fv.Length == NumberOfFeatures); 775Host.Check(src.Length == NumberOfFeatures); 784Host.Check(src.Length == NumberOfFeatures, "src length should equal the number of features"); 839AnnotationUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, NumberOfFeatures, ref names); 1100AnnotationUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, NumberOfFeatures, ref dst);