{"id":38683597,"url":"https://github.com/xuhongzuo/deep-iforest","last_synced_at":"2026-01-17T10:18:12.713Z","repository":{"id":41174545,"uuid":"503210853","full_name":"xuhongzuo/deep-iforest","owner":"xuhongzuo","description":"offical implementation of TKDE paper \"Deep isolation forest for anomaly detection\"","archived":false,"fork":false,"pushed_at":"2024-06-17T02:43:01.000Z","size":6338,"stargazers_count":71,"open_issues_count":1,"forks_count":18,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-17T03:44:52.497Z","etag":null,"topics":["anomaly-detection","isolation-forest","outlier-detection"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xuhongzuo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-14T04:42:54.000Z","updated_at":"2024-06-17T02:43:04.000Z","dependencies_parsed_at":"2024-06-17T03:43:40.976Z","dependency_job_id":"896f5a75-6cca-4b25-baad-eece455d05c0","html_url":"https://github.com/xuhongzuo/deep-iforest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xuhongzuo/deep-iforest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuhongzuo%2Fdeep-iforest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuhongzuo%2Fdeep-iforest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuhongzuo%2Fdeep-iforest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuhongzuo%2Fdeep-iforest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xuhongzuo","download_url":"https://codeload.github.com/xuhongzuo/deep-iforest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuhongzuo%2Fdeep-iforest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28506061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anomaly-detection","isolation-forest","outlier-detection"],"created_at":"2026-01-17T10:18:12.157Z","updated_at":"2026-01-17T10:18:12.708Z","avatar_url":"https://github.com/xuhongzuo.png","language":"Python","funding_links":[],"categories":["2023"],"sub_categories":[],"readme":"# Deep iForest\n\n[![PWC](https://img.shields.io/endpoint.svg?url=https://paperswithcode.com/badge/deep-isolation-forest-for-anomaly-detection/anomaly-detection-on-kaggle-credit-card-fraud)](https://paperswithcode.com/sota/anomaly-detection-on-kaggle-credit-card-fraud?p=deep-isolation-forest-for-anomaly-detection)\n[![PWC](https://img.shields.io/endpoint.svg?url=https://paperswithcode.com/badge/deep-isolation-forest-for-anomaly-detection/anomaly-detection-on-forest-covertype)](https://paperswithcode.com/sota/anomaly-detection-on-forest-covertype?p=deep-isolation-forest-for-anomaly-detection)\n[![PWC](https://img.shields.io/endpoint.svg?url=https://paperswithcode.com/badge/deep-isolation-forest-for-anomaly-detection/anomaly-detection-on-nb15-backdoor)](https://paperswithcode.com/sota/anomaly-detection-on-nb15-backdoor?p=deep-isolation-forest-for-anomaly-detection)\n[![PWC](https://img.shields.io/endpoint.svg?url=https://paperswithcode.com/badge/deep-isolation-forest-for-anomaly-detection/anomaly-detection-on-nb15-dos)](https://paperswithcode.com/sota/anomaly-detection-on-nb15-dos?p=deep-isolation-forest-for-anomaly-detection)\n\n\nThis repository is the source code of the paper \"**Deep Isolation Forest for Anomaly Detection**\" published in TKDE (April 2023).  (see full paper at https://arxiv.org/abs/2206.06602 or https://ieeexplore.ieee.org/document/10108034/ )   \n\n\n### How to use?\n\n\nDIF provides easy APIs like the sklearn style.\nWe first instantiate the model class by giving the parameters  \nthen, the instantiated model can be used to fit and predict data\n\n```python\nfrom algorithms.dif import DIF\nmodel_configs = {'n_ensemble':50, 'n_estimators':6}\nmodel = DIF(**model_configs)\nmodel.fit(X_train)\nscore = model.decision_function(X_test)\n```\n\n:boom:**Note:** \n- DIF is also included in our `DeepOD` python library. Please see https://github.com/xuhongzuo/DeepOD \n- Please also see the Zhihu blog (in Chinese) https://zhuanlan.zhihu.com/p/625557221 \n\n\n### Citation\n\nPlease consider citing our paper if you find this repository useful.  \n\nH. Xu, G. Pang, Y. Wang and Y. Wang, \"Deep Isolation Forest for Anomaly Detection,\" in IEEE Transactions on Knowledge and Data Engineering, doi: 10.1109/TKDE.2023.3270293.\n\n```\n@ARTICLE{xu2023deep,\n  author={Xu, Hongzuo and Pang, Guansong and Wang, Yijie and Wang, Yongjun},\n  journal={IEEE Transactions on Knowledge and Data Engineering}, \n  title={Deep Isolation Forest for Anomaly Detection}, \n  year={2023},\n  volume={},\n  number={},\n  pages={1-14},\n  doi={10.1109/TKDE.2023.3270293}}\n\n```\n\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxuhongzuo%2Fdeep-iforest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxuhongzuo%2Fdeep-iforest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxuhongzuo%2Fdeep-iforest/lists"}