Skip to content

Instantly share code, notes, and snippets.

View b6nrb56g9p-ship-it's full-sized avatar

Jort Verbeek b6nrb56g9p-ship-it

  • Joined Nov 5, 2025
View GitHub Profile
@b6nrb56g9p-ship-it
b6nrb56g9p-ship-it / data.py
Last active November 6, 2025 14:57 — forked from pbloem/data.py
# -- assignment 1 --
import numpy as np
from urllib import request
import gzip
import pickle
import os
def load_synth(num_train=60_000, num_val=10_000, seed=0):
"""
Load some very basic synthetic data that should be easy to classify. Two features, so that we can plot the