Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datasets as csv files ? #4

Open
dkuku opened this issue Dec 30, 2021 · 1 comment
Open

Datasets as csv files ? #4

dkuku opened this issue Dec 30, 2021 · 1 comment

Comments

@dkuku
Copy link

dkuku commented Dec 30, 2021

Hi, I like this book, the qr code links are really cool. Also the complementary videos are useful.
It would be nice to include the the datasets as csv files for people who try to use different languages than python so we can still have consistent results with the book.

@dkuku
Copy link
Author

dkuku commented Dec 30, 2021

quick and hacky solution if someone needs to dump the data:

import numpy as np
import nnfs
from nnfs.datasets import spiral_data
nnfs.init()
X, y = spiral_data(samples=100, classes=3)
a = np.asarray(X)
b = np.asarray(y)
np.savetxt("X.csv", a, delimiter=",", fmt='%f')
np.savetxt("y.csv", b, delimiter=",", fmt='%d')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant