Book Image

Microsoft Azure Machine Learning

By : Sumit Mund, Christina Storm
Book Image

Microsoft Azure Machine Learning

By: Sumit Mund, Christina Storm

Overview of this book

Table of Contents (21 chapters)
Microsoft Azure Machine Learning
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Extending experiments using the R language


Similar to Python, you can also use the R code/script to extend your experiment inside ML Studio. However, unlike Python, you get two modules for R, which are as follows:

  • The Execute R Script module

  • The Create R Model module

Understanding the Execute R Script module

Similar to the module for Python, the Execute R Script module also has three input ports and two output ports. The property panel for the module comes with an R script editor where you can enter your code, as shown in the following screenshot:

The module comes with a sample script, as you can find in the preceding screenshot. You can use the maml.mapInputPort() method with the port number as argument 1 for Input1, and argument 2 for Input2 to access the input dataset as an R data.frame object.

The third input expects a .zip file to be uploaded to ML Studio to import the existing code. The first output generates a dataset that can be used further in another module and the second output...