[ 
https://issues.apache.org/jira/browse/MAHOUT-826?focusedWorklogId=1000347&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1000347
 ]

ASF GitHub Bot logged work on MAHOUT-826:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 15/Jan/26 17:29
            Start Date: 15/Jan/26 17:29
    Worklog Time Spent: 10m 
      Work Description: guan404ming merged PR #832:
URL: https://github.com/apache/mahout/pull/832




Issue Time Tracking
-------------------

    Worklog Id:     (was: 1000347)
    Time Spent: 1h 20m  (was: 1h 10m)

> Bayes/CBayes classification on a non-existing feature
> -----------------------------------------------------
>
>                 Key: MAHOUT-826
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-826
>             Project: Mahout
>          Issue Type: Bug
>    Affects Versions: 0.5
>            Reporter: Andre-Philippe Paquet
>            Assignee: Robin Anil
>            Priority: Minor
>             Fix For: 0.7
>
>         Attachments: mahout-826.patch, mahout-826.patch
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> (see http://comments.gmane.org/gmane.comp.apache.mahout.user/9597)
> Using CBayes or Bayes, when trying to classify a feature/word that doesn't 
> exist in the model, instead of returning the default/unknown label, the 
> algorithm returns all labels with a constant score (ex: 12.386649147018964). 
> After a quick look in CBayesAlgorithm, I found the problem in the 
> featureWeight function that returns the theta normalized weight even if the 
> feature didn't have any match (result=0).
> As a fix, I overrided the function in a subclass and return 0 if the weight 
> of the current feature in the current label is 0. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to