final case class MultiClassificationReport(labels: Seq[Int], beta: Double = 1.0) extends Aggregator[Prediction[Int, Int], Map[(Int, Int), Long], Map[Int, Report]] with Product with Serializable
Generate a Classification Report for a collection of multiclass predictions. A report is generated for each class by treating the predictions as binary of either "class" or "not class". The output of this aggregator will be a map of classes and their Report objects.
- labels
List of possible label values.
- beta
Beta parameter used in the f-score calculation.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- MultiClassificationReport
- Serializable
- Product
- Equals
- Aggregator
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
andThenPresent[D](present2: (Map[Int, Report]) ⇒ D): Aggregator[Prediction[Int, Int], Map[(Int, Int), Long], D]
- Definition Classes
- Aggregator
-
def
append(l: Map[(Int, Int), Long], r: Prediction[Int, Int]): Map[(Int, Int), Long]
- Definition Classes
- Aggregator
-
def
appendAll(old: Map[(Int, Int), Long], items: TraversableOnce[Prediction[Int, Int]]): Map[(Int, Int), Long]
- Definition Classes
- Aggregator
-
def
apply(inputs: TraversableOnce[Prediction[Int, Int]]): Map[Int, Report]
- Definition Classes
- Aggregator
-
def
applyCumulatively[In <: TraversableOnce[Prediction[Int, Int]], Out](inputs: In)(implicit bf: CanBuildFrom[In, Map[Int, Report], Out]): Out
- Definition Classes
- Aggregator
-
def
applyOption(inputs: TraversableOnce[Prediction[Int, Int]]): Option[Map[Int, Report]]
- Definition Classes
- Aggregator
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val beta: Double
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
composePrepare[A1](prepare2: (A1) ⇒ Prediction[Int, Int]): Aggregator[A1, Map[(Int, Int), Long], Map[Int, Report]]
- Definition Classes
- Aggregator
-
def
cumulativeIterator(inputs: Iterator[Prediction[Int, Int]]): Iterator[Map[Int, Report]]
- Definition Classes
- Aggregator
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
join[A2 <: Prediction[Int, Int], B2, C2](that: Aggregator[A2, B2, C2]): Aggregator[A2, (Map[(Int, Int), Long], B2), (Map[Int, Report], C2)]
- Definition Classes
- Aggregator
- val labels: Seq[Int]
-
def
lift: MonoidAggregator[Prediction[Int, Int], Option[Map[(Int, Int), Long]], Option[Map[Int, Report]]]
- Definition Classes
- Aggregator
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
prepare(input: Prediction[Int, Int]): Map[(Int, Int), Long]
- Definition Classes
- MultiClassificationReport → Aggregator
-
def
present(m: Map[(Int, Int), Long]): Map[Int, Report]
- Definition Classes
- MultiClassificationReport → Aggregator
-
def
reduce(items: TraversableOnce[Map[(Int, Int), Long]]): Map[(Int, Int), Long]
- Definition Classes
- Aggregator
-
def
reduce(l: Map[(Int, Int), Long], r: Map[(Int, Int), Long]): Map[(Int, Int), Long]
- Definition Classes
- Aggregator
-
def
reduceOption(items: TraversableOnce[Map[(Int, Int), Long]]): Option[Map[(Int, Int), Long]]
- Definition Classes
- Aggregator
-
def
semigroup: Semigroup[Map[(Int, Int), Long]]
- Definition Classes
- MultiClassificationReport → Aggregator
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toFold: Fold[Prediction[Int, Int], Option[Map[Int, Report]]]
- Definition Classes
- Aggregator
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
zip[A2, B2, C2](ag2: Aggregator[A2, B2, C2]): Aggregator[(Prediction[Int, Int], A2), (Map[(Int, Int), Long], B2), (Map[Int, Report], C2)]
- Definition Classes
- Aggregator