home scroll deno

AI learning blog January 2025

January 1, 2025

Deep Convolutional Neural Networks
(Introductory articles on medium)
https://towardsdatascience.com/deep-convolutional-neural-networks-ccf96f830178

Train CIFAR10 with PyTorch
https://github.com/kuangliu/pytorch-cifar

ResNet50 Transfer Learning CIFAR-10 Beginner
https://www.kaggle.com/code/kutaykutlu/resnet50-transfer-learning-cifar-10-beginner

January 5, 2025

https://machinelearningmastery.com/display-deep-learning-model-training-history-in-keras/
https://machinelearningmastery.com/display-deep-learning-model-training-history-in-keras/

January 11, 2025

J. Heaton class chapter 6.4, flipping the image.

ImageDataGenerator(horizontal_flip=True, vertical_flip=True)
is passed into a function, and then it's flow function is called.
it = gen.flow(samples, batch_size=1)
The it object has a next() function
which is called to generate flipped images
for i in range(4):
batch = it.next()
https://www.analyticsvidhya.com/blog/2020/08/image-augmentation-on-the-fly-using-keras-imagedatagenerator/

January 12, 2025

Image data augmentation
https://pyimagesearch.com/2019/07/08/keras-imagedatagenerator-and-data-augmentation/


The sequence of augmentation operations in the next() function will be random or not,
depending on whether we give the preceding flow function a seed parameter.

https://www.tensorflow.org/api_docs/python/tf/keras/preprocessing/image/ImageDataGenerator#flow

Question: Why is the output of my version of the code in J. Heaton class chapter 6.4, flipping the image different from the class notebook, and different in every run?

Answer: Because the operations in the next augmentation operation are randomized, and of no seed is given, they will also be different in every run.

January 16, 2025

Nvidia NVlabs github repository for stylegan3:
https://github.com/NVlabs/stylegan3

January 24, 2025

A Gentle Introduction to Generative Adversarial Networks (GANs)
By Jason Brownlee on July 19, 2019 in Generative Adversarial Networks
https://machinelearningmastery.com/what-are-generative-adversarial-networks-gans/

January 27, 2025

Module 7.5: GANs for Tabular Synthetic Data Generation

The github repository used in the module
https://github.com/Diyago/GAN-for-tabular-data
has been moved to a new repository
https://github.com/Diyago/Tabular-data-generation

When installing environment as described in the instructions and running the Python code, I get error
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
The sample program from the github readme has the same problem.

https://techoverflow.net/2024/07/23/how-to-fix-numpy-dtype-size-changed-may-indicate-binary-incompatibility-expected-96-from-c-header-got-88-from-pyobject/

January 31, 2025

How to Develop a 1D Generative Adversarial Network From Scratch in Keras
https://machinelearningmastery.com/how-to-develop-a-generative-adversarial-network-for-a-1-dimensional-function-from-scratch-in-keras/

page 4

The function generate_samples(n) returns an array of n pairs where the first value is random and the second value is the squared value of the first.
The dimension of the array is n rows and two columns.

page 5

The discriminator predicts whether the sample is real or fake as a probability.

page 6/7

The function generate_real_samples(n) returns an array of n pairs where the first value is random and the second value is the squared value of the first, as well as an array of labels that are all=1, meaning that these values are real.

The function generate_fake_samples(n) returns an array of n pairs where the first value is random and the second value is another random value, as well as an array of labels that are all=0, meaning that these values are fake.

The function train_discriminator() trains the discriminator with real and fake samples.



Date


Follow Me

discord