{ "info": { "author": "Saman Fekri", "author_email": "samanf74@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# StreamOutlierDetector\nDetect outliers of sequence in stream. \nIn this project we have some assumption:\n- This project works online that means has no idea about the future data\n- This project forget older data (more than size of sample array)\n- If more than half of sample array be in outlier then this project assume the majority is not outlier and calculate outlier detection for the sample again\n\n\n## Usage\n\n### install\n```bash\npip install pyood\npip install --upgrade pyood # if you want update package\n```\n\n### How use it\n```python\nfrom pyood import OutlierDetector\n\noutlier_detector = OutlierDetector(bound_factor_standard_deviation=3, window_size=20, size_initial_ignore=10)\n\nis_outlier = outlier_detector.push(your_value)\n```\n\nif you want, you can use it with callback function\n```python\nfrom pyood import OutlierDetector\n\ndef result(is_outlier):\n print(is_outlier)\n\noutlier_detector = OutlierDetector(bound_factor_standard_deviation=3, window_size=20, size_initial_ignore=10)\n\nis_outlier = outlier_detector.push(value=your_value, callback=result)\n```\n### Help\n``bound_factor_standard_deviation`` is the factor that multiple with standard deviation. ``|value - mean| > bound_factor_standard_deviation * satandard deviation`` is the outlier. \n``window_size`` is the size of array is effective for finding outlier. \n``first_learning_number`` is the number of first value we ignore and learn from them. \n\nWarning \u26a0 |\n----------------------------------------| \nif the outlier be in the first ``first_learning_number`` we return it is not outlier and more dangerous we learn it and ruined the mean and variance for a while| \n\n\n## Result\nI test this class and show the functionality of it on a chart. \n\u274c are the outliers we detect. \n\ud83d\udd35 are the normal values. \n - are the bound of outlier detection. \n\nWithout bound | With bounds\n----------------------------------------| ------------------------------ \n![]( ./images/test_result_normal.png) | ![]( ./images/test_result.png) \n\n\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/SamanFekri/StreamOutlierDetector", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pyood", "package_url": "https://pypi.org/project/pyood/", "platform": "", "project_url": "https://pypi.org/project/pyood/", "project_urls": { "Homepage": "https://github.com/SamanFekri/StreamOutlierDetector" }, "release_url": "https://pypi.org/project/pyood/0.2.1/", "requires_dist": null, "requires_python": "", "summary": "Detect outliers of sequence in stream.", "version": "0.2.1" }, "last_serial": 5505427, "releases": { "0.2.1": [ { "comment_text": "", "digests": { "md5": "30595a10c9d0a9640237c37b480a84f3", "sha256": "72dba145b56334fc537c60f179fafd564c486defefc7c58b43cbbd3861c72c70" }, "downloads": -1, "filename": "pyood-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "30595a10c9d0a9640237c37b480a84f3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16841, "upload_time": "2019-07-09T07:57:57", "url": "https://files.pythonhosted.org/packages/24/9e/dc506151aa52c7787032b1566fe7a28758fbd03278ce0b88aa36c4395a52/pyood-0.2.1-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "30595a10c9d0a9640237c37b480a84f3", "sha256": "72dba145b56334fc537c60f179fafd564c486defefc7c58b43cbbd3861c72c70" }, "downloads": -1, "filename": "pyood-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "30595a10c9d0a9640237c37b480a84f3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16841, "upload_time": "2019-07-09T07:57:57", "url": "https://files.pythonhosted.org/packages/24/9e/dc506151aa52c7787032b1566fe7a28758fbd03278ce0b88aa36c4395a52/pyood-0.2.1-py3-none-any.whl" } ] }