class OWARelevanceLoss extends AMultiLabelClassificationMeasure {

	@Override
	public double loss(final List<? extends int[]> expected, final List<? extends IMultiLabelClassification> predicted) {
		this.checkConsistency(expected, predicted);
		DescriptiveStatistics stats = new DescriptiveStatistics();
		for (int i = 0; i < expected.size(); i++) {
			stats.addValue(this.instanceLoss(expected.get(i), predicted.get(i).getPrediction()));
		}
		return stats.getMean();
	}

	public  OWARelevanceLoss(final IOWAValueFunction valueFunction);

}