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