Computational Neuroscience, Machine Learning and Python tutorials
0a6d63064f
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com> |
||
---|---|---|
_layouts | ||
arduino/basics | ||
cv2 | ||
flow | ||
helper | ||
matlab | ||
matplotlib | ||
numpy | ||
other | ||
pandas/basics | ||
python_basics | ||
pytorch | ||
pywavelet | ||
scikit-learn | ||
scipy | ||
workflow | ||
_config.yaml | ||
LICENSE | ||
README.md |
How to Python in computational neuroscience, data mining, and more
{:.no_toc}
* TOC {:toc}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
- Python installation
- VS Code installation
- VS Code configuration
- VS Code Microsoft Tutorials
- VS Code Python Interactive window
- VS Code Markdown
- VS Code Debugging
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
- Overview
- Hello, Python
- Style Rulez
- Programming Recommendations
- Basic Math Operations
- Truth Value Testing
- Formatted String Literals
- Flow Control Overview
- Sequence Types
- Mapping Types
- Functions
- Type annotations
- Files
- JSON and dict for parameter files
- Creating order via sub-directories: os.makedirs
- Finding files in a directory: glob
- Class
- Exceptions (try / except)
- Importing Modules
- Built-in Functions
- Built-in Keywords
Python: Special topics
- pickle: save and load Python objects
- The Python Standard Library
- Dataclass
- Organizing parameters: dataclasses and dataconf
- ProcessPoolExecutor: A fast way to implement multiprocessing
Numpy: The Basics of the basics
- The N-dimensional array (ndarray)
- Dimensions and shape
- Making a matrix from numerical ranges
- New matrix
- Save and load
- Reshape and flatten
- Slices and Views
- Where
- Extending an existing matrix: tile, repeat, pad
- Boolean matricies and logic functions
- Advanced Indexing
- Available dtypes
- Constants
- Math functions
- Linear algebra
- Random numbers the non-legacy way
- Statistics
- FFT
- Meshgrid
- Flip, rot90, and roll a matrix
Numpy: Special topics
- Beyond normal np.save
- nditer provides many ways to visit all the elements of one or more arrays
- Manipulation of integers and their bits
Numpy: Matlab topics
In the case you know Matlab check here: NumPy for MATLAB users
Matplotlib.pyplot
Pandas
Sci-kit Learn
SciPy
Python: Questions of spectral nature
Python: Daily little helper
- TQDM: Make your progress visible
- Argh: Organize your command line arguments
- psutil vs os.cpu_count: How many "CPUs" do I have?
- ZeroMQ: Microservices as well as connecting computers via message queue
OpenCV2 and Python
PyTorch
- Get CUDA ready!
- Interfacing Data
- Data augmentation
- Layers
- Converting the original MNIST files into numpy
- How to take advantage of an optimizer for your non-Pytorch project
- How to take advantage of a learning rate scheduler for your non-Pytorch project
Arduino
Matlab: Basics
{: .topic-optional} This pages are in a rough state. e.g. equations are broken. Don't know why...
- Basic Structure of a Computer
- Representation of Numbers in the Computer
- Basic Commands and Variables
- Graphics
- Systematic Programming
- Vectorization and Vector Calculus in Matlab
- Integration and Differentiation
- Differential Equations
- Data Analysis
Other topics
{: .topic-optional} Note: I will transfer the old pages to this new place (and update them). It will take some time but it will happen...