Python Tutorial: Difference between revisions

From Master of Neuroscience Wiki
Line 230: Line 230:
* [[Task 2 -- Collective coherent cortices: Data analysis]]
* [[Task 2 -- Collective coherent cortices: Data analysis]]
* Neuron Models Equations
* Neuron Models Equations
  - For detailed descriptions, please see: ['Neuronal Dynamics' textbook](https://neuronaldynamics.epfl.ch/online) ['Theoretical Neuroscience' textbook](https://boulderschool.yale.edu/sites/default/files/files/DayanAbbott.pdf)
** For detailed descriptions, please see:  
*** [https://neuronaldynamics.epfl.ch/online 'Neuronal Dynamics' textbook]
*** [https://boulderschool.yale.edu/sites/default/files/files/DayanAbbott.pdf 'Theoretical Neuroscience' textbook]
 
* Neuron Models Equations -- Rate-based neurons
* Neuron Models Equations -- Rate-based neurons
  - [[DivInE-model for MT neurons]]
** [[DivInE-model for MT neurons]]
 
* Neuron Models Equations -- Spiking neurons without explicit spike generation mechanism
* Neuron Models Equations -- Spiking neurons without explicit spike generation mechanism
  - [[Leaky Integrate-and-Fire]]
** [[Leaky Integrate-and-Fire]]
  - [[Exponential Integrate-and-Fire]]
** [[Exponential Integrate-and-Fire]]
  - [[Quadratic Integrate-and-Fire]]
** [[Quadratic Integrate-and-Fire]]
  - [[Connor Stevens]]
** [[Connor Stevens]]
 
* [[References]]
* [[References]]
* Task 1 -- Pictures for comparision
* Task 1 -- Pictures for comparision
  - [[Task 1 --Mandatory Tasks]]
** [[Task 1 --Mandatory Tasks]]
 
* Task 2 -- Pictures for comparision
* Task 2 -- Pictures for comparision
  - [[Task 2 -- Mandatory Tasks]]
** [[Task 2 -- Mandatory Tasks]]
  - [[Task 2 -- Voluntary Tasks: Preprocessing]]
** [[Task 2 -- Voluntary Tasks: Preprocessing]]
  - [[Task 2 -- Voluntary Tasks: More Information!]]
** [[Task 2 -- Voluntary Tasks: More Information!]]
 
=== Advanced Studies ===
=== Advanced Studies ===
* Material from ages past
* Material from ages past

Revision as of 12:47, 23 October 2025

How to Python in computational neuroscience, data mining, and more

All the tutorials are tested with Python 3.11.x. Older version might have a problem with the new versions of type anotations.

Flow chart

Workflow

Important VS Code notes:

  • You can mark segments of source node with your mouse (or keyboard) and use the TAB key to increase the level of the indentation or use SHIFT + TAB do decrease the indentation level.
  • Linux: CTRL + SHIFT + 7 toggles between comment and normal source code.
  • The function key F2 allows you to change variable and function names. VS Code goes through all the node in your Project directory and changes all occurrences of the function or variable name accordingly. The same is true if you change a file name in a project directory.

Python: The Basics of the basics

Python: Special topics

Numpy: The Basics of the basics

Numpy: Special topics

Numpy: Matlab topics

In the case you know Matlab check here: NumPy for MATLAB users

Matplotlib.pyplot

Pandas

Machine learning: Sci-kit Learn

Machine learning: Pure numpy

SciPy

Python: Questions of spectral nature

Python: Daily little helper

OpenCV2 and Python

PyTorch

PyBind11

Tensorflow / Keras

Sympy

Numerical Integration, Differentiation, and Differential Equations

Arduino


S1: Advanced Programming (last update 16.02.2024)

Advanced Studies