Skip to content

Instantly share code, notes, and snippets.

@MatteoRagni
Created September 22, 2017 19:09
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 MatteoRagni/47fe70700d38a8980e65c8f81c803701 to your computer and use it in GitHub Desktop.
Save MatteoRagni/47fe70700d38a8980e65c8f81c803701 to your computer and use it in GitHub Desktop.
Position for the images for the autoencoder
#!/usr/bin/env ruby
# Reconstruct position
f = 0
for a in 0...25
for b in 0...25
next if b == a
for c in 0...25
next if c == b or c == a
puts("#{a}, #{b}, #{c} -> #{f}")
f += 1
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment