{ "info": { "author": "RAISE_LAB", "author_email": "smajumd3@ncsu.edu", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6" ], "description": "# h_anomaly\nA small example package Anomaly detection using hierarchical clustering, anomaly detector, classifiers and fast model rebuilding\n\n## Required Packages to run - \n\n```\n1) pandas\n2) numpy\n3) pickle\n4) scipy\n5) freediscovery\n6) sklearn\n7) matplotlib\n\n```\n\n## Install the Package\n\n```\npip install -U h_anomaly\n\n```\n\n## To Use the Package:\n\n### Import h_anomaly\n```\nimport h_anomaly - 'from h_anomaly import driver'\n\n```\n### Building Tree for the 1st time\n```\ncluster,cluster_tree,max_depth = driver.cluster_driver(file_path,target_class,default_class)\n\n```\n### Loading New data for testing\n```\ndf,train_X,train_y = driver.get_data(file_path,target_class,default_class)\n\n```\n### Storing Test Data for future uses\n```\ntest_df,test_X,test_y = driver.get_data(file_path,target_class,default_class)\ncluster.set_test(test_X,test_y)\n\n```\n### Certify Model for performance monitoring:\n```\ncluster.certify_model(cluster_tree,test_y)\n\n```\n### Check Cluster model for retraining\n```\ncluster.check_model(cluster_tree,threshold)\n\n```\n\n## Available Functions:\n```\n1) fit - Fit the Data into the Birch algorithm to create the clusters\n def fit(self,data,y)\n2) set_test - Store the test data for future uses\n set_test(self,data,y)\n3) get_cluster_tree - For each cluster at every level creates the bcluster objects\n get_cluster_tree(self)\n4) model_adder - Classification model added to each cluster by this function (Change this function to add different model)\n def model_adder(self,cluster_tree)\n5) update_model - Classification model is updated with new data\n update_model(self,cluster_tree,cluster_id)\n6) outlier_model_adder - Outlier detection model is added to each cluster (Change this function to add different model)\n outlier_model_adder(self,cluster_tree)\n7) certify_model - Scores are calculated in this function\n certify_model(self,cluster_tree,test_y)\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/ai-se/h_anomaly", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "h-anomaly", "package_url": "https://pypi.org/project/h-anomaly/", "platform": "", "project_url": "https://pypi.org/project/h-anomaly/", "project_urls": { "Homepage": "https://github.com/ai-se/h_anomaly" }, "release_url": "https://pypi.org/project/h-anomaly/0.0.6/", "requires_dist": [ "freediscovery[core]", "seaborn", "pandas", "numpy", "scipy", "matplotlib" ], "requires_python": "", "summary": "A small example package Anomaly detection using hierarchical clustering, anomaly detector, classifiers and fast model rebuilding", "version": "0.0.6", "yanked": false, "yanked_reason": null }, "last_serial": 6052798, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "0f35ebb284dcff837d174537df8d3970", "sha256": "3d8b31f1a5aa6dec3d3ad8c3536d20f5270aac6c30edb95a9ff2411c38697f5e" }, "downloads": -1, "filename": "h_anomaly-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "0f35ebb284dcff837d174537df8d3970", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2064, "upload_time": "2019-10-15T16:45:52", "upload_time_iso_8601": "2019-10-15T16:45:52.305865Z", "url": "https://files.pythonhosted.org/packages/31/6b/d83a8e6bcc138c8eab2dd365514cefafd548bab97bc6ff422f7a51c1cfc1/h_anomaly-0.0.1-py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "83fe245b0d4f33aa878d95715467cd3b", "sha256": "ebc0abefabf46741ae245fbbd0d627f44442d1d1f3ffd880fedc6a5d76adac11" }, "downloads": -1, "filename": "h_anomaly-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "83fe245b0d4f33aa878d95715467cd3b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2094, "upload_time": "2019-10-15T16:52:06", "upload_time_iso_8601": "2019-10-15T16:52:06.107647Z", "url": "https://files.pythonhosted.org/packages/8d/e7/d8ff00c642c46129e0647503b53198540e80630eac8b6dafbf9b351b4001/h_anomaly-0.0.2-py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "d5c7ecee5469863c678fd6309de29188", "sha256": "349739b92c9b99e7cd9839bce12a0523eeeb569f53e3b29e6d4f51c24974b075" }, "downloads": -1, "filename": "h_anomaly-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "d5c7ecee5469863c678fd6309de29188", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7008, "upload_time": "2019-10-15T17:07:11", "upload_time_iso_8601": "2019-10-15T17:07:11.898783Z", "url": "https://files.pythonhosted.org/packages/db/a4/56e3a56f6e13f998bc7fca55c0ae6eaa8598273eaa3c1f5abda92ec00624/h_anomaly-0.0.3-py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "c89e2cd178fe698b19e833173271a185", "sha256": "6f5860b0b0fa8ba0fd7334fd67bcc5ef286be9a9509809bbd305d4fd247ff92e" }, "downloads": -1, "filename": "h_anomaly-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "c89e2cd178fe698b19e833173271a185", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7017, "upload_time": "2019-10-15T17:11:33", "upload_time_iso_8601": "2019-10-15T17:11:33.184605Z", "url": "https://files.pythonhosted.org/packages/15/30/0551802acac7f38a6d094c967297df1e47652fc832d6b82c09a6d41e4b76/h_anomaly-0.0.4-py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "9b12753bf68d364beca42b06e285a5c5", "sha256": "92d4e580a378d266051435908931ac1162047627d7388c78801a5de119ddb6c5" }, "downloads": -1, "filename": "h_anomaly-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "9b12753bf68d364beca42b06e285a5c5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7024, "upload_time": "2019-10-17T20:29:23", "upload_time_iso_8601": "2019-10-17T20:29:23.530157Z", "url": "https://files.pythonhosted.org/packages/ef/c7/5111be75022fd9584a4251c6ee25d79479000894503cac8004e70c57a9df/h_anomaly-0.0.5-py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "65945ca8cf7a57254272d254d0fc6f49", "sha256": "9fedec170d3c526b37b0d951c2b3b95de40e59b771c1642f0f3145cafc11bd44" }, "downloads": -1, "filename": "h_anomaly-0.0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "65945ca8cf7a57254272d254d0fc6f49", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7673, "upload_time": "2019-10-30T14:00:33", "upload_time_iso_8601": "2019-10-30T14:00:33.157288Z", "url": "https://files.pythonhosted.org/packages/ad/78/8e6abf137718b0104e389ff3b837ddf670b510bb6417c293fc97670fac6d/h_anomaly-0.0.6-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "ea763b425792eb7484c751f9c6e16a63", "sha256": "c2018d1a3130827c7bb159b9cbf926b9409cf4a6e8cac66c90235aebc0087dab" }, "downloads": -1, "filename": "h_anomaly-0.0.6.tar.gz", "has_sig": false, "md5_digest": "ea763b425792eb7484c751f9c6e16a63", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5617, "upload_time": "2019-10-30T14:00:34", "upload_time_iso_8601": "2019-10-30T14:00:34.948481Z", "url": "https://files.pythonhosted.org/packages/25/4a/53f65db46e56d8eaa5c5f6ff66e6c33d55ea4705c16970c1906f46175592/h_anomaly-0.0.6.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "65945ca8cf7a57254272d254d0fc6f49", "sha256": "9fedec170d3c526b37b0d951c2b3b95de40e59b771c1642f0f3145cafc11bd44" }, "downloads": -1, "filename": "h_anomaly-0.0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "65945ca8cf7a57254272d254d0fc6f49", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7673, "upload_time": "2019-10-30T14:00:33", "upload_time_iso_8601": "2019-10-30T14:00:33.157288Z", "url": "https://files.pythonhosted.org/packages/ad/78/8e6abf137718b0104e389ff3b837ddf670b510bb6417c293fc97670fac6d/h_anomaly-0.0.6-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "ea763b425792eb7484c751f9c6e16a63", "sha256": "c2018d1a3130827c7bb159b9cbf926b9409cf4a6e8cac66c90235aebc0087dab" }, "downloads": -1, "filename": "h_anomaly-0.0.6.tar.gz", "has_sig": false, "md5_digest": "ea763b425792eb7484c751f9c6e16a63", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5617, "upload_time": "2019-10-30T14:00:34", "upload_time_iso_8601": "2019-10-30T14:00:34.948481Z", "url": "https://files.pythonhosted.org/packages/25/4a/53f65db46e56d8eaa5c5f6ff66e6c33d55ea4705c16970c1906f46175592/h_anomaly-0.0.6.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }