dotnet / dotnet/machinelearning-samples
how we get bias and weight using AutoML?
- 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
Assessment
This issue has not been assessed yet.