[
https://issues.apache.org/jira/browse/MAHOUT-1196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13672588#comment-13672588
]
Vineet Krishnan commented on MAHOUT-1196:
-----------------------------------------
csv.getTargetCategories() even if csv is not used.
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Sorry, I completely forgot about this.
I'll definitely send in a patch an a couple of days.
From: Sebastian Schelter (JIRA)
Sent: 6/1/2013 12:57 PM
To: [email protected]
Subject: [jira] [Commented] (MAHOUT-1196) LogisticModelParameters uses
csv.getTargetCategories() even if csv is not used.
[
https://issues.apache.org/jira/browse/MAHOUT-1196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13672217#comment-13672217
]
Sebastian Schelter commented on MAHOUT-1196:
--------------------------------------------
Vineet, any progress on this?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
> LogisticModelParameters uses csv.getTargetCategories() even if csv is not
> used.
> -------------------------------------------------------------------------------
>
> Key: MAHOUT-1196
> URL: https://issues.apache.org/jira/browse/MAHOUT-1196
> Project: Mahout
> Issue Type: Bug
> Components: Classification
> Affects Versions: 0.8
> Environment: All
> Reporter: Vineet Krishnan
> Priority: Trivial
> Labels: CSV, Classifier, LogisticModelParameters
> Fix For: 0.8
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira