Uh oh!
There was an error while loading. Please reload this page.
[SPARK-9312] [ML] Added max confidence factor to OneVsRestModel - #7652
[SPARK-9312] [ML] Added max confidence factor to OneVsRestModel#7652badriub wants to merge 8 commits into
Conversation
There was a problem hiding this comment.
Without commenting on the suitability of the PR -- I can at least say that throw new Exception is never a great idea. Use UnsupportedOperationException here, for example.
jkbradley
commented
Jul 25, 2015
@badriub I just added some thoughts on the JIRA. Could you please take a look and respond there? Thanks! |
badriub
commented
Jul 28, 2015
I have replied on the JIRA, please take a look. Thanks. |
predictive probability since it was not needed.
There was a problem hiding this comment.
Used the Intellj importer plugin as recommended on the style guide.
There was a problem hiding this comment.
You may need to adjust the import organizer settings, though. The order should be Java, Scala, other, Spark.
badriub
commented
Jul 29, 2015
@jkbradley : I've reverted the changes for LogisticRegression (for entire class hierarchy) since they were not needed. I've updated JIRA and PR as discussed. |
There was a problem hiding this comment.
It will be easier for you if you have OneVsRestParams extend ClassifierParams. That will include the rawPredictionCol, plus the updated validateAndTransformSchema method.
jkbradley
commented
Jul 31, 2015
That should do it for a first pass. I'll check back for updates. Thanks!
|
viktortnk
commented
Mar 28, 2016
@jkbradley@badriub Any updates on this issue? From diff I see that I'm happy to help if required to get it through |
AxenGitHub
commented
Apr 11, 2017
Is there any news on this branch? we would benefit a lot from this feature. |
jkbradley
commented
Apr 16, 2018
AmplabJenkins
commented
Jul 9, 2018
Can one of the admins verify this patch? |
WRT OVR,
I've extracted the rawProbability as the maxProbability of all classes and added a new column in the returned dataframe.
I've fixed the test to include the new column "rawProbability"