GitHub user thvasilo opened a pull request:
https://github.com/apache/flink/pull/874
[FLINK-2297] [ml] Add threshold setting for SVM binary predictions
Currently SVM outputs the raw decision function values when using the
predict function.
We should have instead the ability to set a threshold above which examples
are labeled as positive (1.0) and below negative (-1.0). Then the prediction
function can be directly used for evaluation.
This provides that functionality, as well as the ability to provide the raw
decision function values.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/thvasilo/flink svm-threshold
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/874.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #874
----
commit 279f12a6031f9d7b73e6b69303ae44627df4c401
Author: Theodore Vasiloudis <[email protected]>
Date: 2015-06-30T12:49:03Z
Added parameters argument to PredictOperation predict function.
commit 1cea7a9a71ba04b6a9433789c0787112c7a24084
Author: Theodore Vasiloudis <[email protected]>
Date: 2015-06-30T12:59:57Z
Made the type parameter for Parameter to be covariant.
commit 00cf902d1481d698648abe6f037583d8d543fa53
Author: Theodore Vasiloudis <[email protected]>
Date: 2015-06-30T13:00:49Z
Added Threshold option for SVM, to determine which predictions are
positive/negative.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---