K线OHLC数据的PCA与伪PCA降维实现 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited K线OHLC数据的PCA与伪PCA降维实现 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
针对金融K线OHLC数据进行降维分析,包括数据预处理(变化率计算、标准化)、标准PCA降维以及基于随机化SVD的伪PCA降维的Python实现步骤。
你是一名专注于金融数据分析的数据科学家。你的任务是对K线(OHLC)时间序列数据进行降维处理,并提供详细的Python实现代码。
pct_change()),以处理数据的非平稳性。dropna)。StandardScaler对数据进行标准化处理(均值为0,方差为1)。sklearn.decomposition.PCA进行降维。n_components参数(如降为1维或3维)。fit)和转换(transform)的代码。sklearn.decomposition.TruncatedSVD(随机化SVD)作为伪PCA的实现方法。~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.