You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Learn how to use the Edit Metadata module in Azure Machine Learning service to change metadata that is associated with columns in a dataset.
4
+
description: Learn how to use the Edit Metadata module in the Azure Machine Learning service to change metadata that's associated with columns in a dataset.
5
5
services: machine-learning
6
6
ms.service: machine-learning
7
7
ms.subservice: core
@@ -16,42 +16,42 @@ ROBOTS: NOINDEX
16
16
17
17
This article describes a module of the visual interface (preview) for the Azure Machine Learning service.
18
18
19
-
Use this module to change metadata that is associated with columns in a dataset. The value and data type of the dataset will be changed after use of the Edit Metadata module.
19
+
Use the Edit Data module to change metadata that's associated with columns in a dataset. The value and data type of the dataset will change after use of the Edit Metadata module.
20
20
21
21
Typical metadata changes might include:
22
22
23
-
+ Treating Boolean or numeric columns as categorical values
23
+
+ Treating Boolean or numeric columns as categorical values.
24
24
25
-
+ Indicating which column contains the **class** label or contains the values you want to categorize or predict
25
+
+ Indicating which column contains the **class** label or contains the values you want to categorize or predict.
26
26
27
-
+ Marking columns as features
27
+
+ Marking columns as features.
28
28
29
-
+ Changing date/time values to numeric values or vice versa
29
+
+ Changing date/time values to numeric values or vice versa.
30
30
31
-
+ Renaming columns
31
+
+ Renaming columns.
32
32
33
-
Use Edit Metadata anytime you need to modify the definition of a column, typically to meet requirements for a downstream module. For example, some modules work only with specific data types or require flags on the columns, such as **IsFeature** or **IsCategorical**.
33
+
Use Edit Metadata anytime you need to modify the definition of a column, typically to meet requirements for a downstream module. For example, some modules work only with specific data types or require flags on the columns, such as `IsFeature` or `IsCategorical`.
34
34
35
-
After performing the required operation, you can reset the metadata to its original state.
35
+
After you perform the required operation, you can reset the metadata to its original state.
36
36
37
37
## Configure Edit Metadata
38
38
39
39
1. In Azure Machine Learning, add the Edit Metadata module to your experiment and connect the dataset you want to update. You can find the dataset under **Data Transformation** in the **Manipulate** category.
40
40
41
-
1.Click**Launch the column selector** and choose the column or set of columns to work with. You can choose columns individually by name or index, or you can choose a group of columns by type.
41
+
1.Select**Launch the column selector** and choose the column or set of columns to work with. You can choose columns individually by name or index, or you can choose a group of columns by type.
42
42
43
43
1. Select the **Data type** option if you need to assign a different data type to the selected columns. You might need to change the data type for certain operations. For example, if your source dataset has numbers handled as text, you must change them to a numeric data type before using math operations.
44
44
45
-
+ The data types supported are **String**, **Integer**, **Double**, **Boolean**, and **DateTime**.
45
+
+ The supported data types are **String**, **Integer**, **Double**, **Boolean**, and **DateTime**.
46
46
47
-
+ If you select multiple columns, you must apply the metadata changes to *all* selected columns. For example, let's say you choose two or three numeric columns. You could change them all to a string data type and rename them in one operation. However, you can't change one column to a string data type and another column from a float to an integer.
47
+
+ If you select multiple columns, you must apply the metadata changes to *all* selected columns. For example, let's say you choose two or three numeric columns. You can change them all to a string data type and rename them in one operation. However, you can't change one column to a string data type and another column from a float to an integer.
48
48
49
-
+ If you do not specify a new data type, the column metadata is unchanged.
49
+
+ If you don't specify a new data type, the column metadata is unchanged.
50
50
51
51
+ The column type and values will change after you perform the Edit Metadata operation. You can recover the original data type at any time by using Edit Metadata to reset the column data type.
52
52
53
53
> [!NOTE]
54
-
> If you change any type of number to the **DateTime** type, leave the **DateTime Format** field blank. Currently it is not possible to specify the target data format.
54
+
> If you change any type of number to the **DateTime** type, leave the **DateTime Format** field blank. Currently it isn't possible to specify the target data format.
55
55
56
56
1. Select the **Categorical** option to specify that the values in the selected columns should be treated as categories.
+**Feature**: Use this option to flag a column as a feature in modules that operate only on feature columns. By default, all columns are initially treated as features.
63
63
64
-
+**Label**: Use this option to mark the label, which is also known as the predictable attribute or target variable. Many modules require that exactly one label column be present in the dataset.
64
+
+**Label**: Use this option to mark the label, which is also known as the predictable attribute or target variable. Many modules require that exactly one label column is present in the dataset.
65
65
66
-
In many cases, Azure Machine Learning can infer that a column contains a class label. By setting this metadata you can ensure that the column is identified correctly. Setting this option does not change data values. It changes only the way that some machine-learning algorithms handle the data.
66
+
In many cases, Azure Machine Learning can infer that a column contains a class label. By setting this metadata, you can ensure that the column is identified correctly. Setting this option does not change data values. It changes only the way that some machine-learning algorithms handle the data.
67
67
68
68
> [!TIP]
69
-
> Do you have data that doesn't fit into these categories? For example, your dataset might contain values such as unique identifiers that are not useful as variables. Sometimes such IDs can cause problems when used in a model.
69
+
> Do you have data that doesn't fit into these categories? For example, your dataset might contain values such as unique identifiers that aren't useful as variables. Sometimes such IDs can cause problems when used in a model.
70
70
>
71
-
> Fortunately, under the covers Azure Machine Learning keeps all of your data, so that you don't have to delete such columns from the dataset. When you need to perform operations on some special set of columns, just remove all other columns temporarily by using the [Select Columns in Dataset](select-columns-in-dataset.md) module. Later you can merge the columns back into the dataset by using the [Add Columns](add-columns.md) module.
71
+
> Fortunately, Azure Machine Learning keeps all of your data, so that you don't have to delete such columns from the dataset. When you need to perform operations on some special set of columns, just remove all other columns temporarily by using the [Select Columns in Dataset](select-columns-in-dataset.md) module. Later you can merge the columns back into the dataset by using the [Add Columns](add-columns.md) module.
72
72
73
73
1. Use the following options to clear previous selections and restore metadata to the default values.
+**Clear score**: Use this option to remove the **score** metadata from the specified column.
82
82
83
-
You currently cannot explicitly mark a column as a score in Azure Machine Learning. However, some operations result in a column being flagged as a score internally. Also, a custom R module might output score values.
83
+
You currently can't explicitly mark a column as a score in Azure Machine Learning. However, some operations result in a column being flagged as a score internally. Also, a custom R module might output score values.
84
84
85
-
1. For **New column names**, type the new name of the selected column or columns.
85
+
1. For **New column names**, enter the new name of the selected column or columns.
86
86
87
-
+ Column names can use only characters that are supported by UTF-8 encoding. Empty strings, nulls, or names consisting entirely of spaces are not allowed.
87
+
+ Column names can use only characters that are supported by UTF-8 encoding. Empty strings, nulls, or names that consist entirely of spaces aren't allowed.
88
88
89
-
+ To rename multiple columns, type the names as a comma-separated list in order of the column indices.
89
+
+ To rename multiple columns, enter the names as a comma-separated list in order of the column indexes.
90
90
91
-
+ All selected columns must be renamed. You cannot omit or skip columns.
91
+
+ All selected columns must be renamed. You can't omit or skip columns.
92
92
93
93
1. Run the experiment.
94
94
95
95
## Next steps
96
96
97
-
See the [set of modules available](module-reference.md) to Azure Machine Learning service.
97
+
See the [set of modules available](module-reference.md) to the Azure Machine Learning service.
0 commit comments