Skip to content

iBM88/SME

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SME

  1. Overview

This package proposes scripts using Theano to perform training and evaluation of the Structured Embeddings model (Bordes et al., AAAI 2011) and of the Semantic Matching Energy model (Bordes et al., AISTATS 2012) on several datasets.

Please refer to the following paper for more details: https://www.hds.utc.fr/everest/lib/exe/fetch.php?id=en%3Asmemlj12&cache=cache&media=en:bordes12aistats.pdf

  • model.py : contains the classes and functions to create the different models and Theano functions (training, evaluation...).
  • {dataset}_exp.py : contains an experiment function to train all the different models on a given dataset.
  • The data/ folder contains the data files for the learning scripts.
  • in the {dataset}/ folders:
    • {dataset}_parse.py : parses and creates data files for the training script of a given dataset.
    • {dataset}_evaluation.py : contains evaluation functions for a given dataset.
    • {dataset}_{model_name}.py : runs the best hyperparameters experiment for a given dataset and a given model.
    • {dataset}_{model_name}.out : output of the best hyperparameters experiment for a given dataset and a given model.
    • {dataset}_test.py : perform quick runs for small models of all types to test the scripts.

The datasets currently available are:

  1. 3rd Party Libraries

You need to install Theano to use those scripts. It also requires: Python >= 2.4, Numpy >=1.5.0, Scipy>=0.8.

The experiment scripts are compatible with Jobman but this library is not mandatory.

  1. Installation

Put the script folder in your PYTHONPATH.

  1. Create the data files

  1. Run and evaluate a model

Simply run the corresponding {dataset}_{model_name}.py file (the SME/{dataset}/ folder has to be your current directory).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published