2 writes to Bias
Microsoft.ML.StandardTrainers (2)
Standard\LinearModelParameters.cs (2)
127Bias = bias; 168Bias = ctx.Reader.ReadFloat();
28 references to Bias
Microsoft.ML.IntegrationTests (1)
IntrospectiveTraining.cs (1)
240var bias = linearModel.Bias;
Microsoft.ML.Mkl.Components (4)
OlsLinearRegression.cs (3)
836TValueCheckDecode(Bias, _tValues[0]); 913writer.WriteLine(format, "", "Bias", Bias, _standardErrors[0], _tValues[0], _pValues[0]); 928writer.WriteLine(format, "", "Bias", Bias);
SymSgdClassificationTrainer.cs (1)
717bias = predictor.Bias;
Microsoft.ML.Samples (2)
Dynamic\Transforms\CalculateFeatureContribution.cs (1)
42Console.WriteLine("Bias: " + linearModel.Model.Bias + " Feature1: " +
Dynamic\Transforms\CalculateFeatureContributionCalibrated.cs (1)
44linearModel.Model.SubModel.Bias,
Microsoft.ML.StandardTrainers (21)
Standard\LinearModelParameters.cs (17)
151node.AddAttribute("intercepts", new float[] { Bias }); 169Host.CheckDecode(FloatUtils.IsFinite(Bias)); 225ctx.Writer.Write(Bias); 252predictor["const"] = Bias; 269return Bias + VectorUtils.DotProduct(in weights, in src); 272return Bias + VectorUtils.DotProduct(in _weightsDense, in src); 336bias = first.Bias; 346bias += sub.Bias; 366LinearPredictorUtils.SaveAsCode(writer, in weights, Bias, schema); 382builder.AddPrimitiveValue("Bias", NumberDataViewType.Single, Bias); 530in weights, Bias, schema)); 542LinearPredictorUtils.SaveLinearModelWeightsInKeyValuePairs(in weights, Bias, schema, results); 564writer.Write(LinearPredictorUtils.LinearModelAsIni(in weights, Bias, this, 601writer.Write(LinearPredictorUtils.LinearModelAsIni(in weights, Bias, this, schema, null)); 666in weights, Bias, schema, null)); 687LinearPredictorUtils.SaveLinearModelWeightsInKeyValuePairs(in weights, Bias, schema, results); 767in weights, Bias, schema, null));
Standard\LogisticRegression\LogisticRegression.cs (1)
443return InitializeWeights(pred.Weights, new[] { pred.Bias });
Standard\Online\OnlineLinear.cs (1)
142Bias = predictor.Bias;
Standard\PoissonRegression\PoissonRegression.cs (1)
140return InitializeWeights(modelParameters.Weights, new[] { modelParameters.Bias });
Standard\SdcaBinary.cs (1)
2057bias = predictor.Bias;