# JRCF
Java Random Cut Forest
https://github.com/aws/random-cut-forest-by-aws 저장소의 `python_rcf_wrapper`를 참고하여 파이썬에서 실행할 수 있도록 구성한 Random Cut Forest 알고리즘입니다.
## Requirements
- Java 8 or later
## Installation
```sh
pip install jrcf
```
## Usage
```python
import numpy as np
from tqdm.auto import tqdm
from jrcf.rcf import RandomCutForestModel
dim = 5
forest = RandomCutForestModel(dimensions=dim)
TEST_DATA = np.random.normal(size=(100000, dim))
for point in tqdm(TEST_DATA):
score = forest.score(point)
forest.update(point)
pp = [999] * dim
print(forest.score(pp))
```
Raw data
{
"_id": null,
"home_page": null,
"name": "jrcf",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "rcf, random-cut-forest, anomaly-detection",
"author": null,
"author_email": "Dowon <ks2515@naver.com>",
"download_url": "https://files.pythonhosted.org/packages/f1/d0/c9305498f48e20d674a1e532573a8a546359e1a2b51ff979de91fa80aab9/jrcf-0.3.1.tar.gz",
"platform": null,
"description": "# JRCF\n\nJava Random Cut Forest\n\nhttps://github.com/aws/random-cut-forest-by-aws \uc800\uc7a5\uc18c\uc758 `python_rcf_wrapper`\ub97c \ucc38\uace0\ud558\uc5ec \ud30c\uc774\uc36c\uc5d0\uc11c \uc2e4\ud589\ud560 \uc218 \uc788\ub3c4\ub85d \uad6c\uc131\ud55c Random Cut Forest \uc54c\uace0\ub9ac\uc998\uc785\ub2c8\ub2e4.\n\n## Requirements\n\n- Java 8 or later\n\n## Installation\n\n```sh\npip install jrcf\n```\n\n## Usage\n\n```python\nimport numpy as np\nfrom tqdm.auto import tqdm\n\nfrom jrcf.rcf import RandomCutForestModel\n\ndim = 5\nforest = RandomCutForestModel(dimensions=dim)\nTEST_DATA = np.random.normal(size=(100000, dim))\n\nfor point in tqdm(TEST_DATA):\n score = forest.score(point)\n forest.update(point)\n\npp = [999] * dim\nprint(forest.score(pp))\n```\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "AWS's Java Rancom Cut Forest",
"version": "0.3.1",
"project_urls": {
"Repository": "https://github.com/Bing-su/jrcf"
},
"split_keywords": [
"rcf",
" random-cut-forest",
" anomaly-detection"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "2d4f3e9127d1d25698fd9416011dbf1c29cf259a01647f4c708b65b392ace316",
"md5": "20fd8ff552a91f9c780a1f386ac6ea94",
"sha256": "7cde6ecc76ea15c017266ca47efb22e07be146da3206aa1dcc382bfde6fac3be"
},
"downloads": -1,
"filename": "jrcf-0.3.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "20fd8ff552a91f9c780a1f386ac6ea94",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 2541011,
"upload_time": "2025-02-03T02:16:42",
"upload_time_iso_8601": "2025-02-03T02:16:42.792569Z",
"url": "https://files.pythonhosted.org/packages/2d/4f/3e9127d1d25698fd9416011dbf1c29cf259a01647f4c708b65b392ace316/jrcf-0.3.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "f1d0c9305498f48e20d674a1e532573a8a546359e1a2b51ff979de91fa80aab9",
"md5": "d014f613447c7bd74a434f5e76d86916",
"sha256": "1f314bde05c4777d642723c4321e13194d49fd40551c6f26269449b52f8aa9a8"
},
"downloads": -1,
"filename": "jrcf-0.3.1.tar.gz",
"has_sig": false,
"md5_digest": "d014f613447c7bd74a434f5e76d86916",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 2544945,
"upload_time": "2025-02-03T02:16:45",
"upload_time_iso_8601": "2025-02-03T02:16:45.349307Z",
"url": "https://files.pythonhosted.org/packages/f1/d0/c9305498f48e20d674a1e532573a8a546359e1a2b51ff979de91fa80aab9/jrcf-0.3.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-03 02:16:45",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Bing-su",
"github_project": "jrcf",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "jrcf"
}