Setting correct data type for output port of Operator

RMUser2806RMUser2806 Member Posts: 1 Learner I
Hello everyone,
I recently encountered a problem while I was trying to define the correct data type for the output ports of my curstom operator in my extension.
It seems to be not possible to define a data type at all. No matter which data type I define, this port's data type is in RapidMiner always displayed as an IOObject. I was trying the same for the input ports of this operator and it works perfectly...
Can somebody help me to set the correct data type for the output port of an operator? How can I do it within the Java class of my operator?

Thanks in advance.


  • Options
    MartinLiebigMartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,517 RM Data Scientist
    i think this is taken from the meta data transformtion, which is defined in the constructor. here is for example my LDAOperator constructor:

    public LDA(OperatorDescription description) {
    super(description); getTransformer().addRule(new GenerateNewExampleSetMDRule(exaOutput) {

    public void transformMD() {
    try {
    } catch (UndefinedParameterError undefinedParameterError) {

    getTransformer().addRule(new GenerateNewExampleSetMDRule(topicOutput) {

    public void transformMD() {
    ExampleSetMetaData md = new ExampleSetMetaData();
    md.addAttribute(new AttributeMetaData("topicId", Ontology.INTEGER));
    md.addAttribute(new AttributeMetaData("word", Ontology.NOMINAL));
    md.addAttribute(new AttributeMetaData("weight", Ontology.REAL));

    getTransformer().addRule(new GenerateNewMDRule(performanceOutput, new MetaData(PerformanceVector.class)));

    there is plenty of examples in the OS studio code.


    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
Sign In or Register to comment.