def whenConnected(self):
        if self._currentConnection is not None:
            return succeed(self._currentConnection)
        elif self._stopped:
            return fail(CancelledError())
        else:
            result = Deferred()
            self._awaitingConnected.append(result)
            return result
Set the parameters for the BPR model
dataset/ETHPy150Open twisted/twisted/twisted/application/internet.py/ClientService.whenConnected--crossover with--dataset/ETHPy150Open grafos-ml/test.fm/src/testfm/models/bpr.py/BPR.set_params