Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use R to get confidence intervals in Azure ML? [closed]

I came across this question which asks if Azure ML can calculate confidence - or probabilities - for row data prediction. However, given that the answer to that question is No, and suggests to use R, I am trying to figure out how to use R to do exactly this for a regression model.

Does anyone have any suggestions for references on where to look for this?

My scenario is that I have used Azure ML to build a boosted decision tree regression model, which outputs a Scored Label column. But I don't know regression analysis well enough to write R code to use the outputted model to get confidence intervals.

I am looking for any references that can help me understand how to do this in R (in conjuncture with Azure ML).

like image 796
Brett Avatar asked Sep 25 '16 23:09

Brett


People also ask

How do you find the confidence interval for a prediction in R?

To find the confidence interval in R, create a new data. frame with the desired value to predict. The prediction is made with the predict() function. The interval argument is set to 'confidence' to output the mean interval.

How do you calculate confidence intervals in machine learning?

(Usually given) If not given, use the following formula:- Margin of error = Critical value * Standard deviation Step 4: Specify the confidence interval. The uncertainty is denoted by the confidence level. And the range of the confidence interval is defined by Eq-1. Calculation of CI requires two statistical parameters.

Which of the following is not one of the Azure ml studio features?

ML Studio (classic) does not support Code SDKs, ML pipeline, Automated model training and has a basic model for MLOPs and many other features were missing that is a part of Azure Machine Learning Studio now.

What is Azureml?

Azure Machine Learning is a cloud service for accelerating and managing the machine learning project lifecycle. Machine learning professionals, data scientists, and engineers can use it in their day-to-day workflows: Train and deploy models, and manage MLOps.


1 Answers

There isn't a straight forward way to compute the confidence interval from the results of the Boosted Decision Tree model in Azure ML.

Here are some alternate suggestions:

  1. Rebuild the model using the library(gbm) http://artax.karlin.mff.cuni.cz/r-help/library/gbm/html/gbm.html or the library(glm) https://stat.ethz.ch/R-manual/R-devel/library/stats/html/glm.html

  2. Then build the confidence interval using confint function: https://stat.ethz.ch/R-manual/R-devel/library/stats/html/confint.html

  3. For a linear model, the confidence interval computation is simpler: http://www.r-tutor.com/elementary-statistics/simple-linear-regression/confidence-interval-linear-regression

like image 61
neerajkh Avatar answered Sep 29 '22 14:09

neerajkh