@classmethod
    def classificationPerformance(cls, output, target):
        output = array(output)
        target = array(target)
        assert len(output) == len(target)
        n_correct = sum(output == target)
        return float(n_correct) / float(len(output))
Auto select the local density threshold that let average neighbor is 1-2 percent of all nodes.
dataset/ETHPy150Open pybrain/pybrain/pybrain/tools/validation.py/Validator.classificationPerformance--crossover with--dataset/ETHPy150Open jasonwbw/DensityPeakCluster/cluster.py/autoselect_dc