Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Numpy beginner tutorial
| Date | Stars |
|---|---|
| 2026-07-24 | 522 |
| 2026-07-25 | 522 |
| 2026-07-28 | 522 |
| 2026-07-30 | 522 |
| 2026-08-16 | 523 |
| 2026-08-18 | 524 |
| 2026-08-19 | 524 |
| 2026-08-31 | 524 |
| 2026-09-01 | 525 |
| 2026-09-04 | 519 |
| 2026-09-08 | 520 |
| 2026-09-20 | 520 |
Today
— stars today
This week
— stars this week
This month
-4 stars this month
Momentum
0.0
growth rate 0.00%/day
============== Numpy tutorial ============== ------------------ Nicolas P. Rougier ------------------ .. image:: https://zenodo.org/badge/doi/10.5281/zenodo.28817.svg :target: http://dx.doi.org/10.5281/zenodo.28817 .. contents:: Table of Contents :local: :depth: 1 Sources are available from `github <https://github.com/rougier/numpy-tutorial>`_. All code and material is licensed under a `Creative Commons Attribution-ShareAlike 4.0 <http://creativecommons.org/licenses/by-sa/4.0>`_. See also: * `From Python to Numpy <https://www.labri.fr/perso/nrougier/from-python-to-numpy/>`_ * `Matplotlib tutorial <http://www.labri.fr/perso/nrougier/teaching/matplotlib/matplotlib.html>`_ * `100 Numpy exercices <http://www.labri.fr/perso/nrougier/teaching/numpy.100/index.html>`_ Introduction ============ NumPy is the fundamental package for scientific computing with Python. It contains among other things: * → a powerful N-dimensional array object * → sophisticated (broadcasting) functions * → tools for integrating C/C++ and Fortran code * → useful linear algebra, Fourier transform, and random number capabilities | Besides its obvious scientific uses, NumPy can also be used as an efficient multi-dimensional container of generic data. Arbitrary data-types can be defined and this allows NumPy to seamlessly and speedily integrate with a wide variety of projects. We are going to explore numpy through a simple example, implementing the Game of Life. The Game of Life =============================================================================== Numpy is slanted toward scientific computing and we'll consider in this section the `game of life <http://en.wikipedia.org/wiki/Conway's_Game_of_Life>`_ by John Conway which is one of the earliest example of cellular automata (see figure below). Those cellular automaton can be conveniently considered as array of cells that are connected together through the notion of neighbours. We'll show in the following sections implementation of this game using pure python and numpy in order to illustrate main differences with python and numpy. .. figure:: figures/game-of-life.png **Figure 1** Simulation of the game of life. .. note:: This is an excerpt from `wikipedia <http://en.wikipedia.org/wiki/Cellular_automaton>`_ entry on Cellular Automaton. The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970. It is the best-known example of a cellular automaton. The "game" is actually a zero-player game, meaning that its evolution is determined by its initial state, needing no input from human players. One interacts with the Game of Life by creating an initial configuration and observing how it evolves. The universe of the Game of Life is an infinite two-dimensional orthogonal grid of square cells, each of which is in one of two possible states, live or dead. Every cell interacts with its eight neighbours, which are the cells that are directly horizontally, vertically, or diagonally adjacent. At each step in time, the following transitions occur: 1. Any live cell with fewer than two live neighbours dies, as if by needs caused by underpopulation. 2. Any live cell with more than three live neighbours dies, as if by overcrowding. 3. Any live cell with two or three live neighbours lives, unchanged, to the next generation. 4. Any dead cell with exactly three live neighbours becomes a live cell. | The initial pattern constitutes the 'seed' of the system. The first generation is created by applying the above rules simultaneously to every cell in the seed – births and deaths happen simultaneously, and the discrete moment at which this happens is sometimes called a tick. (In other words, each generation is a pure function of the one before.) The rules continue to be applied repeatedly to create further generations. We'll first use a
Excerpt of 39,415 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:72a60ccdd7ad8e1a, topic:tutorial, name:tutorial, desc:tutorial