Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Convenience functions for the HASY dataset

Project description

PyPI version Python Support


hasy_tools is a support package for the HASY dataset. The dataset is described in The HASYv2 dataset.

The HASY dataset contains handwritten symbols obtained via Detexify and The data was rendered and is similar to MNIST.


$ pip install git+

It can, of course, also be installed via PyPI.


>>> import hasy_tools
>>> data = hasy_tools.load()
>>> data.keys()
dict_keys(['x_train', 'y_train', 'x_test', 'y_test', 's_train', 's_test', 'labels'])
>>> len(data['labels'])
>>> data['x_train'].shape
(151241, 32, 32, 1)
>>> x_train = hasy_tools.preprocess(data['x_train'])
>>> y_train = np.eye(hasy_tools.n_classes)[y_train.squeeze()]

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for hasy-tools, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size hasy_tools-0.1.1-py3-none-any.whl (14.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size hasy_tools-0.1.1.tar.gz (13.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page