Azure ML 'Designer': how to view logistic regression model coefficients / intercept

Andrew Lockett 21 Reputation points
2020-12-08T13:18:23.623+00:00

Using Azure ML Designer it is easy to create a model using the Two-Class Logistic Regression & Train Model components. However it does not seem to be possible to view the regression coefficients / intercept (ie. the weights applied to the feature values within the model). How can we go about viewing the model coefficients? Are they stored in one of the Train Model output files (eg. data.ilearner) in a way that can be viewed / exported to a human readable format?

Note: this question relates to the Azure Machine Learning Studio (not the older 'classic' version where I believe it was possible to 'right-click' and visualise the model coefficients).

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,577 questions
0 comments No comments
{count} vote

3 answers

Sort by: Most helpful
  1. GiftA-MSFT 11,151 Reputation points
    2020-12-09T05:26:10.807+00:00

    Thanks for reaching out. These are the metrics reported when evaluating binary classification models. You can view the results by clicking evaluate model > visualize > evaluation results. Hope this helps.


  2. Alan Yu 1 Reputation point
    2022-10-05T20:37:41.743+00:00

    Any update on this? Is it still not possible to get the coefficients for the trained linear regression model?

    0 comments No comments

  3. Juichia Che 1 Reputation point Microsoft Employee
    2022-12-15T21:18:09.213+00:00

    You could use the Execute Python Script component to write code that gets the run context, which returns the run of the execute python script component, from there you get the parent of that run which is the pipeline run context. Next, iterate through the pipeline run context to find the child that contains the name "Train Model". This child has the output of the trained model, which you can download to a runtime directory, and then load the model using that runtime path. Once the model is loaded, you can access the coefficients.