Skip to content

Commit 789687a

Browse files
Remind 2 arguments
1 parent 817b267 commit 789687a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/machine-learning/algorithm-module-reference/execute-r-script.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ This sample shows how to install Zoo:
4848
# The script MUST contain a function named azureml_main
4949
# which is the entry point for this module.
5050

51-
# The entry point function can contain up to two input arguments:
51+
# The entry point function MUST have two input arguments:
5252
# Param<dataframe1>: a R DataFrame
5353
# Param<dataframe2>: a R DataFrame
5454
azureml_main <- function(dataframe1, dataframe2){
@@ -73,7 +73,7 @@ The following example shows how to upload an image file in the **Execute R Scrip
7373
# The script MUST contain a function named azureml_main
7474
# which is the entry point for this module.
7575

76-
# The entry point function can contain up to two input arguments:
76+
# The entry point function MUST have two input arguments:
7777
# Param<dataframe1>: a R DataFrame
7878
# Param<dataframe2>: a R DataFrame
7979
azureml_main <- function(dataframe1, dataframe2){
@@ -127,7 +127,7 @@ Datasets stored in the designer are automatically converted to an R data frame w
127127
# The script MUST contain a function named azureml_main
128128
# which is the entry point for this module.
129129

130-
# The entry point function can contain up to two input arguments:
130+
# The entry point function MUST have two input arguments:
131131
# Param<dataframe1>: a R DataFrame
132132
# Param<dataframe2>: a R DataFrame
133133
azureml_main <- function(dataframe1, dataframe2){
@@ -144,8 +144,8 @@ Datasets stored in the designer are automatically converted to an R data frame w
144144

145145
* The script must contain a function named `azureml_main`, which is the entry point for this module.
146146

147-
* The entry point function can contain up to two input arguments: `Param<dataframe1>` and `Param<dataframe2>`
148-
147+
* The entry point function must have two input arguments: `Param<dataframe1>` and `Param<dataframe2>`, even when these two arguments are not used in the function.
148+
149149
> [!NOTE]
150150
> The data passed to the **Execute R Script** module is referenced as `dataframe1` and `dataframe2`, which is different from Azure Machine Learning designer (the designer reference as `dataset1`, `dataset2`). Please check to make sure input data is referneced correctly in your script.
151151

@@ -191,7 +191,7 @@ The following sample shows how to scale and normalize input data:
191191
# R version: 3.5.1
192192
# The script MUST contain a function named azureml_main
193193
# which is the entry point for this module.
194-
# The entry point function can contain up to two input arguments:
194+
# The entry point function must have two input arguments:
195195
# Param<dataframe1>: a R DataFrame
196196
# Param<dataframe2>: a R DataFrame
197197
azureml_main <- function(dataframe1, dataframe2){

0 commit comments

Comments
 (0)