Skip to content

robuno/ml-pground-and-from-scratch

Repository files navigation

ml-playground-and-projects-from-scratch

Here I collect some basic ML, NN models that I wrote from scratch to learn how they works. Some of them are repetitions of codes already written in the tutorials, with new comments and code simplifications made on them. For credits, see below:

Simple Diffusion Model Analysis (Unidimensional Data with 4 categories)

Change of data according to noise addition and reverse process Change of data according to noise addition and reverse process

Data Change by adding Gaussian Noise Data Change by adding Gaussian Noise

Data Change by adding Gaussian Noise Mean Change wrt. Time Stamps

CLIP

Correlation Matrices of CLIP

Autoencoder & Variational Autoencoder (VAE)

  • Implemented from scratch with 2 model version of AE's. First one is very simple AE with 2 conv layers, second AE is more complex taken from Sebastian Raschka's tutorial.

t-SNE Plot for AE's Encoded Images

NanoGPT

Example output with Nazim Hikmet's poems:

Lambayi girinde sordu ekrep olanmaya geldik,
yukarda bütün senden çelişirsiz,
ölmek istemiyordu yine dasina
Niyida bir ada bir hanga verdi
Madrid kalbimi ben
Okranliğini bilmez orani

Gözler ağizliğindan tütün adin
Bile birakiz vurur bir rahat
Budurunla da balik dururdu
Yüz başlari suyu kendil yüzünü
orta yildizlar anasini

Topal Meryem'in üstüne  duyulcular bir eferrun,
Yildizlarinci asirlarda vurursun.
Birden mavi gözleri haber gibi bir adam gibi yaprakla azi bulunun atmadi.

Train/Val Losses of Models

Language Detection

Conf. Matrix Language Detection N=1 Conf. Matrix Language Detection N=2 Conf. Matrix Language Detection N=3

About

Here I collect some basic ML, NN models that I wrote from scratch to learn how they works.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published