Giter Site home page Giter Site logo

spotter's Introduction

Leitner system

Implementation of Leitner system for simultaneously training a given neural network and identifying spurious instances (those with wrong labels) in its input dataset.

template code for text classification datasets

text_spotter_template.py provides a template code to identify spurious instances in textual datasets. To use this code, you need to load your dataset (lines 54-63), design your favorite network architecture (lines 97-105), and set your network parameters (lines 65-71).

running example based on addition dataset

addition.py loads data at lines 78-87, develops a sequence to sequence LSTM network for performing addition (lines 90-105). It outputs noisy instances that we injected into the datasets stored in 'data_addition/*' (values at the end of files indicate noise ratio, see paper for details).

https://scholar.harvard.edu/hadi/spot Please see this address for most recent updates on spotting spurious data.

How to Use

python addition.py

or

python text_spotter_template.py (after completing the template)

Parameters

kern: kernel function: this parameter must be set to 'lit' when fitting your model (line 108-112 in addition.py).

acc_thr: accuracy threshold: if network accuracy against an instance is greater than or equal to acc_thr, the spotter treats the instance as correctly classified; a smaller value than 1.0 can be used for more flexibility.

Citation

Hadi Amiri, Timothy A. Miller, Guergana Savova. Spotting Spurious Data with Neural Networks. NAACL 2018.

Contact

Hadi Amiri, [email protected]

spotter's People

Contributors

amirieb avatar

Stargazers

Jan-Christoph Klie  avatar

Watchers

James Cloos 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.