Giter VIP home page Giter VIP logo

abxpy's Introduction

https://travis-ci.org/bootphon/ABXpy.svg?branch=master

ABX discrimination test

ABX discrimination is a term that is used for three stimuli presented on an ABX trial. The third is the focus. The first two stimuli (A and B) are standard, S1 and S2 in a randomly chosen order, and the subjects' task is to choose which of the two is matched by the final stimulus (X). (Glottopedia)

This package contains the operations necessary to initialize, calculate and analyse the results of an ABX discrimination task.

Check out the full documentation at readthedocs.

Organisation

It is composed of 3 main modules and other submodules.

The features can be calculated in numpy via external tools, and made compatible with this package with the h5features module, or directly calculated with one of our tools like the feature_extraction module.

The pipeline

In Module Out
  • data.item
  • parameters
task
  • data.abx
  • data.abx
  • data.features
  • distance
distance
  • data.distance
  • data.abx
  • data.distance
score
  • data.score
  • data.abx
  • data.score
analyse
  • data.csv

See Files Format for a description of the files used as input and output.

The task

According to what you want to study, it is important to characterise the ABX triplets. You can characterise your task along 3 axes: on, across and by a certain label.

An example of ABX triplet:

A B X
on_1 on_2 on_1
ac_1 ac_1 ac_2
by by by

A and X share the same 'on' attribute; A and B share the same 'across' attribute; A,B and X share the same 'by' attribute.

Example of use

See examples/complete_run.sh for a command line run and examples/complete_run.py for a Python utilisation.

Installation

The recommended installation is using conda and the provided environment.yml file.

First clone this repository and go to its root directory. Then

conda env create -n ABXpy -f environment.yml
source activate ABXpy
make install

The module should work out of the box. However, you may get some (unrelevant) warnings while running abx-task.

Run the tests

make test

Generate the documentation

Note that you will get warnings if you don't have the h5features module in your path.

cd docs
make html

(you can also generate the doc in several other formats, see the Makefile)

Citation

If you use this software in your research, please cite:

ABX discriminability, Schatz T., Bach F. and Dupoux E., in preparation.

abxpy's People

Contributors

rolt avatar thomas-schatz avatar louisabraham avatar mmmaat avatar syhw avatar dpx-fair avatar jubenjum avatar cdancette avatar jukaradayi 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.