Sparklewerk / hypermap

Tools for exploring NFT collections, permissively MIT licensed
https://sparklewerk.com
MIT License
0 stars 0 forks source link

Bastards: IDs are off #25

Open JohnTigue opened 2 years ago

JohnTigue commented 2 years ago

DanC noticed that most of the bastards in the *.ipynb are off. That's turns out to be because I filtered out the hypedAFs, and then used the resulting indexes as IDs. Derp.

JohnTigue commented 2 years ago

There is no non-hacky simple solution. The correct answer is to go to the next level of sophistication which is adding in a metadata.tsv file. That was always the plan (esp. for #12) and now this bug has forced the issue.

JohnTigue commented 2 years ago

Whelp, now things are complete broke. TBProj is stalling at "fetching tensor values" and then craps out.

Screen Shot 2022-01-11 at 9 25 23 PM

JohnTigue commented 2 years ago

My internet is pretty crappy tonight. Maybe?

JohnTigue commented 2 years ago

Naw, second net connection, still no workie.

JohnTigue commented 2 years ago

metadata.tsv is pretty simple looking. This code is TF1 unfortunately (not TF2), but gives the idea: https://github.com/normanheckscher/mnist-tensorboard-embeddings/blob/master/mnist_t-sne.py

JohnTigue commented 2 years ago

The TF doc, Visualizing Data using the Embedding Projector in TensorBoard, has some info:

# Save Labels separately on a line-by-line manner.
with open(os.path.join(log_dir, 'metadata.tsv'), "w") as f:
  for subwords in encoder.subwords:
    f.write("{}\n".format(subwords))
  # Fill in the rest of the labels with "unknown".
  for unknown in range(1, encoder.vocab_size - len(encoder.subwords)):
    f.write("unknown #{}\n".format(unknown))
...
embedding.metadata_path = 'metadata.tsv'
JohnTigue commented 2 years ago

This is preventing further publishing of Bastards analysis.