Thursday, 9 March 2017

How to use R scripts in Azure Machine Learning Studio and generate a webservice

Background Note
This blog post is the fourth post in a series about how to get started to build a data architecture in the cloud. The architecture is described in the first blog post. This series features two people, Dana Simpsons the data scientist and Frank Steve Davidson the full stack developer, who are building their own SaaS company that will build games based on data science. In this blog post we will describe how Dana will use Azure Machine Learning Studio combined with R to generate the images that Frank will use in the gaming website. In the last blog of this series we will learn how Frank calls this web service.

Introduction to Azure Machine Learning Studio
A good resource to get started with Azure Machine Learning Studio is the free ebook: Microsoft Azure Essentials: Azure Machine Learning. In this blogpost we will focus on the way Dana is working on generating the images for the game website that Dana and Frank are developing. To evaluate Azure Machine Learning Studio, you will need to have a Microsoft Account. You can use this account to log in to http://studio.azureml.net. Exploring Azure Machine Learning Studio is completely free.

Position of this blog in the architecture
Now we will describe the steps that Dana performs to embed her R scripts into Azure Machine Learning Studio and how she will be able to convert the experiments that she makes into a web service so that Frank will be able to use them in the Ruby layer. So the focus of this blog is more on how only a few things are needed so that both Frank and Dana will be able to work with the development tools that they both feel most comfortable with.

Preparing the text to be in the correct format
For this application, Dana started from a book in text format which she converted to a csv file that consists of one column and each row represents one sentence of the text. She did this formatting on her own computer but this can later be automated further in the green block above. 


To be able to use this dataset further, she will upload this csv file as a dataset in Azure ML. So after she has logged in into Azure Ml, she has selected DATASETS in the left column. Next, she clicks on + NEW in the left lower corner and she can upload her dataset to her available datasets in Azure ML. In the picture below you can see all the datasets that she has uploaded in this way.

A high level overview of the experiment
The experiment that she built looks as the picture below. You see that there are two type of boxes, white ones and blue ones. First you only will need to focus on the white boxes. The box containing the text “chapter1_to_5_list.csv” is the box that is selecting the input data set. This dataset is fed to a “Select Column in Dataset”. Next, the output of this data is being fed to several “Execute R Scripts”. These R scripts will be generating the data analysis and the different images that are provided to Frank by the Web service in a next step. 
Now, focus on the blue boxes. You will see that there is one blue box on top which is called Web service input and six blue boxes on the bottom which are called Web service output. When in a next step the web service will be generated from this experiment, random csv files that only have one column can be fed to this web service and the different images can be automatically generated.


A deeper dive into on Execute R Script box
We now look a bit deeper into the calculation of the word cloud that is being performed in the box with the blue border. As you can see in the R code on the right, first the dataset is being selected in dataset1. Next Dana is deleting some common English stopwords to provide a clearer picture about the special words from the book that she will be displaying. Next, she is working further to build a picture of the wordcloud. 
She will right click on the number 2 and will select Visualize. This provides her the output of her R script. Which will look like the picture below. It is important to notice the Graphics title here. In this experiment, she will be generating several graphics and also some extra datasets. When she is happy with her results. She will generate a webservice from this experiment.


The generation of the web service
To generate a web service, she selected, Deploy Web service from the bottom. She also switched the view to the web service view by switching over the slider on the bottom to show the globe. You will see that now the blue boxes of the web service have turned dark blue. There is a curved line from an Execute R Script box to a blue box of the Web service output. When this line starts from the right dot, you will be able to export an image, left dot you will be able to export a csv dataset. Also when you click on a blue box you will be able to provide a meaningful name for the output. 



For their project, Dana and Frank will be working with the Batch Execution mode because they are working with the csv files that will be uploaded. On this page, she will find the API key that she will need to give to Frank.
When she clicks on the Batch Execution mode. She will find the Request URI for the web service that she will need to provide to Frank.
Next, she scrolls down to Sample Request Payload, she can validate that all her different inputs and outputs have been defined properly.


Cost Analysis
Azure Machine Learning Studio has a Free tier that Dana can use for building her current data solutions. For the Web Services, she also still belongs within the DEV/Test limits. All the pricing details can be seen here . The only thing were there will be a cost involved is in the blob storage for the files that will be used as the input and the output for the web service. These are currently 0.01 CAD for using the web service for one book for a bit more than twee weeks.

Conclusion
In this blog post we showed how Azure ML can be used to generate web services on top of the data science experiments that Dana has built. In the next blog, we will show how Frank will call this web service to extract all the different images.

