Skip to content

Tag: scipy

How to run scipy’s BFGS on GPU

I’d like to run scipy implementation of BFGS optimization algorithm on GPU and scipy seems not to support GPUs. The target function which I want to run on GPU is the following one which is part of the implementation of this repository: I know there is Tensorflow Probablity implementation of BFGS, but I …

Scipy – probability in binomial distribution

I’m trying to use scipy in order to calculate a probability, given a binomial distribution: The probability: in an exam with 45 questions, each one with 5 items, what is the probability of randomly choose right (instead of wrong) more than half the exam, that is, 22.5? I’ve tried: How do I calcula…