Mahout
  1. Mahout
  2. MAHOUT-674

Let the TrainLogistic class could print the category feature weight probably

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 0.4, 0.5
    • Fix Version/s: 0.5
    • Component/s: Examples
    • Labels:
    • Environment:

      Mac OS X 10.6.7

      Description

      In the example of trainlogistic, if we add a category feature. It will throw a NullPointerException while printing out the model.

      The root cause is for category feature, the code try to use the feature name as the predictor rather than feature=value as the predictor while get the weight from the trained LR model.

        Activity

        Hide
        Stanley Xu added a comment -

        A one line patch should fix this issue and help the users could try using category feature for simple LR training as an example.

        Show
        Stanley Xu added a comment - A one line patch should fix this issue and help the users could try using category feature for simple LR training as an example.
        Hide
        Sean Owen added a comment -

        Looks like a pretty clear oversight – the value is definitely intended to be a map key and this patch makes it so. Committed.

        Show
        Sean Owen added a comment - Looks like a pretty clear oversight – the value is definitely intended to be a map key and this patch makes it so. Committed.
        Hide
        Hudson added a comment -

        Integrated in Mahout-Quality #760 (See https://hudson.apache.org/hudson/job/Mahout-Quality/760/)

        Show
        Hudson added a comment - Integrated in Mahout-Quality #760 (See https://hudson.apache.org/hudson/job/Mahout-Quality/760/ )

          People

          • Assignee:
            Sean Owen
            Reporter:
            Stanley Xu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 5m
              5m
              Remaining:
              Remaining Estimate - 5m
              5m
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development