Cannot map index of nominal attribute to nominal value

Mo1
Mo1 New Altair Community Member
edited November 5 in Community Q&A

Cannot map index of nominal attribute to nominal value



Hi, 

while preprocessing a Textmining operation i got the following problem : 

 

bug 2 26.10.JPGbug3.JPG

 

 

The Subprocesses are : 

block 1.JPGblock 2 a.JPGblock 2b.JPGblock 2c.JPGblock 3.JPG

 

How can i fix this? 


Answers

  • MartinLiebig
    MartinLiebig
    Altair Employee

    Hi,

     

    let me explain what happend.

    In RM we map Nominal values to Integers. So if you store nominals we have a nominal mapping store like:

    i -> 0

    love ->1

    RapidMiner ->2

     

    In your case an operator wants to get the Nominalstring for the mapped value 3. This is not exsisting. To be honest i never experienced this error so far. Can you maybe tell me which operator is throwing the error?

     

    ~Martin

  • Mo1
    Mo1 New Altair Community Member

    Hey Martin, 

     

    thank you so much for your answer. 
    To be honest i am not sure which operator throws the error. The only operator which throws an alert sign is Generate ID (2).  Could this be possible? Or how can I figure out which operator needs to be fixed? 

    Again, thank you so much for helping a desperate student. 


    WBR 


    Maurice

  • MartinLiebig
    MartinLiebig
    Altair Employee

    Hi Mo1,

     

    if you click on details we can see the stack trace which tells us a lot about whats happening. Could you post this one?

     

    ~Martin

  • Mo1
    Mo1 New Altair Community Member

    Hi Martin, 

     

    of course :)

    • Exception: com.rapidminer.example.AttributeTypeException
    • Message: Cannot map index of nominal attribute to nominal value: index 0 is out of bounds!
    • Stack trace:
    • com.rapidminer.example.table.PolynominalMapping.mapIndex(PolynominalMapping.java:140)
    • com.rapidminer.operator.text.io.ExampleSet2Documents.doWork(ExampleSet2Documents.java:106)
    • com.rapidminer.operator.Operator.execute(Operator.java:1002)
    • com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:76)
    • com.rapidminer.operator.ExecutionUnit$3.run(ExecutionUnit.java:811)
    • com.rapidminer.operator.ExecutionUnit$3.run(ExecutionUnit.java:806)
    • java.security.AccessController.doPrivileged(Native Method)
    • com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:806)
    • com.rapidminer.operator.OperatorChain.doWork(OperatorChain.java:392)
    • com.rapidminer.operator.SimpleOperatorChain.doWork(SimpleOperatorChain.java:99)
    • com.rapidminer.operator.Operator.execute(Operator.java:1002)
    • com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:76)
    • com.rapidminer.operator.ExecutionUnit$3.run(ExecutionUnit.java:811)
    • com.rapidminer.operator.ExecutionUnit$3.run(ExecutionUnit.java:806)
    • java.security.AccessController.doPrivileged(Native Method)
    • com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:806)
    • com.rapidminer.operator.OperatorChain.doWork(OperatorChain.java:392)
    • com.rapidminer.operator.Operator.execute(Operator.java:1002)
    • com.rapidminer.Process.run(Process.java:1195)
    • com.rapidminer.Process.run(Process.java:1091)
    • com.rapidminer.Process.run(Process.java:1044)
    • com.rapidminer.Process.run(Process.java:1039)
    • com.rapidminer.Process.run(Process.java:1029)
    • com.rapidminer.gui.ProcessThread.run(ProcessThread.java:65)
  • Mo1
    Mo1 New Altair Community Member

    Hi Martin, 

    is there anything you can figure out from the trace?

     

    WBR Maurice

  • Mo1
    Mo1 New Altair Community Member

    Hi Martin, 

     

    is there anything new you could find out?

     

    WBR 

     

    Mo

  • sgenzer
    sgenzer
    Altair Employee

    Hello @Mo1 - if you're trying to get someone's attention on the forum, please use the @ handle with the username in your post.  It will be more likely to attract that person's attention - particularly someone as busy as @mschmitz :)

     

    Scott