GithubHelp home page GithubHelp logo

bfidelin / rbf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amirieb/rbf

0.0 1.0 0.0 423 KB

Source code for Repeat before Forgetting: Spaced Repetition for Efficient and Effective Training of Neural Networks. Hadi Amiri, Timothy A. Miller, Guergana Savova. EMNLP 2017.

Python 100.00%

rbf's Introduction

RbF

This code demonstrates how RbF (see below) can be used to train any neural network. RbF is inspired by the broad evidence in psychology that shows human ability to retain information improves with repeated exposure and exponentially decays with delay since last exposure. It works based on spaced repetition in which training instances are repeatedly presented to the network on a schedule determined by a spaced repetition algorithm. RbF shortens or lengthens review intervals for training instances with respect to loss of instances and current performance of network on validation data.

To use this code, you just need to load your data (lines 47-56), design your favorite network architecture (lines 61-67), and choose the type of training paradigm you'd like to use (lines 77-83 for standard training and lines 88-96 for Rbf). If you are using only one of these training paradigms, edit/comment out lines 101-107.

https://scholar.harvard.edu/hadi/RbF Please see the above address for most recent updates on RbF.

How to Use

python rbf.py

Parameters

kern: type of kernel function, it could be any kernel in ['gau', 'lap', 'lin', 'cos', 'qua', 'sec'] which represent gaussian, laplace, linear, cosine, quadratic, and secant functions respectively

nu: recall confidence, RbF scheduler estimates the maximum delay such that instances can be recalled with this confidence in the future iterations, nu takes a value in (0,1)

Citation

Hadi Amiri, Timothy A. Miller, Guergana Savova. Repeat before Forgetting: Spaced Repetition for Efficient and Effective Training of Neural Networks. EMNLP 2017.

Contact

Hadi Amiri, [email protected]

rbf's People

Contributors

amirieb avatar

Watchers

 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.