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

LogisticModelParameters uses csv.getTargetCategories() even if csv is not used.

    XMLWordPrintableJSON

    Details

      Description

      saveTo(OutputStream out) tries to get csv.getTargetCategories() even when it has already been set. In a case when CsvRecordFactory is not used, this gives a NullPointerException when saveTo() is called.

      IMHO a simple null check for targetCategories is sufficient.

        Attachments

          Activity

            People

            • Assignee:
              vineetk32 Vineet Krishnan
              Reporter:
              vineetk32 Vineet Krishnan
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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