Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.

Cannot map index of nominal attribute to nominal value

Mo1Mo1 Member Posts: 7 Contributor II
edited October 2019 in Help

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? 


Tagged:

Answers

  • MartinLiebigMartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,528 RM Data Scientist

    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

    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
  • Mo1Mo1 Member Posts: 7 Contributor II

    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

  • MartinLiebigMartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,528 RM Data Scientist

    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

    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
  • Mo1Mo1 Member Posts: 7 Contributor II

    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)
  • Mo1Mo1 Member Posts: 7 Contributor II

    Hi Martin, 

    is there anything you can figure out from the trace?

     

    WBR Maurice

  • Mo1Mo1 Member Posts: 7 Contributor II

    Hi Martin, 

     

    is there anything new you could find out?

     

    WBR 

     

    Mo

  • sgenzersgenzer Administrator, Moderator, Employee, RapidMiner Certified Analyst, Community Manager, Member, University Professor, PM Moderator Posts: 2,959 Community Manager

    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

Sign In or Register to comment.