Commit e660cfe7 authored by André Anjos's avatar André Anjos 💬
Browse files

xbob -> bob

parent 1cd1d251
......@@ -25,8 +25,8 @@ install:
- "python bootstrap.py"
- "CFLAGS=-coverage ./bin/buildout"
script:
- "./bin/python -c 'from xbob.measure import get_config; print(get_config())'"
- "./bin/coverage run --source=xbob.measure ./bin/nosetests -sv"
- "./bin/python -c 'from bob.measure import get_config; print(get_config())'"
- "./bin/coverage run --source=bob.measure ./bin/nosetests -sv"
- "./bin/sphinx-build -b doctest doc sphinx"
- "./bin/sphinx-build -b html doc sphinx"
after_success:
......
include LICENSE README.rst bootstrap.py buildout.cfg
recursive-include doc conf.py *.rst
recursive-include xbob *.cpp
recursive-include xbob/measure/data *.*
recursive-include bob *.cpp
recursive-include bob/measure/data *.*
......@@ -2,16 +2,16 @@
.. Andre Anjos <andre.anjos@idiap.ch>
.. Thu 29 Aug 2013 16:07:57 CEST
.. image:: https://travis-ci.org/bioidiap/xbob.measure.svg?branch=master
:target: https://travis-ci.org/bioidiap/xbob.measure
.. image:: https://coveralls.io/repos/bioidiap/xbob.measure/badge.png
:target: https://coveralls.io/r/bioidiap/xbob.measure
.. image:: http://img.shields.io/github/tag/bioidiap/xbob.measure.png
:target: https://github.com/bioidiap/xbob.measure
.. image:: http://img.shields.io/pypi/v/xbob.measure.png
:target: https://pypi.python.org/pypi/xbob.measure
.. image:: http://img.shields.io/pypi/dm/xbob.measure.png
:target: https://pypi.python.org/pypi/xbob.measure
.. image:: https://travis-ci.org/bioidiap/bob.measure.svg?branch=master
:target: https://travis-ci.org/bioidiap/bob.measure
.. image:: https://coveralls.io/repos/bioidiap/bob.measure/badge.png
:target: https://coveralls.io/r/bioidiap/bob.measure
.. image:: http://img.shields.io/github/tag/bioidiap/bob.measure.png
:target: https://github.com/bioidiap/bob.measure
.. image:: http://img.shields.io/pypi/v/bob.measure.png
:target: https://pypi.python.org/pypi/bob.measure
.. image:: http://img.shields.io/pypi/dm/bob.measure.png
:target: https://pypi.python.org/pypi/bob.measure
=================================
Python bindings for bob.measure
......@@ -42,7 +42,7 @@ Testing
You can run a set of tests using the nose test runner::
$ nosetests -sv xbob.measure
$ nosetests -sv bob.measure
.. warning::
......@@ -59,7 +59,7 @@ You can run our documentation tests using sphinx itself::
You can test overall test coverage with::
$ nosetests --with-coverage --cover-package=xbob.measure
$ nosetests --with-coverage --cover-package=bob.measure
The ``coverage`` egg must be installed for this to work properly.
......
......@@ -74,7 +74,7 @@ def recognition_rate(cmc_scores):
The input has a specific format, which is a list of two-element tuples. Each
of the tuples contains the negative and the positive scores for one test
item. To read the lists from score files in 4 or 5 column format, please use
the :py:func:`xbob.measure.load.cmc_four_column` or
the :py:func:`bob.measure.load.cmc_four_column` or
:py:func:`bob.measure.load.cmc_five_column` function.
The recognition rate is defined as the number of test items, for which the
......@@ -100,7 +100,7 @@ def cmc(cmc_scores):
The input has a specific format, which is a list of two-element tuples. Each
of the tuples contains the negative and the positive scores for one test
item. To read the lists from score files in 4 or 5 column format, please use
the :py:func:`xbob.measure.load.cmc_four_column` or
the :py:func:`bob.measure.load.cmc_four_column` or
:py:func:`bob.measure.load.cmc_five_column` function.
For each test item the probability that the rank r of the positive score is
......
......@@ -23,7 +23,7 @@ def cllr(negatives, positives):
def min_cllr(negatives, positives):
"""Computes the 'minimum cost of log likelihood ratio' measure as given in the bosaris toolkit"""
from xbob.math import pavx
from bob.math import pavx
# first, sort both scores
neg = sorted(negatives)
......
......@@ -10,7 +10,7 @@
For separability information, please consult: http://en.wikipedia.org/wiki/File:Anderson%27s_Iris_data_set.png
"""
import xbob.io
import bob.io
iris_columns = {
'sepal.length': 0,
......@@ -45,8 +45,8 @@ def example1():
Separation threshold is about 3.
"""
data = loaddata('iris.data', 'petal.length')
xbob.io.save(data['setosa'], 'linsep-negatives.hdf5')
xbob.io.save(data['virginica'],'linsep-positives.hdf5')
bob.io.save(data['setosa'], 'linsep-negatives.hdf5')
bob.io.save(data['virginica'],'linsep-positives.hdf5')
def example2():
"""In the second example we will get a non-linearly separable set of scores:
......@@ -58,8 +58,8 @@ def example2():
Separation threshold is about 5 (min. HTER).
"""
data = loaddata('iris.data', 'sepal.length')
xbob.io.save(data['setosa'], 'nonsep-negatives.hdf5')
xbob.io.save(data['versicolor'], 'nonsep-positives.hdf5')
bob.io.save(data['setosa'], 'nonsep-negatives.hdf5')
bob.io.save(data['versicolor'], 'nonsep-positives.hdf5')
def main():
"""Generates data for all examples."""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment