Skip to content

Instantly share code, notes, and snippets.

@mneedham
Last active September 30, 2019 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mneedham/8f4b71e1477f5e714ff3c316351cf03a to your computer and use it in GitHub Desktop.
Save mneedham/8f4b71e1477f5e714ff3c316351cf03a to your computer and use it in GitHub Desktop.
Importing Fashion MNIST
WITH "https://gist.github.com/mneedham/49aa07b8842718f5101585777e306009/raw/80b9299b26e165acc38ed0d83c9ab44c7137da3b/small_export.csv" AS uri
CALL apoc.load.csv(uri, {header: false, sep: " "})
YIELD lineNo, list
MERGE (item:MNISTItem {id: lineNo})
ON CREATE
SET item.embedding = [item in list | apoc.convert.toFloat(item)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment