Uploaded image for project: 'Mahout'
  1. Mahout
  2. MAHOUT-678

NullPointerException while using MixedGradient with SGD algorithm

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.5
    • 0.6
    • None
    • None

    Description

      I am trying to use the MixedGradient in OnlineLogisticRegression algorithm. But I will get an NullPointerException randomly if I set the alpha larger than 0.

      I checked the code and found that in the RankingGradient used by MixedGradient, it assume that the target category should be only 2, rather than multiple. And the rank gradient should only be used once the Gradient object knew both the positive and negative targets. I created a simple patch to make it workable, but I am not really understand the MixedGradient method deeply, please check the patch carefully to see if it really works correctly.

      Attachments

        Activity

          People

            tdunning Ted Dunning
            xuwenhao Stanley Xu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified