Skip to content

A toy dataset sampled uniformly from KTH's logotype.

License

Notifications You must be signed in to change notification settings

klaswijk/kth-dataset

Repository files navigation

KTH Logo Dataset

A toy dataset based on KTH's logotype.

  • Uniformly sampled from the logo
  • Standardized: $x' = \frac{x - \textrm{mean}(x)}{\textrm{std}(x)}$
  • Interface similar to scikit-learn's toy datasets.

Sampling from the dataset shown in an animated scatter plot

Install

pip install git+https://github.com/klaswijk/kth-dataset

Usage

from kth_dataset import make_kth_dataset

x, y = make_kth_dataset(
    n_samples=1000,
    noise=0.0,  # Standard deviation of Gaussian noise
    path=".",
    download=True,  # Downloads kth_logo.png to path
    random_state=0
)

# x is a (n_samples, 2) array containing the samples 
# y is all zeroes

About

A toy dataset sampled uniformly from KTH's logotype.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages