Skip to content

feat: Add skip-gram word embeddings with nearest-neighbor demo - #7

Open
ThomasHartDev wants to merge 1 commit into
mainfrom
thomas/feat/embeddings
Open

feat: Add skip-gram word embeddings with nearest-neighbor demo#7
ThomasHartDev wants to merge 1 commit into
mainfrom
thomas/feat/embeddings

Conversation

@ThomasHartDev

Copy link
Copy Markdown
Owner

Skip-gram embeddings trained end to end in numpy: center and context tables, full-softmax NLL, minibatch SGD, then cosine nearest neighbors on the center rows. Ships a small multi-sentence toy corpus so capital-city and animal clusters show up in the neighbor lists, plus finite-difference checks on the softmax gradient so the backprop path is not just trust-me code.

Train center/context embedding tables on a small corpus via full-softmax
skip-gram, then rank neighbors by cosine similarity on the center rows.
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

Successfully merging this pull request may close these issues.

1 participant