You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by skonto <gi...@git.apache.org> on 2017/01/17 12:46:36 UTC

[GitHub] flink pull request #1849: [FLINK-2157] [ml] Create evaluation framework for ...

Github user skonto commented on a diff in the pull request:

    https://github.com/apache/flink/pull/1849#discussion_r96403197
  
    --- Diff: flink-libraries/flink-ml/src/main/scala/org/apache/flink/ml/evaluation/Score.scala ---
    @@ -0,0 +1,145 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + *     http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.flink.ml.evaluation
    +
    +import org.apache.flink.api.common.typeinfo.TypeInformation
    +import org.apache.flink.api.scala._
    +import org.apache.flink.ml._
    +
    +import scala.reflect.ClassTag
    +
    +/**
    + * Evaluation score
    + *
    + * Can be used to calculate a performance score for an algorithm, when provided with a DataSet
    + * of (truth, prediction) tuples
    + *
    + * @tparam PredictionType output type
    + */
    +trait Score[PredictionType] {
    --- End diff --
    
    What is the benefit of having the scores independent of the models. For example each model could implement it's own score function within its implementation class. I may miss something here...


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---