@request_method_decorator
    def upload_attachment(self, filename, content, caption=None, **kwargs):
        request = HttpRequest(self._url, method=b'POST', query_args=kwargs)
        request.add_file('path', filename, content)

        if caption:
            request.add_field('caption', caption)

        return request
Compute gradient of the logistic function.
dataset/ETHPy150Open reviewboard/rbtools/rbtools/api/resource.py/FileAttachmentListResource.upload_attachment--crossover with--dataset/ETHPy150Open rasbt/mlxtend/mlxtend/classifier/neuralnet_mlp.py/NeuralNetMLP._sigmoid_gradient