52 comments:

  1. Inquiries around the potential effect of AI on the work environment are inescapable. Will AI assume control over a portion of your tedious errands? machine learning course

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. This preparation helps you in executing examination of huge information on a huge scale. It additionally prepares you on the most proficient method to impart your discoveries in a convincing way.ExcelR Data Science Courses

    ReplyDelete
  4. Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.
    machine learning courses in bangalore

    ReplyDelete
  5. Very informative content and intresting blog
    Join 360digitmg for the best data scientist course at Hyderabad.
    Data scientist course

    ReplyDelete
  6. Great article, I know more information regarding azure cloud migration services and microsoft azure machine learning studio. Thanks for sharing such an amazing blog.
    azure cloud migration services

    ReplyDelete
  7. thanks for sharing such valuable information with us. it’s hard to come by well-informed people in this particular topic, but you explained this really good..
    http://www.analyticspath.com

    ReplyDelete
  8. Nice post admin. Very informative post I found today.
    Make strong fundamentals with Azure training that can help you in your career.

    ReplyDelete
  9. Your description and screenshots will help with Azure. Thanks.

    ReplyDelete
  10. Thanks for sharing this information. I really like your blog post very much. You have really shared a informative and interesting blog post with people..
    data science course fee in hyderabad

    ReplyDelete
  11. I appreciate you giving this knowledge. I really appreciate your great post. You've really given readers access to a useful and engaging blog content.

    CEC Best Colleges In Hyderabad

    ReplyDelete
  12. The author provides an insightful guide on using Azure Machine Learning Studio and R to generate web services for data analysis. It's a valuable resource for those venturing into data architecture in the cloud. Great work!
    Data Analytics Courses in Nashik

    ReplyDelete
  13. Integrating R scripts into Azure Machine Learning Studio for creating web services is a powerful approach to deploying machine learning models. This article offers practical guidance on how to leverage the capabilities of both R and Azure ML Studio for building and deploying predictive models effectively.

    Data Analytics Courses In Kochi



    ReplyDelete
  14. I'm genuinely thankful for your detailed guide and explanation discussed on how to use R scripts in Azure Machine Learning and web service. Thank you so much for sharing.
    Data Analytics Courses In Chennai

    ReplyDelete
  15. I really appreciate your effort in providing this wonderful blog on How to use R scripts in Azure Machine Learning Studio and generate a web service.
    Visit - Data Analytics Courses in Delhi

    ReplyDelete
  16. very nice blog
    Data Analytics Courses In Vadodara

    ReplyDelete
  17. Thanks for providing valuable and insightful tutorial on How to use R scripts in Azure Machine Learning Studio and generate a webservice.
    data analyst courses in limerick

    ReplyDelete
  18. I enjoyed reading it and found the content to be both informative and engaging. Looking forward to more posts.
    Digital marketing courses in city of Westminster

    ReplyDelete
  19. This article was such a refreshing read! Your take on [specific issue] is both timely and relevant. I appreciated how you backed up your points with research while still keeping the tone conversational. It’s a great balance that makes the content enjoyable and informative. Thank you for your hard work—I can’t wait to see what you write next

    Data science courses in Gujarat

    ReplyDelete
  20. Great tutorial on integrating R scripts into Azure Machine Learning Studio! It simplifies the process of generating a web service, making it accessible for data scientists working with Azure.
    Data Science Courses in Singapore

    ReplyDelete

  21. This article provides a comprehensive guide on integrating R scripts with Azure Machine Learning Studio to create web services, making it a valuable resource for data scientists and developers alike. Dana's approach to converting text data into visual insights through R and then deploying it as a web service showcases the seamless collaboration between data science and development.

    For those looking to enhance their data analytics skills, especially in cloud computing and machine learning, I recommend checking out the data analytics courses offered by IIM Skills in Ghana. These courses can provide essential knowledge and hands-on experience that will complement the techniques discussed in this article. Exciting times ahead for Dana and Frank! Data Analytics Courses in Ghana

    ReplyDelete
  22. Data science is rapidly transforming industries, and mastering this field opens up a world of opportunities. Whether you're just starting or looking to refine your skills, enrolling in a structured course can be a game-changer. If you're based in the NCR region, consider checking out the Data science courses in Faridabad. These courses cover everything from the fundamentals of data analysis to advanced topics like machine learning, AI, and big data.

    ReplyDelete
  23. This blog post provides a clear and practical guide on integrating R scripts with Azure Machine Learning Studio to generate web services. The step-by-step approach outlined is incredibly helpful, from preparing datasets and building experiments to deploying the web service. Dana's process of converting text data to visual outputs and the subsequent use of these outputs in a web service is well-detailed and easy to follow. The inclusion of cost analysis adds value by setting realistic expectations for resource usage. Overall, this is a great resource for anyone looking to bridge data science with web development in Azure ML. Looking forward to the next post on how the web service will be utilized!
    data analytics courses in dubai

    ReplyDelete
  24. Great information sharing on integrating R scripts with Azure Machine Learning studio. Happy i found your article and went through it.
    Data Science Courses in Hauz Khas

    ReplyDelete
  25. Great tutorial! Integrating R scripts with Azure Machine Learning opens up so many possibilities for data analysis
    Data science courses in Bhutan

    ReplyDelete
  26. This is one of the best posts I’ve read lately! You tackled a complex issue with such grace. Thank you for your hard work!

    Data science courses in Gujarat

    ReplyDelete
  27. Great insight on How to use R scripts in Azure Machine Learning Studio and generate a webservice very neatly explained step by step. you have made the readers very understandable.
    Online Data Science Course

    ReplyDelete
  28. Thanks for sharing the information on using r scripts.
    Data Science Courses in Hauz Khas

    ReplyDelete
  29. This comment has been removed by the author.

    ReplyDelete
  30. The post is very informative and detailed everything is covered. The content is nice. IIM SKILLS offers you Data science courses in Blackpool with flexible learning.
    Data science Courses In Blackpool

    ReplyDelete
  31. The blog provides a clear, step-by-step guide on integrating R scripts within Azure Machine Learning Studio, making it easy for data scientists to leverage their R skills in a cloud environment.
    Data science Courses in Manchester

    ReplyDelete
  32. "I took IIM Skills’ Data science while living in Mumbai, and it has been fantastic. The online format fits seamlessly into my schedule."

    ReplyDelete
  33. This article provides an insightful look into using Azure Machine Learning Studio with R scripts to create a web service, especially in the context of building a data-driven gaming platform. Data science courses in Mysore

    ReplyDelete
  34. After setting up your experiment, deploy it as a predictive web service. This generates a REST API, enabling others to interact with your model online. It's an efficient way to deploy R-based models in the cloud.
    Thank you for the post.
    Data science Courses in Germany

    ReplyDelete
  35. Data science is shaping the future of countless industries, and it's great to see that aspiring professionals in Iraq now have access to quality courses. If you’re passionate about data and want to develop the skills that are in high demand, be sure to explore the options available here. This could be the beginning of an exciting new career!

    ReplyDelete
  36. R scripts in Azure Machine Learning Studio enable custom analytics integration with ease. By using the **Execute R Script** module, you can run R code directly and deploy it as a REST API for real-time applications. This provides a flexible solution for data processing and model deployment.

    Data Science Course in Chennai

    ReplyDelete
  37. Great post! You’ve explained the integration of R scripts in Azure Machine Learning Studio really well, especially for beginners. The step-by-step approach to generating a web service is incredibly helpful. Would love to see more examples of use cases or common challenges while deploying R-based models.
    Data science course in Bangalore

    ReplyDelete
  38. Fantastic read! I especially enjoyed how you explained everything in detail. You’ve definitely made a complex topic much more approachable.
    Data science courses in chennai

    ReplyDelete
  39. This blog explains how to integrate R scripts into Azure Machine Learning workflows, showcasing practical examples. A must-read for data scientists using Azure services!
    Data science course in Gurgaon

    ReplyDelete
  40. This blog really resonated with me. The points you made were both insightful and thought-provoking.
    Data science courses in Bangalore

    ReplyDelete
  41. Great post! The detailed explanation on using R scripts in Azure Machine Learning is really helpful for those looking to integrate R with cloud-based tools. Thanks for sharing this valuable tutorial—it's a fantastic resource for anyone working with machine learning in Azure!
    Data science courses in Bangladesh

    ReplyDelete
  42. Great article! It's insightful to see how R scripts can be integrated into Azure Machine Learning,this points are very helpful.
    Data science course in Bangalore

    ReplyDelete
  43. I found this article very helpful and great. Machine learning points are very helpful, thanks for sharing.

    technical writing course

    ReplyDelete
  44. In this blog post we will describe how Dana will use Azure Machine Learning Studio combined with R to generate the images that Frank will use in the gaming website. Thanks for sharing very helpful knowledge with us !
    IIM SKILLS Data Science Course Reviews

    ReplyDelete
  45. The guide on using R scripts in Azure Machine Learning is really informative. It’s a perfect resource for anyone looking to integrate R with Azure. Thanks for sharing!
    GST Course

    ReplyDelete
  46. Thanks for sharing such valuable information with us. it’s hard to come by well-informed people in this particular topic, but you explained this really good.
    IIM SKILLS Data Science Course Reviews

    ReplyDelete
  47. Excellent information on using R scripts in Azure.
    Thanks for the share.
    technical writing course

    ReplyDelete
  48. reat post! Your guide on using R scripts in Azure Machine Learning Studio and generating a web service is incredibly useful. I appreciate how you clearly explained the process step-by-step, from integrating R scripts into the Azure environment to deploying them as web services. The practical insights you provided on leveraging R's capabilities in a cloud-based machine learning platform are valuable for anyone looking to scale their data analysis and model deployment. Thanks for sharing such an informative resource—this is a must-read for anyone working with Azure and R!
    Data Science Courses in Rwanda






    ReplyDelete