Skip to content

Commit d156bac

Browse files
committed
update how-to-r-train-model
1 parent 51d8629 commit d156bac

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

articles/machine-learning/how-to-r-modify-script-for-production.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ saveRDS(myobject, file = file.path(args$output,"myobject.rds"))
129129

130130
```
131131

132-
## `crate` your models with the `carrier` package
132+
## <a name="crate"></a>`crate` your models with the `carrier` package
133133

134134
The [R MLflow API documentation](https://MLflow.org/docs/latest/models.html#r-function-crate) specifies that your R models need to be of the `crate` _model flavor_.
135135

articles/machine-learning/how-to-r-train-model.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,8 @@ Create this folder structure for your project:
4444
> [!IMPORTANT]
4545
> All source code goes in the `src` directory.
4646
47-
* The **r-source.R** file is the R script that you adapted to run in production
48-
* The **azureml_utils.R** file is necessary. The source code is shown [here](how-to-r-modify-script-for-production.md#source-the-azureml_utilsr-helper-script)
49-
47+
* The **r-source.R** file is the R script that you adapted to run in production. Make sure you use the source code tips from the [adapting article](how-to-r-modify-script-for-production.md#source-the-r-script.md#crate), especially to crate and log your model.
48+
* The **azureml_utils.R** file is necessary. Use [this source code](how-to-r-modify-script-for-production.md#source-the-azureml_utilsr-helper-script) for the contents of the file.
5049

5150

5251
## Prepare the job YAML
@@ -159,7 +158,7 @@ Finally, once the training job is complete, register your model if you want to d
159158

160159
:::image type="content" source="media/how-to-r-train-model/register-model.png" alt-text="Screenshot shows the Job section of studio with the Outputs section open.":::
161160

162-
1. For **Model type**, change the default from **MLflow** to **Unspecified type**.
161+
1. Do not use the **MLflow** model type, even though it is detected. Change **Model type** from the default **MLflow** to **Unspecified type**. Leaving it as **MLflow** will cause an error.
163162
1. For **Job output**, select **models**, the folder that contains the model.
164163
1. Select **Next**.
165164
1. Supply the name you wish to use for your model. Add **Description**, **Version**, and **Tags** if you wish.

0 commit comments

Comments
 (0)