2 writes to Deviance
Microsoft.ML.StandardTrainers (2)
Standard\ModelStatistics.cs (2)
102Deviance = deviance; 124Deviance = ctx.Reader.ReadFloat();
10 references to Deviance
Microsoft.ML.StandardTrainers (7)
Standard\ModelStatistics.cs (7)
150ctx.Writer.Write(Deviance); 162writer.WriteLine("Residual Deviance: \t{0}", Deviance); 164writer.WriteLine("AIC: \t{0}", 2 * ParametersCount + Deviance); 176resultCollection.Add(new KeyValuePair<string, object>("Residual Deviance", Deviance)); 178resultCollection.Add(new KeyValuePair<string, object>("AIC", 2 * ParametersCount + Deviance)); 186builder.AddPrimitiveValue("Residual Deviance", NumberDataViewType.Single, Deviance); 188builder.AddPrimitiveValue("AIC", NumberDataViewType.Single, 2 * ParametersCount + Deviance);
Microsoft.ML.Tests (3)
TrainerEstimators\LbfgsTests.cs (3)
152CompareNumbersWithTolerance(stats.Deviance, 458.970917); 202CompareNumbersWithTolerance(stats.Deviance, 45.79, digitsOfPrecision: 0); 242Assert.Equal(132.012238f, stats.Deviance);