Cannot map index of nominal attribute to nominal value
Cannot map index of nominal attribute to nominal value
Hi,
while preprocessing a Textmining operation i got the following problem :
The Subprocesses are :
How can i fix this?
Answers
-
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
0 -
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
Maurice0 -
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
0 -
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)
0 -
Hi Martin,
is there anything you can figure out from the trace?WBR Maurice
0 -
Hi Martin,
is there anything new you could find out?
WBR
Mo
0