func (v evalLabel) CountAgreement() float64 {
	p1 := float64(v.Agreed + v.Only1)
	p2 := float64(v.Agreed + v.Only2)

	denom := math.Max(p1, p2)

	if denom == 0 {
		return 0
	}

	return math.Min(p1, p2) / denom
}
// Count agreement ignores whether pixels overlap and simply asks about
// agreement in terms of the total number of pixels annotated as being within a
// class. This returns a fraction scaled from 0 to 1, with the numerator being
// the smaller pixel count and the denominator being the larger pixel count.
Count agreement ignores whether pixels overlap and simply asks about
agreement in terms of the total number of pixels annotated as being within a
class. This returns a fraction scaled from 0 to 1, with the numerator being
the smaller pixel count and the denominator being the larger pixel count.
// Count agreement ignores whether pixels overlap and simply asks about // agreement in terms of the total number of pixels annotated as being within a // class . This returns a fraction scaled from 0 to 1 with the numerator being // the smaller pixel count and the denominator being the larger pixel count .
func (v evalLabel) CountAgreement() float64 {
	p1 := float64(v.Agreed + v.Only1)
	p2 := float64(v.Agreed + v.Only2)
	denom := math.Max(p1, p2)
	if denom == 0 {
		return 0
	}
	return math.Min(p1, p2) / denom
}
func ( v evalLabel ) CountAgreement ( ) float64 { p1 := float64 ( v . Agreed + v . Only1 ) p2 := float64 ( v . Agreed + v . Only2 ) denom := math . Max ( p1 , p2 ) if denom == 0 { return 0 } return math . Min ( p1 , p2 ) / denom }
Count agreement ignores whether pixels overlap and simply asks about
agreement in terms of the total number of pixels annotated as being within a
class.
Count agreement ignores whether pixels overlap and simply asks about agreement in terms of the total number of pixels annotated as being within a class .