def capture(self, amount):
        response = self._client._transaction.capture(
            amount, self.credit_card, self.address, self.email)
        transaction = self._client.transaction(response['transaction_id'])
        transaction.full_response = response
        return transaction
Computes the average precision at k for Track 1 of the 2012 KDD Cup.
dataset/ETHPy150Open drewisme/authorizesauce/authorize/client.py/AuthorizeCreditCard.capture--crossover with--dataset/ETHPy150Open benhamner/Metrics/Python/ml_metrics/custom/kdd_average_precision.py/kdd_apk