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

Andrew Lockett 21 Reputation points

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.
1,711 questions
No comments
1 vote

3 answers

Sort by: Most helpful
  1. GiftA-MSFT 11,106 Reputation points

    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

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

  3. Juichia Che 1 Reputation point Microsoft Employee

    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.