@classmethod
    def calculateModuleOutput(cls, module, dataset):
        if isinstance(dataset, SequentialDataSet) or isinstance(dataset, ImportanceDataSet):
            return cls._calculateModuleOutputSequential(module, dataset)
        else:
            module.reset()
            input = dataset.getField('input')
            output = array([module.activate(inp) for inp in input])
            return output
Cleans up the socket.
dataset/ETHPy150Open pybrain/pybrain/pybrain/tools/validation.py/ModuleValidator.calculateModuleOutput--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/internet/iocpreactor/tcp.py/Port.connectionLost