{ "info": { "author": "Chi Ho CHAN", "author_email": "chiho.chan@surrey.ac.uk", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python" ], "description": "===================================================\r\nThe FAR-FRR confidence interval of the DET curve for Bob\r\n===================================================\r\n\r\nThis example demonstrates how to extend Bob by providing a new performance measurement for measuring the confidence interval of the DET curve.\r\n\r\n.. Originally described in the paper::\r\n Poh, N.; Martin, A.; Bengio, S., \"Performance Generalization in Biometric Authentication Using Joint User-Specific and Sample Bootstraps,\" Pattern Analysis and Machine Intelligence, IEEE Transactions on , vol.29, no.3, pp.492,498, March 2007\r\n\r\nInstallation\r\n============\r\n\r\nFirst, you have to install `bob `_ following the instructions\r\n`there `_.\r\n\r\n.. note:: \r\n\r\n If you are reading this page through our GitHub portal and not through PyPI,\r\n note **the development tip of the package may not be stable** or become\r\n unstable in a matter of moments.\r\n\r\n Go to `http://pypi.python.org/pypi/xbob.measure.Bootstraps\r\n `_ to download the latest\r\n stable version of this package.\r\n\r\nThere are two options you can follow to get this package installed and \r\noperational on your computer: you can use automatic installers like `pip\r\n`_ (or `easy_install\r\n`_) or manually download, unpack and \r\nuse `zc.buildout `_ to create a\r\nvirtual work environment just for this package. In both cases, the two \r\ndependences listed above will be automatically downloaded and installed.\r\n\r\nUsing an automatic installer\r\n----------------------------\r\n\r\nUsing ``pip`` is the easiest (shell commands are marked with a ``$`` signal)::\r\n\r\n $ pip install xbob.measure.Bootstraps\r\n\r\nYou can also do the same with ``easy_install``::\r\n\r\n $ easy_install xbob.measure.Bootstraps\r\n\r\nThis will download and install this package plus any other required\r\ndependencies. It will also verify if the version of Bob you have installed\r\nis compatible.\r\n\r\nThis scheme works well with virtual environments by `virtualenv\r\n`_ or if you have root access to your\r\nmachine. Otherwise, we recommend you use the next option.\r\n\r\nUsing ``zc.buildout``\r\n---------------------\r\n\r\nDownload the latest version of this package from `PyPI\r\n`_ and unpack it in your\r\nworking area. The installation of the toolkit itself uses `buildout\r\n`_. You don't need to understand its inner workings\r\nto use this package. Here is a recipe to get you started::\r\n \r\n $ python bootstrap.py \r\n $ ./bin/buildout\r\n\r\nThese two commands should download and install all non-installed dependencies and \r\nget you a fully operational test and development environment.\r\n\r\n.. note::\r\n\r\n The python shell used in the first line of the previous command set\r\n determines the python interpreter that will be used for all scripts developed\r\n inside this package. Because this package makes use of `Bob`_, you must make sure that the ``bootstrap.py``\r\n script is called with the **same** interpreter used to build Bob, or\r\n unexpected problems might occur.\r\n\r\n If Bob is installed by the administrator of your system, it is safe to\r\n consider it uses the default python interpreter. In this case, the above 3\r\n command lines should work as expected. If you have Bob installed somewhere\r\n else on a private directory, edit the file ``buildout.cfg`` **before**\r\n running ``./bin/buildout``. Find the section named ``buildout`` and edit or\r\n add the line ``prefixes`` to point to the directory where Bob is installed or\r\n built. For example::\r\n\r\n [buildout]\r\n ...\r\n prefixes=/Users/crazyfox/work/bob/build\r\n\r\n\r\nUser Guide\r\n==========\r\n\r\nIt is assumed you have followed the installation instructions for the package\r\nand got this package installed.\r\n\r\nBelow, we provide an example of how to appy jointbootstraps to plot the confidence curve, from \r\nthe python universe::\r\n\r\n >>> import Bootstraps\r\n # predefine a list of confidence rates\r\n >>> confidence=[.25, 0.5, .75]\r\n >>> n_user_bstrp=30\r\n >>> n_sample_bstrp=3\r\n #Read The four column file needs to be in the same format as described in the five_column function,\r\n 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\".\r\n >>> Bootstraps.JointBootstraps_plot(cmc_scores,confidence,n_user_bstrp,n_sample_bstrp=3)\r\n #Plot the DET curve\r\n >>> pos_scores=[]\r\n >>> neg_scores=[]\r\n >>> for Id in range(0,len(cmc_scores)):\r\n >>> pos_scores=numpy.append(pos_scores, cmc_scores[Id][1])\r\n >>> neg_scores=numpy.append(neg_scores, cmc_scores[Id][0])\r\n >>> bob.measure.plot.det(neg_scores,pos_scores,100)\r\n >>> bob.measure.plot.det_axis([.05, 60, .05, 60])\r\n >>> pyplot.xlabel(\"False Acceptance Rate\")\r\n >>> pyplot.ylabel(\"False Rejection Rate\")\r\n >>> pyplot.title(\"The FAR-FRR confidence interval of the DET curve\")\r\n >>> pyplot.grid()\r\n >>> pyplot.savefig(\"Confidence_DET.png\")\r\n >>> pyplot.close()", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/xbob.measure.Bootstraps", "keywords": "", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "xbob.measure.Bootstraps", "package_url": "https://pypi.org/project/xbob.measure.Bootstraps/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/xbob.measure.Bootstraps/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/xbob.measure.Bootstraps" }, "release_url": "https://pypi.org/project/xbob.measure.Bootstraps/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "The FAR-FRR confidence interval of the DET curve", "version": "0.0.1" }, "last_serial": 986122, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "307499de5ffc8e117442d3e13814492c", "sha256": "046a2b89da6502af506b8a272cdd7207de0f976aae3e02c4ff4107eb1e447e51" }, "downloads": -1, "filename": "xbob.measure.Bootstraps-0.0.1.zip", "has_sig": false, "md5_digest": "307499de5ffc8e117442d3e13814492c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 382416, "upload_time": "2014-01-30T14:08:47", "url": "https://files.pythonhosted.org/packages/24/9f/7980ee474c73b72d2784baf20b770276aec882bb21f967b94eabf40cb45f/xbob.measure.Bootstraps-0.0.1.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "307499de5ffc8e117442d3e13814492c", "sha256": "046a2b89da6502af506b8a272cdd7207de0f976aae3e02c4ff4107eb1e447e51" }, "downloads": -1, "filename": "xbob.measure.Bootstraps-0.0.1.zip", "has_sig": false, "md5_digest": "307499de5ffc8e117442d3e13814492c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 382416, "upload_time": "2014-01-30T14:08:47", "url": "https://files.pythonhosted.org/packages/24/9f/7980ee474c73b72d2784baf20b770276aec882bb21f967b94eabf40cb45f/xbob.measure.Bootstraps-0.0.1.zip" } ] }