Skip to main content

PyPI version Python Support Code style: black

hasy_tools

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 write-math.com. The data was rendered and is similar to MNIST.

Installation

$ pip install git+https://github.com/MartinThoma/hasy_tools.git

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

Usage

>>> 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'])
369
>>> 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()]

Metadata

Release files for hasy-tools 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hasy-tools 0.1.2
File Size Uploaded
hasy_tools-0.1.2.tar.gz 15.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hasy-tools 0.1.2
File Interpreter ABI Platform
hasy_tools-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 29.4 kB

Release files / hasy_tools-0.1.2.tar.gz

Download URL hasy_tools-0.1.2.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
636ba9e3fbae29e82c1ae3b61122f21aa24578e26efe2764fc60ed89f7e3bba8
BLAKE2b-256 checksum
How to use checksums
e4502604ba0802d7e9e1a33a8bade7d5d366ce730ec21b4b4ba5748794186b08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Release files / hasy_tools-0.1.2-py3-none-any.whl

Download URL hasy_tools-0.1.2-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
084ab3e69e7f5a3b562393d26211d5947547e94e1bf3e339211201a20bbaaa3e
BLAKE2b-256 checksum
How to use checksums
f3ea99ca91fda35fcfc380abb4ca8cbc61f844710231cfc3047907006806c416
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page