Skip to content

Instantly share code, notes, and snippets.

View temporaer's full-sized avatar

Hannes Schulz temporaer

View GitHub Profile
import numpy as np
import matplotlib.pyplot as plt
from sklearn.datasets import fetch_mldata
from sklearn.decomposition import FastICA, PCA
from sklearn.cluster import KMeans
# fetch natural image patches
image_patches = fetch_mldata("natural scenes data")
X = image_patches.data