ExcelExampleSource unable to label data
e4gle
New Altair Community Member
As in topic. Here is the code:
ExcelExampleSource trainingData = OperatorServiceI try to apply this data to a model, but:
.createOperator(ExcelExampleSource.class);
trainingData.setParameter("excel_file", "audis_trainingData.xls");
trainingData.setParameter("create_label", "true");
trainingData.setParameter("label_column", "5");
com.rapidminer.operator.UserError: Input example set does not have a label attributeHow come?
Tagged:
0
Answers
-
Well,
probably, because there's no such parameter in the operator?
Greetings,
Sebastian0 -
Apparently, but what is
ExcelExampleSource.PARAMETER_LABEL_COLUMN
?
So how to load labeled data from an excel sheet?0 -
Bump, really want to know what is the answer for that question.So how to load labeled data from an excel sheet? 0 -
Hi,
either use the configuration wizard or just load the data and insert another operator "set role" after this to identify the label attribute.
Greetings,
Sebastian0 -
I thought of that before, but i simply can't find this operator. I know of it's presence in the actual RapidMiner program, but i can't find it in javadoc.0
-
Hi,
because of historical reasons, the class names of the operators are not equivalent to the names inside the program. So if the operator is called "Set Role" one would assume the class would be called "SetRoleOperator" and I really would like that, but unfortunately it is called "ChangeAttributeRole". If you want to match an operators name to a class, take a look in the OperatorsCore.xml in the resource directory of RapidMiner. There the matching is done.
Greetings,
Sebastian0 -
That helped a lot, thanks0