Author: Pedro Pessoa

  • What is autograd? – Automatic differentiation and optimization with PyTorch

    Welcome file Automatically calculating a gradient The gradient descent method Conclusion In recent years, there has been a marked increase in media and academic attention towards advancements in artificial intelligence, particularly concerning deep neural networks. The most pronounced surge in attention was observed following the release of ChatGPT last November. Although the usage of these…

  • Sparse Matrices in Numba

    Welcome file Introduction What is a sparse matrix? Creating a sparse matrix Adding and subtracting sparse matrices Multiplying sparse matrices Multiply matrix and vector The dot function Summing over a dimension Wall time comparison Using smn within a Numba compiled function Conclusion Introduction Numba is a widely-used just-in-time (JIT) compiler for Python that optimizes the…