# Supplementary Material for 

# ***Evolution of Discriminator and Generator Gradients in GAN Training: From Fitting to Collapse***

## Description

This supplementary material provides the code for all experiments conducted in our study. The experiments are categorized as follows:

- Early stopping on a $3$-Dimensional Gaussian mixture (`./early_stopping_toy`)
- Early stopping on real-world datasets (`./early_stopping_image`)
- Verifying fitting on MNIST (`./verifying_fitting_mnist`)
- Verifying fitting on Fashion MNIST (`./verifying_fitting_fashion_mnist`)
- Validating the early stopping metric (`./validating_metric`)

## Acknowledgments

This work builds upon prior research and publicly available implementations. We have restructured the code for consistency, integrated an early stopping algorithm, and added auxiliary functions for visualization.

We gratefully acknowledge the following sources for their foundational contributions:

- https://github.com/eriklindernoren/PyTorch-GAN.git
- https://raw.githubusercontent.com/pytorch/examples/master/dcgan/main.py
- https://github.com/Joy2469/Deep-Learning-MNIST---Handwritten-Digit-Recognition.git
- https://www.kaggle.com/code/shriramjaju/pytorch-fashionmnist/notebook