The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Order of label values in AML file
Hi
It's my impression that the order of the label values in an AML files must match the order of labels in the associated CSV file for a proper plot displaying Otherwise it seems to me the plot legend will be disturbed.
Here is my AML file
It's my impression that the order of the label values in an AML files must match the order of labels in the associated CSV file for a proper plot displaying Otherwise it seems to me the plot legend will be disturbed.
Here is my AML file
<?xml version="1.0" encoding="windows-1252"?>Here is my CSV file:
<attributeset default_source="testLearnerSource.csv">
<id name = "Origin" sourcecol = "1" valuetype = "nominal"/>
<attribute name = "AttrPosX" sourcecol = "2" valuetype = "real"/>
<attribute name = "AttrPosY" sourcecol = "3" valuetype = "real"/>
<attribute name = "AttrValue" sourcecol = "4" valuetype = "real"/>
<label name = "Class" sourcecol = "5" valuetype = "nominal">
<value>0</value>
<value>1KS</value>
<value>1RT</value>
<value>2KS</value>
<value>2RT</value>
<value>3RT</value>
<value>3KS</value>
<value>4RT</value>
<value>4KS</value>
<value>5RT</value>
<value>5KS</value>
<value>6RT</value>
<value>6KS</value>
<value>7RT</value>
<value>7KS</value>
</label>
</attributeset>
091021_091358.mea;1,219;65,000;1,715;1RTIs this a known issue?
091023_100205.mea;1,215;66,000;1,530;3RT
091024_134457.mea;1,216;64,000;1,672;4KS
091027_093335.mea;1,215;66,000;1,637;7KS
091023_103428.mea;1,215;66,000;1,620;3KS
091025_123413.mea;1,218;66,000;1,140;5RT
091022_093037.mea;1,219;67,000;1,733;2KS
091020_142204.mea;1,216;65,000;1,716;0
091021_094621.mea;1,217;65,000;1,695;1KS
091024_141721.mea;1,216;66,000;1,213;4RT
091025_120150.mea;1,218;65,000;1,665;5KS
091026_102537.mea;1,217;66,000;1,031;6RT
091026_095313.mea;1,215;65,000;1,638;6KS
091027_101649.mea;1,213;66,000;1,016;7RT
0
Answers
the order of values is determined by the AML file, if you use the Read AML operator. If you use the Read CSV operator, the order of labels is in deed dependent on the order of occurrence.
Greetings,
Sebastian