{ "info": { "author": "Laurent El Shafey", "author_email": "laurent.el-shafey@idiap.ch", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: Education", "Intended Audience :: Science/Research", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Database :: Front-Ends", "Topic :: Scientific/Engineering :: Artificial Intelligence" ], "description": "================\n MNIST Database\n================\n\nThe MNIST database is a database of handwritten digits, which consists of a\ntraining set of 60,000 examples, and a test set of 10,000 examples. It was\nmade available by Yann Le Cun and Corinna Cortes (`MNIST database\n`_). The data was originally extracted\nfrom a larger set made available by `NIST `_, before\nbeing size-normalized and centered in a fixed-size image (28x28 pixels).\n\nThe actual raw data for the database should be downloaded from the `original\nwebsite `_. This package only contains\nthe `Bob `_ accessor methods to use this\ndatabase directly from python.\n\nYou would normally not install this package unless you are maintaining it. What\nyou would do instead is to tie it in at the package you need to **use** it.\nThere are a few ways to achieve this:\n\n1. You can add this package as a requirement at the ``setup.py`` for your own\n `satellite package\n `_\n or to your Buildout ``.cfg`` file, if you prefer it that way. With this\n method, this package gets automatically downloaded and installed on your\n working environment, or\n\n2. You can manually download and install this package using commands like\n ``easy_install`` or ``pip``.\n\nThe package is available in two different distribution formats:\n\n1. You can download it from `PyPI `_, or\n\n2. You can download it in its source form from `its git repository\n `_.\n\nThe database raw files must be installed somewhere in your environment.\n\nYou can mix and match points 1/2 above based on your requirements. Here\nare some examples:\n\nModify your setup.py and download from PyPI\n===========================================\n\nThat is the easiest. Edit your ``setup.py`` in your satellite package and add\nthe following entry in the ``install_requires`` section (note: ``...`` means\n`whatever extra stuff you may have in-between`, don't put that on your\nscript)::\n\n install_requires=[\n ...\n \"xbob.db.mnist\",\n ],\n\nProceed normally with your ``bootstrap/buildout`` steps and you should be all\nset. That means you can now import the namespace ``xbob.db.mnist`` into your scripts.\n\nModify your buildout.cfg and download from git\n==============================================\n\nYou will need to add a dependence to `mr.developer\n`_ to be able to install from our\ngit repositories. Your ``buildout.cfg`` file should contain the following\nlines::\n\n [buildout]\n ...\n extensions = mr.developer\n auto-checkout = *\n eggs = bob\n ...\n xbob.db.mnist\n\n [sources]\n xbob.db.mnist = git https://github.com/bioidiap/xbob.db.mnist.git\n ...\n\n\nHow to use this database API\n============================\n\nAfter launching the python interpreter (assuming that the environment is properly set up),\nyou could get the training set as follows::\n\n >>> import xbob.db.mnist\n >>> db = xbob.db.mnist.Database('PATH_TO_DATA_FROM_YANN_LECUN_WEBSITE') # 4 binary .gz compressed files\n >>> images, labels = db.data(groups='train', labels=[0,1,2,3,4,5,6,7,8,9])\n\nIn this case, this should return two NumPy arrays:\n\n1. `images` contain the raw data (60,000 samples of dimension 784 [28x28 pixels images])\n\n2. `labels` are the corresponding classes (digits 0 to 9) for each of the 60,000 samples\n\n\nIf you don't have the data installed on your machine, you can also use the following\nset of commands that will:\n\n1. first look for the database in the xbob/db/mnist/ subdirectory and use it if is available\n\n2. automatically download it from Yann Lecun's website into a temporary folder that will\n be erased when the destructor of the xbob.db.mnist database is called.\n\n3. automatically download it into the provided directory that will **not** be deleted.\n\n::\n\n >>> import xbob.db.mnist\n >>> db = xbob.db.mnist.Database() # Check for the data files locally, and download them if required\n >>> images, labels = db.data(groups='train', labels=[0,1,2,3,4,5,6,7,8,9])\n >>> del db # delete the temporary downloaded files if any\n\nor\n\n::\n\n >>> db = xbob.db.mnist.Database(\"Directory\") # Persistently downloads files into the folder \"Directory\"\n >>> images, labels = db.data(groups='train', labels=[0,1,2,3,4,5,6,7,8,9])\n >>> del db # The download directory stays", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://pypi.python.org/pypi/xbob.db.mnist", "keywords": "digit recognition,bob,xbob,xbob.db,mnist", "license": "GPLv3", "maintainer": null, "maintainer_email": null, "name": "xbob.db.mnist", "package_url": "https://pypi.org/project/xbob.db.mnist/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/xbob.db.mnist/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://pypi.python.org/pypi/xbob.db.mnist" }, "release_url": "https://pypi.org/project/xbob.db.mnist/1.0.4/", "requires_dist": null, "requires_python": null, "summary": "MNIST Database Access API for Bob", "version": "1.0.4" }, "last_serial": 1002120, "releases": { "1.0.0a": [ { "comment_text": "", "digests": { "md5": "591b0bc493f4dac3a9b59d1303a74929", "sha256": "1b529d31ae4dd9db8227d145ca9b3a8edb7d9f76a7fb565f3032eef131f5ab85" }, "downloads": -1, "filename": "xbob.db.mnist-1.0.0a.zip", "has_sig": false, "md5_digest": "591b0bc493f4dac3a9b59d1303a74929", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18637, "upload_time": "2013-05-08T20:34:26", "url": "https://files.pythonhosted.org/packages/f1/e0/3ae81479a2a1290dc398e4e478b87629da7621c480ca6ba36b2f2141f7be/xbob.db.mnist-1.0.0a.zip" } ], "1.0.0b": [ { "comment_text": "", "digests": { "md5": "c7595b6395d6f186cf2f2c842fc31e56", "sha256": "5b831f9adc7435bb44095263af0896e870f43cb1c91008ad6d8d99fb127d6b92" }, "downloads": -1, "filename": "xbob.db.mnist-1.0.0b.zip", "has_sig": false, "md5_digest": "c7595b6395d6f186cf2f2c842fc31e56", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19187, "upload_time": "2013-05-11T16:20:48", "url": "https://files.pythonhosted.org/packages/32/85/8187227629a24c75af9892e536493b538b9517b1653f73fd80816a06fb41/xbob.db.mnist-1.0.0b.zip" } ], "1.0.0c": [ { "comment_text": "", "digests": { "md5": "1705ddcd9c36aaefdf75a4ec20676ab2", "sha256": "b803bf098170b7e0ef19a5761774e6fabb785b564a952686a81f0f962fe4f677" }, "downloads": -1, "filename": "xbob.db.mnist-1.0.0c.zip", "has_sig": false, "md5_digest": "1705ddcd9c36aaefdf75a4ec20676ab2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19187, "upload_time": "2013-05-11T16:22:54", "url": "https://files.pythonhosted.org/packages/36/48/892789788bfa648efbc1cadb3cbd5116d9ddde8487fc0731bfed4f223340/xbob.db.mnist-1.0.0c.zip" } ], "1.0.0d": [ { "comment_text": "", "digests": { "md5": "cdadb585be04d7ea37e835ca0ae16f07", "sha256": "f918ffca93280a4b772d69941fa55536afacbadcc825564fa1e528d9429b23ae" }, "downloads": -1, "filename": "xbob.db.mnist-1.0.0d.zip", "has_sig": false, "md5_digest": "cdadb585be04d7ea37e835ca0ae16f07", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19127, "upload_time": "2013-05-11T16:45:15", "url": "https://files.pythonhosted.org/packages/b9/a8/de472d51e361812d5cfe107428846ccd06317742405f22bb3ad45a1f1541/xbob.db.mnist-1.0.0d.zip" } ], "1.0.0e": [ { "comment_text": "", "digests": { "md5": "f3640167b893fa09623fa06b6eec93e5", "sha256": "96ff58f4ac8ebfc0246f06440cbcdb4b4a0fa11e2a0c71e31950a1394b1745e4" }, "downloads": -1, "filename": "xbob.db.mnist-1.0.0e.zip", "has_sig": false, "md5_digest": "f3640167b893fa09623fa06b6eec93e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20297, "upload_time": "2013-05-23T17:09:21", "url": "https://files.pythonhosted.org/packages/b4/08/6b42cacf3a3bf4fbc3c32b79e9610561c4ee7d666d8db5d95950fb0875ed/xbob.db.mnist-1.0.0e.zip" } ], "1.0.0f": [ { "comment_text": "", "digests": { "md5": "287e4328d48ecee951d08b576af80d2b", "sha256": "abb57e84e3aea8addab4939dbbe734c3e8594c3da3f2ec6ae02aabf01daefbe3" }, "downloads": -1, "filename": "xbob.db.mnist-1.0.0f.zip", "has_sig": false, "md5_digest": "287e4328d48ecee951d08b576af80d2b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20301, "upload_time": "2013-05-24T19:34:34", "url": "https://files.pythonhosted.org/packages/88/11/17c90423c454612a8cc8ad54c10abaf63ef59b9ce32169b5e19f2482de10/xbob.db.mnist-1.0.0f.zip" } ], "1.0.0g": [ { "comment_text": "", "digests": { "md5": "0e1abdd89433a6a5513817d0cc124d98", "sha256": "25e60c0398f596f537c4809e206205844caf9a3bacadd3eea84f61d9f96a4688" }, "downloads": -1, "filename": "xbob.db.mnist-1.0.0g.zip", "has_sig": false, "md5_digest": "0e1abdd89433a6a5513817d0cc124d98", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20303, "upload_time": "2013-05-26T14:27:59", "url": "https://files.pythonhosted.org/packages/84/d8/f8be17f7afa09e4f47da4d73a64c5c55c06cff4ee85bd4c98809da681978/xbob.db.mnist-1.0.0g.zip" } ], "1.0.0h": [ { "comment_text": "", "digests": { "md5": "6e22b0dfd6e5c25399ffe80eee762991", "sha256": "92cd3520ad97090c898db73da93457b61926ad0508a32b5475f0dc1f94cf3cce" }, "downloads": -1, "filename": "xbob.db.mnist-1.0.0h.zip", "has_sig": false, "md5_digest": "6e22b0dfd6e5c25399ffe80eee762991", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20296, "upload_time": "2013-05-28T15:03:25", "url": "https://files.pythonhosted.org/packages/99/59/e1b6f743103368b41018beacd0ee3f3ae3b12693d286ce12300a56f7e72b/xbob.db.mnist-1.0.0h.zip" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "403018ebe38b2f6cbf0f7e246e7f8e17", "sha256": "2cd4e6876a87d536a1df43039c19317a5fd85078e4dafa374f3dbfd46050dc81" }, "downloads": -1, "filename": "xbob.db.mnist-1.0.1.zip", "has_sig": false, "md5_digest": "403018ebe38b2f6cbf0f7e246e7f8e17", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20249, "upload_time": "2013-07-24T08:57:55", "url": "https://files.pythonhosted.org/packages/60/9d/0c17b6ef31ddc5d9789dda3cd44982ac5364ee5d9b2c9eae6b80b27f086f/xbob.db.mnist-1.0.1.zip" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "48afa9f03079d4df5b30253fbeb0061b", "sha256": "6144fe79c8e7bbde5f080c3dbdbe0f19b113a3f42fa04c1262501d72ce08a4cb" }, "downloads": -1, "filename": "xbob.db.mnist-1.0.2.zip", "has_sig": false, "md5_digest": "48afa9f03079d4df5b30253fbeb0061b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 36008, "upload_time": "2013-08-31T12:48:56", "url": "https://files.pythonhosted.org/packages/ad/85/f2064032aba493ff24455b6603f1494829dfaf4e0503a93d3e3a08ac4547/xbob.db.mnist-1.0.2.zip" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "6727bac1c923acaf89885da75ca8b480", "sha256": "a479e7960babea4e8cb7de3ea60cac54ab738c3c25de8c4c5b9dd8586d7255df" }, "downloads": -1, "filename": "xbob.db.mnist-1.0.3.zip", "has_sig": false, "md5_digest": "6727bac1c923acaf89885da75ca8b480", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 36471, "upload_time": "2014-02-14T09:51:58", "url": "https://files.pythonhosted.org/packages/77/3a/ee251f0ed18d45a2063e0cf8ea9d561929bd905a44cb3e303c1d212bdbd3/xbob.db.mnist-1.0.3.zip" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "75c67745a372e6d498dbf465d8a46767", "sha256": "9ed5fe8b28fa809b19e12053cf58f325da020c289c97096a51b7340ddf40530a" }, "downloads": -1, "filename": "xbob.db.mnist-1.0.4.zip", "has_sig": false, "md5_digest": "75c67745a372e6d498dbf465d8a46767", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 36474, "upload_time": "2014-02-17T12:37:53", "url": "https://files.pythonhosted.org/packages/51/42/bc351547720daab0ec3a8549d19101b16dd4f384a08f6d2667712f02aeca/xbob.db.mnist-1.0.4.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "75c67745a372e6d498dbf465d8a46767", "sha256": "9ed5fe8b28fa809b19e12053cf58f325da020c289c97096a51b7340ddf40530a" }, "downloads": -1, "filename": "xbob.db.mnist-1.0.4.zip", "has_sig": false, "md5_digest": "75c67745a372e6d498dbf465d8a46767", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 36474, "upload_time": "2014-02-17T12:37:53", "url": "https://files.pythonhosted.org/packages/51/42/bc351547720daab0ec3a8549d19101b16dd4f384a08f6d2667712f02aeca/xbob.db.mnist-1.0.4.zip" } ] }