keystoneml.evaluation

MeanAveragePrecisionEvaluator

class MeanAveragePrecisionEvaluator extends Evaluator[DenseVector[Double], Array[Int], DenseVector[Double]] with Serializable

MeanAveragePrecision (MAP) calculator based on MATLAB code from the encoding eval toolkit at http://www.robots.ox.ac.uk/~vgg/software/enceval_toolkit/

Linear Supertypes
Serializable, Serializable, Evaluator[DenseVector[Double], Array[Int], DenseVector[Double]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MeanAveragePrecisionEvaluator
  2. Serializable
  3. Serializable
  4. Evaluator
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MeanAveragePrecisionEvaluator(numClasses: Int)

    numClasses

    The number of classes in the dataset.

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def evaluate(testPredicted: RDD[DenseVector[Double]], testActual: RDD[Array[Int]]): DenseVector[Double]

    Compute the mean average precision for multi-class classification NOTE: The current implementation is only suitable when we have a small number of classes and data items.

    Compute the mean average precision for multi-class classification NOTE: The current implementation is only suitable when we have a small number of classes and data items.

    testPredicted

    For every test image, this contains a list of scores for each class

    testActual

    For every test image, this contains list of valid labels. Labels are assumed to be class ids.

    returns

    An array containing average precision scores for each class

    Definition Classes
    MeanAveragePrecisionEvaluatorEvaluator
  11. def evaluate(predictions: PipelineDataset[DenseVector[Double]], labels: PipelineDataset[Array[Int]]): DenseVector[Double]

    Definition Classes
    Evaluator
  12. def evaluate(predictions: RDD[DenseVector[Double]], labels: PipelineDataset[Array[Int]]): DenseVector[Double]

    Definition Classes
    Evaluator
  13. def evaluate(predictions: PipelineDataset[DenseVector[Double]], labels: RDD[Array[Int]]): DenseVector[Double]

    Definition Classes
    Evaluator
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  22. def toString(): String

    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Evaluator[DenseVector[Double], Array[Int], DenseVector[Double]]

Inherited from AnyRef

Inherited from Any

Ungrouped