Implementations of a random selection of artificial neural net based models and methods.
Development is done using uv, pinning the python version to the one in the file .python-version.
pip install random-neural-net-modelsor
uv add random-neural-net-modelsFor package development / notebooks shenanigans:
git clone https://github.com/eschmidt42/random-neural-net-models.git
cd random-neural-net-models
make install-dev-envSee jupyter notebooks in nbs/ for:
- fastai style learner with tensordict:
learner.ipynb - perceptron:
perceptron.ipynb - backpropagation:
backpropagation_rumelhart1986.ipynb - convolution:
convolution_lecun1990.ipynb - cnn autoencoder:
- mnist:
cnn_autoencoder_fastai2022.ipynb - fashion mnist:
cnn_autoencoder_fastai2022_fashion.ipynb
- mnist:
- variational autoencoder:
- dense:
dense_variational_autoencoder_fastai2022.ipynb - cnn+dense:
cnn_variational_autoencoder_fastai2022.ipynb
- dense:
- optimizers:
stochastic_optimization_methods.ipynb - resnet:
resnet_fastai2022.ipynb - unet:
unet_fastai2022.ipynbunet-isbi2012
- diffusion (unet + noise):
diffusion_fastai2022_learner.ipynbdiffusion_fastai2022_learner_with_attention.ipynb
- mingpt:
mingpt_sort.ipynbmingpt_char.ipynbmingpt_adder.ipynb
- transformer:
language-model.ipynb - tokenization:
tokenization.ipynb - tabular:
tabular-fastai-classification.ipynbtabular-fastai-classification-with-missingness.ipynbtabular-fastai-classification-with-missingness-and-categories.ipynbtabular-fastai-regression.ipynbtabular-fastai-regression-with-missingness.ipynbtabular-fastai-regression-with-missingness-and-categories.ipynbtabular-variational-auto-encoder.ipynbreusing-vae-for-classification.ipynb
nbs/core contains the notebooks who are guaranteed to function despite refactorings.