36 references to Weights
Microsoft.ML.IntegrationTests (20)
Explainability.cs (1)
104
var weights = linearModel.
Weights
;
IntrospectiveTraining.cs (1)
241
var weights = linearModel.
Weights
;
Training.cs (18)
104
var firstModelWeights = firstModel.Model.
Weights
;
108
var firstModelWeightsPrime = firstModel.Model.
Weights
;
112
var secondModelWeights = secondModel.Model.
Weights
;
192
var firstModelWeights = firstModel.Model.
Weights
;
196
var firstModelWeightsPrime = firstModel.Model.
Weights
;
200
var secondModelWeights = secondModel.Model.
Weights
;
236
var firstModelWeights = firstModel.Model.SubModel.
Weights
;
240
var firstModelWeightsPrime = firstModel.Model.SubModel.
Weights
;
244
var secondModelWeights = secondModel.Model.SubModel.
Weights
;
330
var firstModelWeights = firstModel.Model.
Weights
;
334
var firstModelWeightsPrime = firstModel.Model.
Weights
;
338
var secondModelWeights = secondModel.Model.
Weights
;
374
var firstModelWeights = firstModel.Model.
Weights
;
378
var firstModelWeightsPrime = firstModel.Model.
Weights
;
382
var secondModelWeights = secondModel.Model.
Weights
;
422
var firstModelWeights = firstModel.Model.SubModel.
Weights
;
426
var firstModelWeightsPrime = firstModel.Model.SubModel.
Weights
;
430
var secondModelWeights = secondModel.Model.SubModel.
Weights
;
Microsoft.ML.Samples (10)
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportance.cs (1)
63
linearPredictor.Model.SubModel.
Weights
[i],
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportanceLoadFromDisk.cs (1)
62
linearPredictor.Model.SubModel.
Weights
[i], // this way we can access the weights inside the submodel
Dynamic\Trainers\Regression\OrdinaryLeastSquaresAdvanced.cs (1)
58
var weightsValues = model.Model.
Weights
;
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptionsAdvanced.cs (1)
62
var weightsValues = model.Model.
Weights
;
Dynamic\Trainers\Regression\PermutationFeatureImportance.cs (1)
73
linearPredictor.Model.
Weights
[i],
Dynamic\Trainers\Regression\PermutationFeatureImportanceLoadFromDisk.cs (1)
80
linearPredictor.Model.
Weights
[i],
Dynamic\Transforms\CalculateFeatureContribution.cs (2)
43
linearModel.Model.
Weights
[0] + " Feature2: " + linearModel.Model
44
.
Weights
[1]);
Dynamic\Transforms\CalculateFeatureContributionCalibrated.cs (2)
45
linearModel.Model.SubModel.
Weights
[0],
46
linearModel.Model.SubModel.
Weights
[1]);
Microsoft.ML.StandardTrainers (2)
Standard\LogisticRegression\LogisticRegression.cs (1)
443
return InitializeWeights(pred.
Weights
, new[] { pred.Bias });
Standard\PoissonRegression\PoissonRegression.cs (1)
140
return InitializeWeights(modelParameters.
Weights
, new[] { modelParameters.Bias });
Microsoft.ML.Tests (4)
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (1)
399
var weights = linearModel.
Weights
;
Transformers\CountTargetEncodingTests.cs (3)
87
.Append(ML.BinaryClassification.Trainers.AveragedPerceptron().WithOnFitDelegate(x => weights = x.Model.
Weights
));
95
.Append(ML.BinaryClassification.Trainers.AveragedPerceptron().WithOnFitDelegate(x => weightsNoNoise = x.Model.
Weights
));
104
.Append(ML.BinaryClassification.Trainers.AveragedPerceptron().WithOnFitDelegate(x => weightsNoNoise2 = x.Model.
Weights
));