greydanus / mnist1d

A 1D analogue of the MNIST dataset for measuring spatial biases and answering Science of Deep Learning questions.
Apache License 2.0
199 stars 33 forks source link

Packaging this dataset #8

Closed psteinb closed 6 months ago

psteinb commented 10 months ago

Hi, thanks for contributing this dataset as open source. Motivated by "Understanding Deep Learning", I'd love to start playing with it.

I saw that the repo is not ready for packaging. As the code is rather straight forward, I was wondering if any PRs would be appreciated to package this as a python module.

This would also make it more easier to use more broadly than by using the requests package. People could just go: pip install mnist1d and have the code for augmenting and changing under their fingers. Just a thought!

Right now, I get the following:

python -m pip install git+https://github.com/greydanus/mnist1d.git@master
Collecting git+https://github.com/greydanus/mnist1d.git@master
  Cloning https://github.com/greydanus/mnist1d.git (to revision master) to /tmp/pip-req-build-eg1a_6cu
  Running command git clone --filter=blob:none --quiet https://github.com/greydanus/mnist1d.git /tmp/pip-req-build-eg1a_6cu
  Resolved https://github.com/greydanus/mnist1d.git to commit 39dd6c03785eefe60f349af94e61f864fc449644
ERROR: git+https://github.com/greydanus/mnist1d.git@master does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.
greydanus commented 10 months ago

Peter, this is a great suggestion. I haven never packaged a library before - can you help me set this up? I'm all ears.