用于流异常检测的鲁棒随机森林算法的实现

上传者: xixixixixixixi21 | 上传时间: 2022-04-25 18:08:34 | 文件大小: 818KB | 文件类型: RAR
import numpy as np import pandas as pd import rrcf # Set parameters np.random.seed(0) n = 2010 d = 3 num_trees = 100 tree_size = 256 # Generate data X = np.zeros((n, d)) X[:1000,0] = 5 X[1000:2000,0] = -5 X += 0.01*np.random.randn(*X.shape) # Construct forest forest = [] while len(forest) < num_trees: # Select random subsets of points uniformly from point set ixs = np.random.choice(n, size=(n // tree_size, tree_size), replace=False) # Add sampled trees t

文件下载

资源详情

[{"title":"( 39 个子文件 818KB ) 用于流异常检测的鲁棒随机森林算法的实现","children":[{"title":".travis.yml <span style='color:#111;'> 268B </span>","children":null,"spread":false},{"title":"docs","children":[{"title":"_layouts","children":[{"title":"default.html <span style='color:#111;'> 2.86KB </span>","children":null,"spread":false}],"spread":true},{"title":"tree-construction.md <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"favicon.png <span style='color:#111;'> 492B </span>","children":null,"spread":false},{"title":"caveats.md <span style='color:#111;'> 2.05KB </span>","children":null,"spread":false},{"title":"insert-and-delete.md <span style='color:#111;'> 2.20KB </span>","children":null,"spread":false},{"title":"anomaly-scoring.md <span style='color:#111;'> 4.10KB </span>","children":null,"spread":false},{"title":"modifying-rctree.md <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"_includes","children":[{"title":"nav.html <span style='color:#111;'> 246B </span>","children":null,"spread":false}],"spread":true},{"title":"classification.md <span style='color:#111;'> 7.79KB </span>","children":null,"spread":false},{"title":"_config.yml <span style='color:#111;'> 148B </span>","children":null,"spread":false},{"title":"comparisons.md <span style='color:#111;'> 4.71KB </span>","children":null,"spread":false},{"title":"taxi.md <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false},{"title":"random-cut-tree.md <span style='color:#111;'> 2.88KB </span>","children":null,"spread":false},{"title":"rctree-api.md <span style='color:#111;'> 8.83KB </span>","children":null,"spread":false},{"title":"scoring-rctree.md <span style='color:#111;'> 3.58KB </span>","children":null,"spread":false},{"title":"batch.md <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false},{"title":"streaming.md <span style='color:#111;'> 2.16KB </span>","children":null,"spread":false},{"title":"_data","children":[{"title":"nav.yml <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false}],"spread":false},{"title":"index.md <span style='color:#111;'> 8.82KB </span>","children":null,"spread":false},{"title":"related-work.md <span style='color:#111;'> 4.39KB </span>","children":null,"spread":false}],"spread":false},{"title":"paper","children":[{"title":"figure_2.png <span style='color:#111;'> 105.53KB </span>","children":null,"spread":false},{"title":"paper.md <span style='color:#111;'> 6.36KB </span>","children":null,"spread":false},{"title":"paper.bib <span style='color:#111;'> 3.38KB </span>","children":null,"spread":false},{"title":"figure_1.png <span style='color:#111;'> 271.94KB </span>","children":null,"spread":false}],"spread":true},{"title":"test","children":[{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"test_rrcf.py <span style='color:#111;'> 5.43KB </span>","children":null,"spread":false}],"spread":true},{"title":"_config.yml <span style='color:#111;'> 27B </span>","children":null,"spread":false},{"title":"resources","children":[{"title":"nuclear.mat <span style='color:#111;'> 188.59KB </span>","children":null,"spread":false},{"title":"sine.png <span style='color:#111;'> 48.13KB </span>","children":null,"spread":false},{"title":"batch.png <span style='color:#111;'> 130.02KB </span>","children":null,"spread":false},{"title":"nyc_taxi.csv <span style='color:#111;'> 259.54KB </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"requirements.txt <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"setup.py <span style='color:#111;'> 445B </span>","children":null,"spread":false},{"title":"rrcf","children":[{"title":"shingle.py <span style='color:#111;'> 634B </span>","children":null,"spread":false},{"title":"rrcf.py <span style='color:#111;'> 34.24KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 140B </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 8.66KB </span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明