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