Detection and Identification Rate
Project description
This example demonstrates how to extend Bob by providing a new performance measurement for measuring the open-set identification
Installation
First, you have to install bob following the instructions there.
There are two options you can follow to get this package installed and operational on your computer: you can use automatic installers like pip (or easy_install) or manually download, unpack and use zc.buildout to create a virtual work environment just for this package. In both cases, the two dependences listed above will be automatically downloaded and installed.
Using an automatic installer
Using pip is the easiest (shell commands are marked with a $ signal):
$ pip install xbob.measure.idmeasure
You can also do the same with easy_install:
$ easy_install xbob.measure.idmeasure
This will download and install this package plus any other required dependencies. It will also verify if the version of Bob you have installed is compatible.
This scheme works well with virtual environments by virtualenv or if you have root access to your machine. Otherwise, we recommend you use the next option.
Using zc.buildout
Download the latest version of this package from PyPI and unpack it in your working area. The installation of the toolkit itself uses buildout. You don’t need to understand its inner workings to use this package. Here is a recipe to get you started:
$ python bootstrap.py $ ./bin/buildout
These two commands should download and install all non-installed dependencies and get you a fully operational test and development environment.
User Guide
It is assumed you have followed the installation instructions for the package and got this package installed.
Below, we provide an example of how to appy DIR to plot the DIR curve, from the python universe:
>>> import idmeasure # predefine a list of false acceptance rates >>> FAR=[.01, 0.1, 1] #Read The four column file needs to be in the same format as described in the five_column function, and the "test label" (column 4) has to contain the test/probe file name. please refer the functions of bob.measure.load.cmc_four_column, bob.measure.load.cmc_five_column to load or generate the "cmc scores". >>> idmeasure.DIR_plot(cmc_scores, FAR) >>>pyplot.xlabel("Rank") >>>pyplot.ylabel("Identification Rate (%)") >>>pyplot.title("Detection and Identification Rate Identification Experiment") >>>pyplot.grid() >>>pyplot.savefig("eigenfaceDIR.png") >>>pyplot.close()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for xbob.measure.idmeasure-0.0.2.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40414a7726d13ff47ffabb9dea2d8bf3ec56d3f6fe33852bd9ff828c9bb87874 |
|
MD5 | d52ce9446db50a6fa1e5fa6863aa4b88 |
|
BLAKE2b-256 | 0b3ab0c3695af7f2975f030093846a8afe4243953a5f42bd18e57b8e77046763 |