🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

ExcelExampleSource unable to label data

User: "e4gle"
New Altair Community Member
Updated by Jocelyn
As in topic. Here is the code:
ExcelExampleSource trainingData = OperatorService
.createOperator(ExcelExampleSource.class);
trainingData.setParameter("excel_file", "audis_trainingData.xls");
trainingData.setParameter("create_label", "true");
trainingData.setParameter("label_column", "5");
I try to apply this data to a model, but:
com.rapidminer.operator.UserError: Input example set does not have a label attribute
How come?

Find more posts tagged with

Sort by:
1 - 7 of 71
    User: "land"
    New Altair Community Member
    Well,
    probably, because there's no such parameter in the operator?

    Greetings,
      Sebastian
    User: "e4gle"
    New Altair Community Member
    OP
    Apparently, but what is
    ExcelExampleSource.PARAMETER_LABEL_COLUMN 
    ?

    So how to load labeled data from an excel sheet?
    User: "e4gle"
    New Altair Community Member
    OP
    So how to load labeled data from an excel sheet?
    Bump, really want to know what is the answer for that question.
    User: "land"
    New Altair Community Member
    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,
      Sebastian
    User: "e4gle"
    New Altair Community Member
    OP
    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.
    User: "land"
    New Altair Community Member
    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,
      Sebastian
    User: "e4gle"
    New Altair Community Member
    OP
    That helped a lot, thanks :)