Github user thvasilo commented on the pull request:
https://github.com/apache/flink/pull/871#issuecomment-117700685
Copying from the JIRA:
Turns out it's more complicated to have a score function that is available
for chained Predictors as well.
If score is defined as a function of a Predictor subclass, such as
Classifier, then it will not be available to a chained Classifier, since the
chaining will produce a ChainedPredictor.
If we define score in the Predictor instead, we will need to provide an
implementation for ChainedPredictor as well, since that extends Predictor.
The only way forward then if we want to have a score function, is to follow
the Operation paradigm, and have implicit score operations that get attached to
concrete predictors, and define a default one for ChainedPredictor as well.
I would suggest that for this PR, we skip the score function, keep the
Scorer object and work with that for the time being. We can revisit the score
function at a later point.
---
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.
---