File size: 1,606 Bytes
ae51a24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
$schema: https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json

name: data_split_alzheimers
version: 0.2.0
description: Reads multiple datasets of Alzheimer's images and splits them into training and testing datasets.
display_name: Data Splitting for Alzheimer's Dataset
is_deterministic: true
type: command

code: ./code
command: 'python traintestsplit.py
  --mild_data ${{inputs.mild_data}}
  --moderate_data ${{inputs.moderate_data}}
  --non_data ${{inputs.non_data}}
  --very_mild_data ${{inputs.very_mild_data}}
  --split_size ${{inputs.train_test_split_factor}}
  --training_data_output ${{outputs.training_data}}
  --testing_data_output ${{outputs.testing_data}}
  '

inputs:
  mild_data:
    optional: false
    type: uri_folder
    description: Path to the MildDemented dataset folder.
  moderate_data:
    optional: false
    type: uri_folder
    description: Path to the ModerateDemented dataset folder.
  non_data:
    optional: false
    type: uri_folder
    description: Path to the NonDemented dataset folder.
  very_mild_data:
    optional: false
    type: uri_folder
    description: Path to the VeryMildDemented dataset folder.
  train_test_split_factor:
    optional: false
    type: number
    description: Percentage of data to use for testing (e.g., 20 for 20% testing data).

outputs:
  testing_data:
    type: uri_folder
    description: Path to the output folder for testing data.
  training_data:
    type: uri_folder
    description: Path to the output folder for training data.

resources:
  instance_count: 1

environment: azureml:aml-preprocessing-cli:0.1.0