dotnet / dotnet/machinelearning-samples

how we get bias and weight using AutoML?

Open
#659 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
4.7k
Forks
2.7k
Avg merge
2d 22h
Merged PRs (30d)
1

Description

we required to access submodel are as follows:

After loading model for binary classification we are trying to get submodel and calibrator

but if you see after loading model we write below code

((Microsoft.ML.Calibrators.CalibratedModelParametersBase)((Microsoft.ML.Data.PredictionTransformerBase)((Microsoft.ML.Data.TransformerChain)mlModel).LastTransformer).Model).SubModel
but failed to getting sub model which is required for us for
LinearBinaryModelParameters

if you see in CreateModel method we easily get SubModel by writing below code

LinearBinaryModelParameters linearBinaryModelParameters = ((Microsoft.ML.Data.TransformerChain>>)mlModel).LastTransformer.Model.SubModel;
but same code if we writer after loading model the we got exception of casting

please guide us.
[mlApp_ex.zip](https://github.com/dotnet/machinelearning-samples/files/3631575/mlApp_ex.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.