family_camp/schedule/deep.py
def bestness(self):
        """Return a composite measure of how 'good' the individual is.

        The smaller the value the better it is."""

        count = 0

        # Start by using a simple variance to favour a timetable
        # where the sessions have an even spread of campers.
        count += pvariance([len(inst.campers) for inst in self.session_inst])

        return count
Return a composite measure of how 'good' the individual is.

        The smaller the value the better it is.
Return a composite measure of how 'good' the individual is.
The smaller the value the better it is.
Return a composite measure of how ' good ' the individual is . The smaller the value the better it is .
def bestness(self):
        count = 0
        count += pvariance([len(inst.campers) for inst in self.session_inst])
        return count
def bestness ( self ) : count = 0 count += pvariance ( [ len ( inst . campers ) for inst in self . session_inst ] ) return count
Return a composite measure of how 'good' the individual is.
Return a composite measure of how ' good ' the individual is .
"""Return a composite measure of how 'good' the individual is.

        The smaller the value the better it is.""" # Start by using a simple variance to favour a timetable # where the sessions have an even spread of campers.
self