2 writes to ParametersCount
Microsoft.ML.StandardTrainers (2)
Standard\ModelStatistics.cs (2)
100ParametersCount = paramCount; 118ParametersCount = ctx.Reader.ReadInt32();
23 references to ParametersCount
Microsoft.ML.StandardTrainers (21)
Standard\ModelStatistics.cs (21)
119Env.CheckDecode(ParametersCount > 0); 144Env.Assert(ParametersCount > 0); 145ctx.Writer.Write(ParametersCount); 164writer.WriteLine("AIC: \t{0}", 2 * ParametersCount + Deviance); 178resultCollection.Add(new KeyValuePair<string, object>("AIC", 2 * ParametersCount + Deviance)); 188builder.AddPrimitiveValue("AIC", NumberDataViewType.Single, 2 * ParametersCount + Deviance); 275float[] stdErrorValues = ctx.Reader.ReadFloatArray(ParametersCount); 277env.CheckDecode(length >= ParametersCount); 279if (length == ParametersCount) 285env.Assert(length > ParametersCount); 286int[] stdErrorIndices = ctx.Reader.ReadIntArray(ParametersCount); 287_coeffStdError = new VBuffer<float>(length, ParametersCount, stdErrorValues, stdErrorIndices); 320Env.Assert(coeffStdErrorValues.Length == ParametersCount); 362var statisticsCount = ParametersCount - 1; 374for (int i = 1; i < ParametersCount; i++) 413List<CoefficientStatistics> result = new List<CoefficientStatistics>(ParametersCount - 1); 416float[] zScores = new float[ParametersCount - 1]; 417for (int i = 1; i < ParametersCount; i++) //skip the bias term 442for (int i = 1; i < ParametersCount; i++) //skip the bias term 464if (paramCountCap > ParametersCount) 465paramCountCap = ParametersCount;
Microsoft.ML.Tests (2)
TrainerEstimators\LbfgsTests.cs (2)
154Assert.Equal(7, stats.ParametersCount); 244Assert.Equal(11, stats.ParametersCount);