Creating an AML file for reading a data file

Description

The process demonstrates how to create an AML file using the Read AML operator for reading a data file. AML files are XML documents that provide metadata about attributes including their names, datatypes, and roles. Once the AML file is created it can be used to read the underlying data file properly.

Input

Pima Indians Diabetes [UCI MLR]

Output

An AML file in the file system and an ExampleSet that contains data imported from the data file using the AML file.

Figure 3.5. The resulting AML file.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<attributeset default_source="pima-indians-diabetes.data" encoding="UTF-8">
  <attribute name="Number of times pregnant " sourcecol="1" valuetype="integer"/>
  <attribute name="Plasma glucose concentration" sourcecol="2" valuetype="integer"/>
  <attribute name="Diastolic blood pressure" sourcecol="3" valuetype="integer"/>
  <attribute name="Triceps skin fold thickness" sourcecol="4" valuetype="integer"/>
  <attribute name="2-Hour serum insulin" sourcecol="5" valuetype="integer"/>
  <attribute name="Body mass index" sourcecol="6" valuetype="real"/>
  <attribute name="Diabetes pedigree function" sourcecol="7" valuetype="real"/>
  <attribute name="Age" sourcecol="8" valuetype="integer"/>
  <label name="Class" sourcecol="9" valuetype="binominal">
    <value>1</value>
    <value>0</value>
  </label>
</attributeset>

Interpretation of the results

The resulting AML file is intended to be distributed together with the data file.

Video

Workflow

import_exp3.rmp

Keywords

importing data
AML

Operators

Read AML