用法:
clx.analytics.stats.rzscore(series, window)
计算滚动z-score
- series:cudf.Series
计算滚动的系列z-score
- window:int
窗口大小
- cudf.Series
具有滚动z-score 值的系列
参数:
返回:
例子:
>>> import clx.analytics.stats >>> import cudf >>> sequence = [3,4,5,6,1,10,34,2,1,11,45,34,2,9,19,43,24,13,23,10,98,84,10] >>> series = cudf.Series(sequence) >>> zscores_df = cudf.DataFrame() >>> zscores_df['zscore'] = clx.analytics.stats.rzscore(series, 7) >>> zscores_df zscore 0 null 1 null 2 null 3 null 4 null 5 null 6 2.374423424 7 -0.645941275 8 -0.683973734 9 0.158832461 10 1.847751909 11 0.880026019 12 -0.950835449 13 -0.360593742 14 0.111407599 15 1.228914145 16 -0.074966331 17 -0.570321249 18 0.327849973 19 -0.934372308 20 2.296828498 21 1.282966989 22 -0.795223674
相关用法
- Python clx.analytics.anomaly_detection.dbscan用法及代码示例
- Python clx.analytics.asset_classification.AssetClassification.predict用法及代码示例
- Python clx.analytics.loda.Loda.score用法及代码示例
- Python clx.analytics.dga_detector.DGADetector.evaluate_model用法及代码示例
- Python clx.analytics.asset_classification.AssetClassification.save_model用法及代码示例
- Python clx.analytics.dga_detector.DGADetector.predict用法及代码示例
- Python clx.analytics.asset_classification.AssetClassification.load_model用法及代码示例
- Python clx.analytics.dga_detector.DGADetector.train_model用法及代码示例
- Python clx.analytics.loda.Loda.explain用法及代码示例
- Python clx.analytics.loda.Loda.fit用法及代码示例
- Python clx.analytics.asset_classification.AssetClassification.train_model用法及代码示例
- Python clx.ip.is_ip用法及代码示例
- Python clx.ip.hostmask用法及代码示例
- Python clx.osi.virus_total.VirusTotalClient.file_rescan用法及代码示例
- Python clx.osi.virus_total.VirusTotalClient.url_report用法及代码示例
- Python clx.ip.is_global用法及代码示例
- Python clx.osi.virus_total.VirusTotalClient.ipaddress_report用法及代码示例
- Python clx.ip.ip_to_int用法及代码示例
- Python clx.osi.virus_total.VirusTotalClient.file_scan用法及代码示例
- Python clx.osi.virus_total.VirusTotalClient.scan_big_file用法及代码示例
注:本文由纯净天空筛选整理自rapids.ai大神的英文原创作品 clx.analytics.stats.rzscore。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。