[
https://issues.apache.org/jira/browse/MAHOUT-1555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14007243#comment-14007243
]
Sebastian Schelter commented on MAHOUT-1555:
--------------------------------------------
Hi Karol,
Could you update the patch to at least log a warning in such a case?
> Exception thrown when a test example has the label not present in training
> examples
> -----------------------------------------------------------------------------------
>
> Key: MAHOUT-1555
> URL: https://issues.apache.org/jira/browse/MAHOUT-1555
> Project: Mahout
> Issue Type: Bug
> Components: Classification
> Affects Versions: 1.0
> Reporter: Karol Grzegorczyk
> Priority: Minor
> Fix For: 1.0
>
> Attachments: test_label_not_present_in_training_examples.diff
>
>
> Currently an IllegalArgumentException is thrown when a test example has the
> label (belongs to the class) not present in training examples. When the
> number of labels is big, such a situation is likely and valid. The example of
> course will be misclassified, but exception should not be thrown.
--
This message was sent by Atlassian JIRA
(v6.2#6252)