forked from Azure/azureml-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
train.yml
31 lines (31 loc) · 826 Bytes
/
train.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$schema: https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json
name: train_data_component
display_name: train_data
description: A example train component
tags:
author: azureml-sdk-team
version: 3
type: command
inputs:
training_data:
type: uri_folder
max_epocs:
type: integer
learning_rate:
type: number
default: 0.01
learning_rate_schedule:
type: string
default: time-based
outputs:
model_output:
type: uri_folder
code: ./train_src
environment: azureml:AzureML-sklearn-0.24-ubuntu18.04-py37-cpu:1
command: >-
python train.py
--training_data ${{inputs.training_data}}
--max_epocs ${{inputs.max_epocs}}
--learning_rate ${{inputs.learning_rate}}
--learning_rate_schedule ${{inputs.learning_rate_schedule}}
--model_output ${{outputs.model_output}}