Coder Social home page Coder Social logo

word_embeddings's Introduction

word_embeddings

This is an example of how you can train your own word embeddings and track that progress via logging the similarity change over time and visualizing the results in 3D.
We use Word2Vec here as the example model but you can replace it with any embedding model once the output is an embedding that you can use for things like cosine similarity and then visualize them via dimsionality reduction with techniques as PCA

1. Generate your dataset

First you will need to generate your own dataset via the custom_language_dataset.ipynb notebook.
You can tune this dataset to whatever you like to see different results. So it is worth experimenting with.
As a start we will use a simply random dataset and one where the relationship between terms in our dataset are easily identified.

2. Train your embeddings

Next you can use the example Word2Vec model to train some word embeddings via the train_track_embeddings.ipynb notebook.

3. Track your results via Neptune

And finally we will look at how the similarity changes over time for an example term and visualize the 3D interactive plot of the embeddings as well.
This should give us some insight into what information is being encooded into these embeddings

`

word_embeddings's People

Contributors

choran avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.