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

Serialise/Deserialise Lambda value for OnlineLogisticRegression

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.7
    • 0.8
    • None

    Description

      The value for Lambda in OnlineLogisticRegression seems not the be serialised/deserialised correctly.

      If I train a model with a specific lambda value, serialise it, then read it back in, the value of Lambda goes back to the default value (1.0e-5).

      I've created a patch that adds the lambda value into the write/readFields (org.apache.hadoop.io.Writable). Patch includes a unit test that checks the values after serialising/deserialising to/from a ByteArray.

      I think this is correct, unless I'm missing something obvious?

      Note: this patch is not backwards compatible - can easily adapt to be more backwards compatible if required.

      Attachments

        1. MAHOUT-1263.patch
          5 kB
          Mike Davy

        Activity

          People

            smarthi Suneel Marthi
            davym Mike Davy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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