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