{"id":19078495,"url":"https://github.com/ayushidalmia/tsne-tensorboard-visualisation","last_synced_at":"2025-04-30T04:48:50.733Z","repository":{"id":79361631,"uuid":"88980566","full_name":"ayushidalmia/tsne-tensorboard-visualisation","owner":"ayushidalmia","description":"This repository provides a starter code for using tensorboard via tensorflow for visualising embeddings","archived":false,"fork":false,"pushed_at":"2018-04-04T12:01:49.000Z","size":17473,"stargazers_count":14,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-30T04:48:39.407Z","etag":null,"topics":["embeddings","representation","tensorboard","tensorflow","visualisation"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ayushidalmia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-04-21T12:16:49.000Z","updated_at":"2022-11-12T14:54:30.000Z","dependencies_parsed_at":"2023-03-12T07:54:03.835Z","dependency_job_id":null,"html_url":"https://github.com/ayushidalmia/tsne-tensorboard-visualisation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayushidalmia%2Ftsne-tensorboard-visualisation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayushidalmia%2Ftsne-tensorboard-visualisation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayushidalmia%2Ftsne-tensorboard-visualisation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayushidalmia%2Ftsne-tensorboard-visualisation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ayushidalmia","download_url":"https://codeload.github.com/ayushidalmia/tsne-tensorboard-visualisation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251644827,"owners_count":21620630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["embeddings","representation","tensorboard","tensorflow","visualisation"],"created_at":"2024-11-09T02:09:57.807Z","updated_at":"2025-04-30T04:48:50.727Z","avatar_url":"https://github.com/ayushidalmia.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tf-tb-visualisation\n\n### How to run\nThis repository provides a starter code for using tensorboard via tensorflow for visualising embeddings\n\nThe following is the folder structure expected by the code:\n\n* sample_data/\n\t* embeddings/\n\t\t* filename_embedding\n\t* images/\n\t\t* data/\n\t\t* metadata.txt\n\t* text/\n\t\t* metadata.txt\n\n\nThe filename_embedding consists of the n_dimensional embeddings\nThe data folder consists of all the images\nThe metadata.txt for images consists of the following format: image_filename\\tlabel (one to one mapping with embedding vector)\nThe metadata.txt for text consists of the following format: label (one to one mapping with embedding vector)\n\n\nFor visualising embeddings run the following from the command line:\nFor word embeddings:\n\n``` \npython visualise_embeddings.py -b $baseDir -f $filename_embedding -m \"text\" -l $filename_label\n```\nExample usage:\n```\npython visualise_embeddings.py -b /Users/ayushi/Work/tf-tb-visualisation/sample_data/ -f feature_vectors_400_samples.txt -m text -l metadata_text.txt\n```\n\nFor image embeddings:\n```\npython visualise_embeddings.py -b $baseDir -f $filename_embedding -m \"image\" -l $filename_label\n```\nExample usage:\n```\npython visualise_embeddings.py -b /Users/ayushi/Work/tf-tb-visualisation/sample_data/ -f feature_vectors_400_samples.txt -m \"image\" -l metadata_images.txt\n```\n\nThen finally run:\n```\ntensorboard --logdir=$baseDir\n```\nExample usage:\n```\ntensorboard --logdir=/Users/ayushi/Work/tf-tb-visualisation/sample_data/\n```\n\nNote: Giving the complete path is important. \n\n### Reading:\n* [Visualizing Data using t-SNE](http://www.jmlr.org/papers/volume9/vandermaaten08a/vandermaaten08a.pdf)\n* [How to use t-SNE efficiently](https://distill.pub/2016/misread-tsne/)\n\n### Acknowledgement\nI would like to sincerely thank [Anuj Shah](https://github.com/anujshah1003) for his data and code for sprite image. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayushidalmia%2Ftsne-tensorboard-visualisation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayushidalmia%2Ftsne-tensorboard-visualisation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayushidalmia%2Ftsne-tensorboard-visualisation/lists"}