{ "info": { "author": "Declan Crew", "author_email": "dcrew@dstl.gov.uk", "bugtrack_url": null, "classifiers": [], "description": "# Noisify\n\nNoisify is a simple light weight library for augmenting and modifying data by adding realistic noise.\n\n## Introduction\n\nAdd some human noise (typos, things in the wrong boxes etc.)\n\n >>> from noisify.recipes import human_error\n >>> test_data = {'this': 1.0, 'is': 2, 'a': 'test!'}\n >>> human_noise = human_error(5)\n >>> print(list(human_noise(test_data)))\n [{'a': 'tset!', 'this': 2, 'is': 1.0}]\n >>> print(list(human_noise(test_data)))\n [{'a': 0.0, 'this': 'test!', 'is': 2}]\n\nAdd some machine noise (gaussian noise, data collection interruptions etc.)\n\n >>> from noisify.recipes import machine_error\n >>> machine_noise = machine_error(5)\n >>> print(list(machine_noise(test_data)))\n [{'this': 1.12786393038729, 'is': 2.1387080616716307, 'a': 'test!'}]\n\nIf you want both, just add them together\n\n >>> combined_noise = machine_error(5) + human_error(5)\n >>> print(list(combined_noise(test_data)))\n [{'this': 1.23854334573554, 'is': 20.77848220943227, 'a': 'tst!'}]\n\nAdd noise to numpy arrays\n\n >>> import numpy as np\n >>> test_array = np.arange(10)\n >>> print(test_array)\n [0 1 2 3 4 5 6 7 8 9]\n >>> print(list(combined_noise(test_array)))\n [[0.09172393 2.52539794 1.38823741 2.85571154 2.85571154 6.37596668\n 4.7135771 7.28358719 6.83600156 9.40973018]]\n\nRead an image\n\n >>> from PIL import Image\n >>> test_image = Image.open(noisify.jpg)\n >>> test_image.show()\n\n\n\nAnd now with noise\n\n >>> from noisify.recipes import human_error, machine_error\n >>> combined_noise = machine_error(5) + human_error(5)\n >>> for out_image in combined_noise(test_image):\n ... out_image.show()\n\n\n*Noisify* allows you to build flexible data augmentation pipelines for arbitrary objects.\nAll pipelines are built from simple high level objects, plugged together like lego.\nUse noisify to stress test application interfaces, verify data cleaning pipelines, and to make your ML algorithms more\nrobust to real world conditions.\n\n## Installation\n\n#### Prerequisites\nNoisify relies on Python 3.5+\n\n#### Installation from pipy\n $ pip install noisify\n\n## Additional Information\n\nFull documentation is available at TODO ReadTheDocs Link.\n## Licence\n\nDstl (c) Crown Copyright 2019\n\nNoisify is released under the MIT licence\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dstl/Noisify", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "noisify", "package_url": "https://pypi.org/project/noisify/", "platform": "", "project_url": "https://pypi.org/project/noisify/", "project_urls": { "Homepage": "https://github.com/dstl/Noisify" }, "release_url": "https://pypi.org/project/noisify/1.0/", "requires_dist": null, "requires_python": "", "summary": "Framework for creating synthetic data with realistic errors for refining data science pipelines.", "version": "1.0" }, "last_serial": 5183149, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "faf72c20f225443f424480a658f15f25", "sha256": "d15065b12d7e2d913b48b896988ffadb6f7a3afd73792930fe5746eb30bbf98d" }, "downloads": -1, "filename": "noisify-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "faf72c20f225443f424480a658f15f25", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 28344, "upload_time": "2019-04-24T16:06:10", "url": "https://files.pythonhosted.org/packages/38/c8/e8e20087b119c569332a1d3c5994355734985ea298ceb9df5315b3804278/noisify-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2ba26f2f13e86c24fe96c8ad260db1ec", "sha256": "325d56b8760016ca14f848e6e51b365c0d8bb2cb57b75f5fd3c00229c6b04356" }, "downloads": -1, "filename": "noisify-1.0.tar.gz", "has_sig": false, "md5_digest": "2ba26f2f13e86c24fe96c8ad260db1ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15608, "upload_time": "2019-04-24T16:06:13", "url": "https://files.pythonhosted.org/packages/01/d3/4eb7a7bdff6f276d193b02cea731956406401c6a24a23b9edad20a0623fd/noisify-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "faf72c20f225443f424480a658f15f25", "sha256": "d15065b12d7e2d913b48b896988ffadb6f7a3afd73792930fe5746eb30bbf98d" }, "downloads": -1, "filename": "noisify-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "faf72c20f225443f424480a658f15f25", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 28344, "upload_time": "2019-04-24T16:06:10", "url": "https://files.pythonhosted.org/packages/38/c8/e8e20087b119c569332a1d3c5994355734985ea298ceb9df5315b3804278/noisify-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2ba26f2f13e86c24fe96c8ad260db1ec", "sha256": "325d56b8760016ca14f848e6e51b365c0d8bb2cb57b75f5fd3c00229c6b04356" }, "downloads": -1, "filename": "noisify-1.0.tar.gz", "has_sig": false, "md5_digest": "2ba26f2f13e86c24fe96c8ad260db1ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15608, "upload_time": "2019-04-24T16:06:13", "url": "https://files.pythonhosted.org/packages/01/d3/4eb7a7bdff6f276d193b02cea731956406401c6a24a23b9edad20a0623fd/noisify-1.0.tar.gz" } ] }