@staticmethod
    def randIndex(clustering1, clustering2):
        numVertices = clustering1.shape[0]
        error = 0        
        
        for i in range(numVertices):
            same_cl = clustering1[i] == clustering1
            same_learned_cl = clustering2[i] == clustering2
            error += (same_cl != same_learned_cl).sum()
        
        return float(error)/(numVertices*(numVertices-1))
Ticket created before a custom field is added will have the
dataset/ETHPy150Open charanpald/APGL/apgl/graph/GraphUtils.py/GraphUtils.randIndex--crossover with--dataset/ETHPy150Open edgewall/trac/trac/ticket/tests/model.py/TicketTestCase.test_ticket_custom_field_default_values