GithubHelp home page GithubHelp logo

fagan2888 / context-selection-embedding Goto Github PK

View Code? Open in Web Editor NEW

This project forked from blei-lab/context-selection-embedding

0.0 0.0 0.0 19 KB

Context Selection for Embedding Models

Python 100.00%

context-selection-embedding's Introduction

context-selection-embedding

Introduction

This repo implements the embedding models in the 2017 NIPS paper "Context Selection for Embedding Models".

Embedding models aim to find vector representations of items that encode item relations. The approach is to predict the count/presence of one item given its context items. However, some context items in the context set do not reflect item relations and should not be considered by the embedding model. Context selection is designed down-weight unrelated context items when learning embeddings. This new model use hidden indicators to decide which context item should be used in the embedding model. In the learning stage when hidden indicators are approximately marginalized out, unrelated context items contribute less to embedding learning. Please see the details in the paper.

Running the code

python demo.py

Note: this repo does not contain any data -- it only use some random data to show how to use the code. The code requires numpy, scipy, and tensorflow.

Contact and cite

If you have any questions, please contact the Li-Ping Liu (liping.liulp at gmail).

If you have used the code in your work, please cite:

@inproceedings{context-select17, title = {Context Selection for Embedding Models}, author = {Li-Ping Liu, Francisco J.R. Ruiz, Susan C. Athey, and David M. Blei}, booktitle ={Accepted by Advances in Neural Information Processing Systems 30}, pages = {}, year = {2017}, }

context-selection-embedding's People

Contributors

lipingliulp 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.