Code Monkey home page Code Monkey logo

memorynetwork's Introduction

Memory Network

This project is an implementation of the Memory Network (see PAPER).

People : David Panou

Organization : UPMC - Master Data Science

  • ✅ Embeddings (inputs & memory )
  • ✅ Relational Inference
  • ◻️ Results and Model Analysis
  • ◻️ Handling other entries than OneHot (Look-up Table for pretrained embeddings)
  • ◻️ Adding Optim package for better sgd (momentum and others)

Memory Network


Create the dataset

python preprocessing/preprocessing.py

You can adjust the level of detail in the generated answer using the level argument. (default is -level 0) -level 1 compute sentence instead of words.

transform csv data into torch tensor (only if recomputed csv)

th main.lua -generate_dataset 1

Perform Memory Network Training

th main.lua -train_mem_net 1 To run with default parameters

Go into further parametring

th main.lua -train_mem_net 1 -num_mem 10 -feature_dim 174 -voc_size 58

The written parameters above are the default one.

Be careful that : - voc_size is >= to the number of word in the dataset


The different modules can be found under models/*_module.lua

The current main.lua replicates the Basic Question-Answering task described in the paper, but the implementation should be able to handle other tasks.

Results are stored in results

Results

Upcoming

memorynetwork's People

Contributors

pandav2 avatar

Watchers

James Cloos avatar  avatar paper2code - bot 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.