Skip to content

Instantly share code, notes, and snippets.

View ireneweng's full-sized avatar

ireneri ireneweng

View GitHub Profile
@ireneweng
ireneweng / dli01_mnist.py
Last active February 15, 2024 20:17
image classification with the mnist dataset
import matplotlib.pyplot as plt
import tensorflow.keras as keras
from tensorflow.keras.datasets import mnist
from tensorflow.keras.layers import Dense
from tensorflow.keras.models import Sequential
def renderImage(x_train, y_train, num):
image = x_train[num]
plt.imshow(image, cmap='gray')
print(f'This is a {y_train[num]}')
@ireneweng
ireneweng / shade_space.frag
Last active January 3, 2024 16:44
a safe space for learning shaders :^)
// Author: Irene
// Title: Sandbox
#ifdef GL_ES
precision mediump float;
#endif
#define PI 3.14159265359
uniform vec2 u_resolution;