{"id":72387,"date":"2026-11-17T13:34:39","date_gmt":"2026-11-17T05:34:39","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=72387"},"modified":"2026-11-17T13:34:39","modified_gmt":"2026-11-17T05:34:39","slug":"ysx-sc-practice-095-patient-split-leakage","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/ysx-sc-practice-095-patient-split-leakage\/","title":{"rendered":"\u60f3\u7528\u5355\u7ec6\u80de\u8868\u8fbe\u4fe1\u606f\u9884\u6d4b\u60a3\u8005\u5206\u7ec4\uff0c\u8bad\u7ec3\u96c6\u548c\u6d4b\u8bd5\u96c6\u8be5\u600e\u4e48\u62c6\uff1f"},"content":{"rendered":"<div style=\"max-width:820px;margin:0 auto;color:#263a47;font-size:17px;line-height:1.85;overflow-wrap:break-word\">\n<p>\u4e00\u4e2a\u4e8c\u5206\u7c7b\u6a21\u578b\uff0c\u4ece\u5355\u7ec6\u80de\u8868\u8fbe\u9884\u6d4b\u60a3\u8005\u5c5e\u4e8e\u54ea\u4e00\u7ec4\uff0c\u4ea4\u53c9\u9a8c\u8bc1\u7684 AUC \u8fbe\u5230\u4e00\u3002\u8fd9\u6837\u7684\u56fe\u503c\u5f97\u5148\u6309\u4e0b\u6682\u505c\u952e\uff0c\u6253\u5370\u4e00\u5f20\u51e0\u4e4e\u6ca1\u4eba\u653e\u8fdb\u7ed3\u679c\u9875\u7684\u8868\uff1a\u6bcf\u4e00\u6298\u7684\u8bad\u7ec3\u60a3\u8005\u4e0e\u6d4b\u8bd5\u60a3\u8005\uff0c\u4ea4\u96c6\u91cc\u6709\u8c01\uff1f\u6211\u4eec\u505a\u4e86\u4e00\u4efd\u4e8c\u5341\u56db\u540d\u6a21\u62df\u60a3\u8005\u7684\u8ba1\u6570\u8868\uff0c\u6bcf\u4eba\u56db\u5341\u9897\u7ec6\u80de\u3002\u7528\u540c\u4e00\u5957\u6a21\u578b\u6309\u7ec6\u80de\u968f\u673a\u62c6\u5206\u65f6\uff0c\u4eba\u5c42\u9762\u786e\u5b9e\u62ff\u5230\u6ee1\u5206\uff1b\u628a\u540c\u4e00\u60a3\u8005\u7684\u5168\u90e8\u7ec6\u80de\u653e\u5728\u540c\u4e00\u4fa7\uff0c\u5206\u6570\u8dcc\u5230\u7ea6\u96f6\u70b9\u4e09\u3002\u6570\u636e\u548c\u4ee3\u7801\u90fd\u80fd\u4e0b\u8f7d\uff0c\u5dee\u522b\u51fa\u73b0\u5728\u54ea\u4e00\u6b65\u53ef\u4ee5\u4ece\u6298\u540d\u5355\u4e00\u9879\u9879\u67e5\u3002<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1240\" height=\"800\" style=\"width:100%;height:auto;display:block;border-radius:12px\" alt=\"\u9884\u6d4b\u60a3\u8005\u5206\u7ec4\uff0c\u4e3a\u4ec0\u4e48\u80fd\u62ff\u6ee1\u5206\uff1f\uff0c\u5148\u6253\u5370\u8bad\u7ec3\u548c\u6d4b\u8bd5\u4e24\u4fa7\u7684\u60a3\u8005\u540d\u300224 \u540d\u6a21\u62df\u60a3\u8005\u3001960 \u9897\u7ec6\u80de\u300190 \u4e2a\u57fa\u56e0\uff1b\u60a3\u8005\u5c42 AUC \u4e3a 1\uff0c\u6bcf\u6298\u53cc\u65b9\u5171\u4eab 24 \u4eba\uff1b\u6bcf\u6298\u60a3\u8005\u4ea4\u96c6\u4e3a\u96f6\uff0c\u672c\u6b21 AUC \u7ea6 0.299\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-sc-practice-095-patient-split-leakage.png?resize=1240%2C800&#038;ssl=1\" \/><\/p>\n<p><a download style=\"display:inline-block;margin:3px;padding:4px 10px;border:1px solid #bad0dd;border-radius:5px\" href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-sc-practice-095-patient-split-leakage.zip\">\u4e0b\u8f7d\u5b8c\u6574\u4ee3\u7801\u3001\u793a\u4f8b\u6570\u636e\u4e0e\u53c2\u8003\u8f93\u51fa\uff08ZIP\uff09<\/a> \u00b7 <a download style=\"display:inline-block;margin:3px;padding:4px 10px;border:1px solid #bad0dd;border-radius:5px\" href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-sc-practice-095-patient-split-leakage.pdf\">\u4e0b\u8f7d\u56fe\u6587\u64cd\u4f5c\u624b\u518c\uff08PDF\uff09<\/a><\/p>\n<h2>\u5148\u628a\u5e94\u7528\u573a\u666f\u5199\u6210\u4e00\u53e5\u8bdd<\/h2>\n<p>\u6211\u4eec\u8981\u9884\u6d4b\u7684\u662f\u4e00\u4f4d\u4ee5\u524d\u4ece\u672a\u89c1\u8fc7\u7684\u60a3\u8005\u3002\u624b\u5934\u53ef\u80fd\u6709\u8fd9\u540d\u60a3\u8005\u7684\u8bb8\u591a\u7ec6\u80de\uff0c\u4f46\u5f53\u6a21\u578b\u8bad\u7ec3\u65f6\uff0c\u5b83\u4e0d\u5e94\u89c1\u8fc7\u4ed6\u7684\u4efb\u4f55\u7ec6\u80de\u3001\u4efb\u4e00\u65f6\u95f4\u70b9\u6216\u53e6\u4e00\u5757\u7ec4\u7ec7\u3002\u82e5\u7814\u7a76\u95ee\u9898\u771f\u7684\u53ea\u662f\u7ed9\u5df2\u77e5\u60a3\u8005\u7684\u65b0\u6761\u7801\u505a\u5206\u7c7b\uff0c\u4f8b\u5982\u5728\u5df2\u914d\u5bf9\u7684\u5b9e\u9a8c\u91cc\u68c0\u67e5\u8fd4\u56de\u7684\u7ec6\u80de\u8eab\u4efd\uff0c\u90a3\u662f\u53e6\u4e00\u79cd\u9884\u6d4b\u4efb\u52a1\uff0c\u53ef\u4ee5\u8bbe\u8ba1\u76f8\u5e94\u8bc4\u4ef7\u3002\u672c\u6587\u6309\u201c\u65b0\u6765\u4e00\u4f4d\u60a3\u8005\u201d\u5b9a\u4e49\u6d4b\u8bd5\u5355\u4f4d\uff0c\u5148\u51bb\u7ed3\u60a3\u8005\u7f16\u53f7\uff0c\u518d\u628a\u5b83\u7684\u5168\u90e8\u7ec6\u80de\u89c6\u4e3a\u540c\u4e00\u7ec4\u3002\u8c01\u4f5c\u4e3a\u72ec\u7acb\u5355\u4f4d\uff0c\u51b3\u5b9a\u8bad\u7ec3\u6d4b\u8bd5\u5e94\u8be5\u5728\u54ea\u91cc\u5212\u8fb9\u754c\uff0c\u4e5f\u51b3\u5b9a\u6700\u540e\u62a5\u544a\u7684\u6837\u672c\u91cf\u8be5\u5199\u4eba\u8fd8\u662f\u7ec6\u80de\u3002<\/p>\n<p>\u6a21\u62df\u6570\u636e\u6709\u4e5d\u5341\u4e2a\u57fa\u56e0\u3001\u4e5d\u767e\u516d\u5341\u9897\u7ec6\u80de\uff0c\u4e24\u7ec4\u60a3\u8005\u4eba\u6570\u76f8\u7b49\u3002\u4e3a\u4e86\u8ba9\u7ec3\u4e60\u5177\u6709\u53ef\u89e3\u91ca\u6027\uff0c\u6211\u4eec\u7ed9\u6bcf\u4f4d\u60a3\u8005\u8bbe\u7f6e\u8f83\u7a33\u5b9a\u7684\u4e2a\u4f53\u8868\u8fbe\u7279\u5f81\uff0c\u53ea\u6709\u524d\u51e0\u4e2a\u57fa\u56e0\u5e26\u8f83\u5f31\u7684\u5171\u540c\u5206\u7ec4\u53d8\u5316\u3002\u771f\u5b9e\u5b9e\u9a8c\u91cc\u7684\u4e2a\u4f53\u7279\u5f81\u53ef\u80fd\u6765\u81ea\u9057\u4f20\u5dee\u5f02\u3001\u91c7\u6837\u65b9\u5f0f\u3001\u5904\u7406\u6279\u6b21\u3001\u7ec4\u7ec7\u6210\u5206\u548c\u5176\u4ed6\u56e0\u7d20\u3002\u6a21\u578b\u5f88\u5bb9\u6613\u5229\u7528\u8fd9\u4e9b\u7279\u5f81\u8bc6\u522b\u4e00\u4e2a\u89c1\u8fc7\u7684\u4eba\uff0c\u518d\u95f4\u63a5\u201c\u731c\u4e2d\u201d\u4ed6\u7684\u75c5\u4eba\u6807\u7b7e\u3002\u8fd9\u79cd\u6377\u5f84\u5373\u4f7f\u771f\u7684\u53d1\u751f\uff0c\u4e5f\u5e76\u4e0d\u8bf4\u660e\u7b97\u6cd5\u80fd\u4ece\u672a\u89c1\u8fc7\u7684\u65b0\u60a3\u8005\u4e2d\u8bc6\u522b\u75c5\u7406\u53d8\u5316\u3002\u8bad\u7ec3\u8868\u4e2d\u60a3\u8005\u8eab\u4efd\u867d\u7136\u6ca1\u6709\u4f5c\u4e3a\u6a21\u578b\u8f93\u5165\uff0c\u8868\u8fbe\u4ecd\u53ef\u643a\u5e26\u5176\u53ef\u8bc6\u522b\u7279\u5f81\u3002<\/p>\n<h2>\u770b\u4e24\u79cd\u62c6\u6cd5\u5b9e\u9645\u628a\u54ea\u4e9b\u4eba\u5206\u5230\u4e86\u4e24\u4fa7<\/h2>\n<p>\u4e24\u79cd\u65b9\u6848\u90fd\u91c7\u7528\u56db\u6298\u3001\u56fa\u5b9a\u76f8\u540c\u79cd\u5b50\u5e76\u7167\u987e\u6807\u7b7e\u5e73\u8861\u3002\u7b2c\u4e00\u79cd\u628a\u5168\u90e8\u7ec6\u80de\u4ea4\u7ed9\u5206\u5c42\u62c6\u5206\uff1b\u540c\u4e00\u60a3\u8005\u7684\u56db\u5341\u9897\u7ec6\u80de\u4f1a\u5206\u6563\u5230\u4e24\u4fa7\u3002\u7b2c\u4e8c\u79cd\u5148\u53d6\u4e00\u4eba\u4e00\u884c\u7684\u60a3\u8005\u8868\uff0c\u6309\u60a3\u8005\u6807\u7b7e\u5206\u56db\u6298\uff0c\u7136\u540e\u628a\u6bcf\u4e2a\u60a3\u8005\u7684\u6240\u6709\u7ec6\u80de\u6620\u5c04\u5230\u81ea\u5df1\u7684\u8bad\u7ec3\u6216\u6d4b\u8bd5\u6298\u3002\u4e8e\u662f\u7b2c\u4e8c\u79cd\u6bcf\u6298\u6709\u5341\u516b\u540d\u8bad\u7ec3\u60a3\u8005\u4e0e\u516d\u540d\u6d4b\u8bd5\u60a3\u8005\uff0c\u540d\u5355\u6ca1\u6709\u4ea4\u96c6\u3002\u6bcf\u540d\u60a3\u8005\u53ea\u4f1a\u4ee5\u6d4b\u8bd5\u8eab\u4efd\u51fa\u73b0\u4e00\u6b21\u3002\u771f\u5b9e\u9879\u76ee\u82e5\u540c\u4e00\u4eba\u591a\u6b21\u6765\u8bbf\u3001\u4e0d\u540c\u7ec4\u7ec7\u5757\u6216\u591a\u4e2a\u6280\u672f\u6279\u6b21\uff0c\u9700\u5148\u5c06\u6807\u8bc6\u7edf\u4e00\u4e3a\u540c\u4e00\u4eba\uff0c\u4e0d\u80fd\u628a\u4e00\u6b21\u8bbf\u89c6\u5f53\u6210\u65b0\u60a3\u8005\u7ed5\u8fc7\u62c6\u5206\u3002<a href=\"https:\/\/scikit-learn.org\/stable\/modules\/cross_validation.html\">scikit-learn \u7684\u5206\u7ec4\u4ea4\u53c9\u9a8c\u8bc1\u8bf4\u660e<\/a><\/p>\n<pre style=\"max-width:100%;overflow:auto;padding:14px;box-sizing:border-box;background:#f1f6fa;line-height:1.6;font-size:0.9em\"><code class=\"language-python\">def folds(cells,mode):\n    cv=StratifiedKFold(n_splits=4,shuffle=True,random_state=95)\n    if mode==&quot;random_cells&quot;:\n        yield from cv.split(cells,cells.case)\n    else:\n        patients=cells[[&quot;patient&quot;,&quot;case&quot;]].drop_duplicates()\n        for train,test in cv.split(patients,patients.case):\n            yield np.flatnonzero(cells.patient.isin(patients.iloc[train].patient)),np.flatnonzero(cells.patient.isin(patients.iloc[test].patient))\n<\/code><\/pre>\n<p>\u53ef\u4ee5\u76f4\u63a5\u6253\u5f00\u62c6\u5206\u5ba1\u8ba1\u8868\uff0c\u4e0d\u9700\u8981\u76f8\u4fe1\u4e00\u4e2a\u201c\u5df2\u6309\u60a3\u8005\u62c6\u5206\u201d\u7684\u6587\u4ef6\u540d\u3002\u6211\u4eec\u4e3a\u6bcf\u4e00\u6298\u5199\u4e0b\u8bad\u7ec3\u4eba\u6570\u3001\u6d4b\u8bd5\u4eba\u6570\u3001\u4ea4\u96c6\u4eba\u6570\u548c\u5177\u4f53\u540d\u5355\u3002\u968f\u673a\u6309\u7ec6\u80de\u62c6\u65f6\uff0c\u6bcf\u4e00\u6298\u8bad\u7ec3\u548c\u6d4b\u8bd5\u90fd\u5305\u542b\u5168\u90e8\u4e8c\u5341\u56db\u4eba\u3002\u518d\u770b\u60a3\u8005\u5c42\u9762\u7684\u6298\u5916\u5206\u6570\uff0c\u5b83\u867d\u7136\u53ea\u6765\u81ea\u8be5\u7ec6\u80de\u672c\u8eab\u6ca1\u6709\u53c2\u4e0e\u8bad\u7ec3\u7684\u6a21\u578b\uff0c\u4f46\u540c\u4e00\u4e2a\u4eba\u7684\u5176\u4ed6\u7ec6\u80de\u65e9\u5df2\u53c2\u4e0e\u8bad\u7ec3\u3002\u56e0\u6b64\u5373\u4fbf\u6700\u540e\u624d\u6309\u60a3\u8005\u6c42\u5e73\u5747\uff0c\u4e5f\u65e0\u6cd5\u4fee\u590d\u4e0a\u6e38\u62c6\u5206\u5df2\u7ecf\u5f15\u5165\u7684\u6cc4\u6f0f\u3002\u6309\u60a3\u8005\u62c6\u65f6\uff0c\u5168\u90e8\u6d4b\u8bd5\u7ec6\u80de\u6765\u81ea\u53e6\u5916\u516d\u4e2a\u4eba\uff0c\u8fd9\u624d\u7b26\u5408\u4e00\u5f00\u59cb\u5199\u4e0b\u7684\u65b0\u60a3\u8005\u573a\u666f\u3002<\/p>\n<h2>\u9009\u57fa\u56e0\u548c\u6807\u51c6\u5316\u4e5f\u8981\u5f85\u5728\u8bad\u7ec3\u6298\u5185<\/h2>\n<p>\u811a\u672c\u5728\u6bcf\u4e2a\u8bad\u7ec3\u6298\u5185\u90e8\u6839\u636e\u5206\u7c7b\u4efb\u52a1\u9009\u62e9\u4e09\u5341\u4e94\u4e2a\u57fa\u56e0\uff0c\u7136\u540e\u62df\u5408\u6807\u51c6\u5316\u53c2\u6570\u3001\u8bad\u7ec3\u8fd1\u90bb\u5206\u7c7b\u5668\uff0c\u5728\u7559\u51fa\u96c6\u4e0a\u53ea\u6267\u884c\u8f6c\u6362\u548c\u9884\u6d4b\u3002\u82e5\u5148\u628a\u6240\u6709\u60a3\u8005\u7684\u6807\u7b7e\u7528\u4e8e\u5bfb\u627e\u5dee\u5f02\u57fa\u56e0\uff0c\u518d\u5bf9\u7b5b\u5b8c\u7684\u77e9\u9635\u505a\u4e25\u683c\u6309\u4eba\u7684\u4ea4\u53c9\u9a8c\u8bc1\uff0c\u6d4b\u8bd5\u60a3\u8005\u7684\u6807\u7b7e\u4ecd\u4f1a\u53c2\u4e0e\u51b3\u5b9a\u8f93\u5165\uff0c\u8bc4\u4ef7\u4ecd\u7136\u6cc4\u6f0f\u3002\u5373\u4f7f\u4e0d\u76f4\u63a5\u4f7f\u7528\u6807\u7b7e\uff0c\u8de8\u5168\u961f\u5217\u9009\u62e9\u7279\u5f81\u4e0e\u4f30\u8ba1\u7f29\u653e\u5206\u5e03\u4e5f\u53ef\u80fd\u628a\u6d4b\u8bd5\u5206\u5e03\u5e26\u56de\u8bad\u7ec3\u3002\u6309\u6bcf\u4e2a\u7ec6\u80de\u81ea\u5df1\u7684\u603b\u91cf\u505a\u65e0\u76d1\u7763\u5f52\u4e00\u548c\u9700\u8981\u5b66\u4e60\u5168\u4f53\u53c2\u6570\u7684\u9884\u5904\u7406\uff0c\u5e94\u628a\u4e8c\u8005\u533a\u522b\u5199\u6e05\u3002<a href=\"https:\/\/scikit-learn.org\/stable\/common_pitfalls.html\">\u9884\u5904\u7406\u4e2d\u7684\u6570\u636e\u6cc4\u6f0f\u8bf4\u660e<\/a><\/p>\n<pre style=\"max-width:100%;overflow:auto;padding:14px;box-sizing:border-box;background:#f1f6fa;line-height:1.6;font-size:0.9em\"><code class=\"language-python\">from sklearn.pipeline import make_pipeline\nfrom sklearn.feature_selection import SelectKBest, f_classif\nfrom sklearn.preprocessing import StandardScaler\nfrom sklearn.neighbors import KNeighborsClassifier\nmodel = make_pipeline(SelectKBest(f_classif, k=35), StandardScaler(),\n                      KNeighborsClassifier(n_neighbors=11, weights=&quot;distance&quot;))\n<\/code><\/pre>\n<div style=\"overflow:auto\">\n<table style=\"width:100%;border-collapse:collapse\">\n<thead>\n<tr>\n<th style=\"padding:9px;text-align:left;background:#ffe1e8\">\u62c6\u5206\u65b9\u6848<\/th>\n<th style=\"padding:9px;text-align:left;background:#ffe1e8\">\u6bcf\u6298\u8bad\u7ec3\u4e0e\u6d4b\u8bd5\u60a3\u8005\u4ea4\u96c6<\/th>\n<th style=\"padding:9px;text-align:left;background:#ffe1e8\">\u60a3\u8005\u5c42 AUC<\/th>\n<th style=\"padding:9px;text-align:left;background:#ffe1e8\">\u60a3\u8005\u5c42\u5747\u8861\u51c6\u786e\u7387<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u968f\u673a\u6309\u7ec6\u80de<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">24 \u4eba<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">1.000<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">1.000<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u6574\u4f4d\u60a3\u8005\u7559\u51fa<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">0 \u4eba<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">0.299<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">0.333<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u6bcf\u9897\u6d4b\u8bd5\u7ec6\u80de\u5148\u5f97\u5230\u4e00\u4e2a\u6298\u5916\u6982\u7387\uff0c\u518d\u5bf9\u540c\u4e00\u4f4d\u60a3\u8005\u7684\u6982\u7387\u7b49\u6743\u5e73\u5747\uff0c\u6700\u540e\u53ea\u7528\u4e8c\u5341\u56db\u4e2a\u60a3\u8005\u5f97\u5206\u8ba1\u7b97 AUC \u548c\u5747\u8861\u51c6\u786e\u7387\u3002\u8fd9\u91cc\u6b63\u597d\u6bcf\u4eba\u90fd\u6709\u56db\u5341\u9897\u7ec6\u80de\uff0c\u76ee\u7684\u662f\u8ba9\u4e24\u5957\u8bc4\u4ef7\u5bb9\u6613\u6bd4\u8f83\u3002\u5b9e\u9645\u75c5\u4f8b\u7ec6\u80de\u91cf\u53ef\u80fd\u76f8\u5dee\u51e0\u4e2a\u6570\u91cf\u7ea7\uff0c\u8fd8\u5e94\u8bb0\u5f55\u6bcf\u4f4d\u60a3\u8005\u54ea\u4e9b\u7c7b\u578b\u88ab\u6355\u83b7\uff0c\u662f\u5426\u4e3b\u8981\u7531\u67d0\u4e00\u6570\u91cf\u6781\u5927\u7684\u7ec6\u80de\u7fa4\u652f\u914d\u6982\u7387\u3002\u5982\u679c\u8ba1\u5212\u6309\u7ec6\u80de\u7c7b\u578b\u5148\u6c47\u603b\u3001\u518d\u6c47\u603b\u5230\u4eba\uff0c\u6216\u8005\u4e3a\u75c5\u4f8b\u8bbe\u6700\u5c0f\u7ec6\u80de\u6570\uff0c\u4e5f\u9700\u8981\u5f53\u4f5c\u9884\u5148\u89c4\u5b9a\u7684\u9884\u6d4b\u89c4\u5219\uff0c\u4e0d\u80fd\u770b\u5230\u6d4b\u8bd5\u7ed3\u679c\u540e\u624d\u4ece\u51e0\u79cd\u805a\u5408\u65b9\u6cd5\u4e2d\u6311\u6700\u597d\u7684\u4e00\u79cd\u3002<\/p>\n<h2>\u5206\u6570\u8dcc\u7834\u4e00\u534a\uff0c\u80fd\u5f97\u51fa\u4ec0\u4e48\u7ed3\u8bba<\/h2>\n<p>\u672c\u6b21\u56fa\u5b9a\u6a21\u62df\u6309\u60a3\u8005\u62c6\u7684 AUC \u7ea6\u96f6\u70b9\u4e09\uff0c\u8bf4\u660e\u8fd9\u4e00\u6b21\u4e8c\u5341\u56db\u4eba\u7684\u6d4b\u8bd5\u6392\u5e8f\u5f88\u5dee\u3002\u5b83\u4e0d\u80fd\u8bc1\u660e\u6240\u6709\u771f\u5b9e\u7814\u7a76\u6ca1\u6709\u53ef\u8f6c\u79fb\u4fe1\u53f7\uff0c\u4e5f\u4e0d\u80fd\u56e0\u4e3a\u5c0f\u4e8e\u96f6\u70b9\u4e94\u5c31\u628a\u65b9\u5411\u7ffb\u8fc7\u6765\u5f53\u6210\u7ee9\u6548\u3002\u82e5\u60f3\u68c0\u67e5\u662f\u5426\u672c\u6765\u628a\u9633\u6027\u6807\u7b7e\u7f16\u7801\u53cd\u4e86\uff0c\u5fc5\u987b\u6838\u5bf9\u5206\u7ec4\u5b9a\u4e49\u3001\u6982\u7387\u6240\u5c5e\u7c7b\u522b\u548c\u9884\u5148\u7ea6\u5b9a\u7684\u8bc4\u4ef7\u65b9\u5411\u3002\u82e5\u7f16\u7801\u65e0\u8bef\uff0c\u53ef\u91cd\u590d\u4e0d\u540c\u60a3\u8005\u62c6\u5206\u6216\u751f\u6210\u66f4\u591a\u72ec\u7acb\u6a21\u62df\u60a3\u8005\uff0c\u89c2\u5bdf\u4f30\u8ba1\u7684\u4e0d\u786e\u5b9a\u6027\u3002\u53cd\u590d\u8bd5\u79cd\u5b50\u53ea\u4fdd\u7559\u6700\u9ad8\u5206\uff0c\u4f1a\u91cd\u65b0\u628a\u6d4b\u8bd5\u8bbe\u8ba1\u53d8\u6210\u8c03\u53c2\u5de5\u5177\u3002\u4ee3\u7801\u6309\u6298\u4fdd\u5b58\u4e86\u9009\u4e2d\u7684\u57fa\u56e0\uff0c\u65b9\u4fbf\u68c0\u67e5\u6a21\u578b\u662f\u5426\u53cd\u590d\u4f9d\u9760\u67d0\u4f4d\u60a3\u8005\u7279\u6709\u7684\u7279\u5f81\u3002<\/p>\n<pre style=\"max-width:100%;overflow:auto;padding:14px;box-sizing:border-box;background:#f1f6fa;line-height:1.6;font-size:0.9em\"><code class=\"language-sh\">python -m pip install -r requirements.txt\npython run.py --input example --out results\n<\/code><\/pre>\n<p>\u4e00\u4e2a\u4e0e\u81ea\u8eab\u9879\u76ee\u76f8\u5173\u7684\u5bf9\u7167\uff0c\u662f\u628a\u751f\u6210\u811a\u672c\u4e2d\u7684\u5171\u4eab\u5206\u7ec4\u4fe1\u53f7\u589e\u5f3a\uff0c\u540c\u65f6\u4fdd\u6301\u6bcf\u4f4d\u60a3\u8005\u7684\u7ec6\u80de\u6570\u548c\u4e2a\u4f53\u5dee\u5f02\u4e0d\u53d8\uff0c\u518d\u91cd\u65b0\u62c6\u5206\u3002\u82e5\u6309\u60a3\u8005\u8bc4\u4f30\u53d8\u597d\uff0c\u8bf4\u660e\u6a21\u578b\u6709\u673a\u4f1a\u5229\u7528\u5171\u4eab\u4fe1\u53f7\uff1b\u82e5\u7ee7\u7eed\u5927\u91cf\u589e\u52a0\u6bcf\u4eba\u7684\u7ec6\u80de\u3001\u5374\u4e0d\u589e\u52a0\u60a3\u8005\uff0c\u6309\u7ec6\u80de\u62c6\u4ecd\u53ef\u80fd\u7279\u522b\u6f02\u4eae\uff0c\u72ec\u7acb\u60a3\u8005\u7684\u4f30\u8ba1\u7cbe\u5ea6\u5374\u672a\u5fc5\u6539\u5584\u3002\u4e24\u79cd\u6539\u53d8\u5404\u68c0\u9a8c\u4e00\u4e2a\u95ee\u9898\u3002\u62a5\u544a\u4e2d\u53ef\u628a\u60a3\u8005\u6570\u3001\u6bcf\u4eba\u7ec6\u80de\u5206\u5e03\u3001\u60a3\u8005\u62c6\u5206\u65b9\u6cd5\u53ca\u7c7b\u6bd4\u4f8b\u5199\u5728\u4e3b\u7ed3\u679c\u65c1\uff0c\u8ba9\u5408\u4f5c\u8005\u770b\u61c2\u4e00\u4e2a\u767e\u5206\u70b9\u80cc\u540e\u6709\u591a\u5c11\u72ec\u7acb\u89c2\u5bdf\u3002<\/p>\n<p>\u62a5\u544a\u6d4b\u8bd5\u7ed3\u679c\u65f6\uff0c\u53ef\u4ee5\u53e6\u9644\u4e00\u4e2a\u6734\u7d20\u57fa\u7ebf\u3002\u5b83\u53ea\u6839\u636e\u8bad\u7ec3\u60a3\u8005\u7684\u9633\u6027\u6bd4\u4f8b\u7ed9\u6240\u6709\u6d4b\u8bd5\u60a3\u8005\u540c\u4e00\u4e2a\u6982\u7387\uff0c\u6216\u4ec5\u4f7f\u7528\u9884\u5148\u5141\u8bb8\u7684\u4e34\u5e8a\u53d8\u91cf\u3002\u57fa\u7ebf\u548c\u8868\u8fbe\u6a21\u578b\u5fc5\u987b\u7528\u4e00\u6a21\u4e00\u6837\u7684\u60a3\u8005\u5212\u5206\uff0c\u624d\u5bb9\u6613\u89e3\u91ca\u590d\u6742\u6a21\u578b\u662f\u5426\u771f\u7684\u589e\u52a0\u4e86\u4fe1\u606f\u3002\u5c24\u5176\u5728\u9633\u6027\u5f88\u5c11\u65f6\uff0c\u51c6\u786e\u7387\u53ef\u80fd\u4e3b\u8981\u7531\u591a\u6570\u7c7b\u652f\u6491\uff0c\u5e94\u8be5\u540c\u65f6\u4fdd\u7559\u4e24\u7ec4\u5404\u81ea\u7684\u8bc6\u522b\u7387\u4e0e\u5b8c\u6574\u60a3\u8005\u540d\u5355\u3002\u82e5\u540e\u7eed\u8981\u5efa\u7acb\u7f6e\u4fe1\u533a\u95f4\uff0c\u91cd\u62bd\u6837\u4e5f\u5e94\u4ee5\u6574\u4f4d\u60a3\u8005\u4e3a\u5355\u4f4d\u3002<\/p>\n<p>\u51c6\u5907\u5b9e\u9645\u5e94\u7528\u65f6\uff0c\u8fd8\u8981\u51b3\u5b9a\u4e0d\u540c\u533b\u9662\u6216\u6d4b\u5e8f\u6279\u6b21\u662f\u5426\u4f1a\u6574\u6279\u8fdb\u5165\u65b0\u573a\u666f\u3002\u5982\u679c\u6700\u7ec8\u8981\u9884\u6d4b\u6765\u81ea\u53e6\u4e00\u4e2d\u5fc3\u7684\u60a3\u8005\uff0c\u4ec5\u4fdd\u8bc1\u540c\u4e00\u4eba\u4e0d\u8de8\u6298\u8fd8\u4e0d\u591f\uff1b\u53ef\u53e6\u7559\u4e00\u4e2a\u4e2d\u5fc3\u68c0\u67e5\u5206\u5e03\u53d8\u5316\uff0c\u4ecd\u4ee5\u4eba\u8ba1\u5206\uff0c\u8bf4\u660e\u4e2d\u5fc3\u4e0e\u75be\u75c5\u5206\u7ec4\u662f\u5426\u6df7\u6742\u3002\u82e5\u60a3\u8005\u6570\u4e0d\u8db3\u4ee5\u540c\u65f6\u8c03\u6574\u6a21\u578b\u548c\u9a8c\u8bc1\uff0c\u53ef\u660e\u786e\u8bb0\u4f5c\u63a2\u7d22\uff0c\u4fdd\u7559\u5c06\u6765\u5916\u90e8\u6d4b\u91cf\u7684\u63a5\u53e3\u3002\u7b49\u5230\u9700\u8981\u5bf9\u591a\u4e2a\u7ec6\u80de\u8c31\u7cfb\u548c\u6a21\u578b\u8bbe\u5b9a\u505a\u4e25\u683c\u7684\u5d4c\u5957\u60a3\u8005\u9a8c\u8bc1\u65f6\uff0c\u518d\u6839\u636e\u5b9e\u9645\u60a3\u8005\u6570\u3001\u8868\u8fbe\u77e9\u9635\u53ca\u53cd\u590d\u8bad\u7ec3\u6b21\u6570\u9009\u62e9<a href=\"https:\/\/www.biocloudservice.com\/wordpress\/compute-services\/\">\u4e91\u751f\u4fe1\u79d1\u7814\u670d\u52a1\u5668\u79df\u8d41<\/a>\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4ece\u540c\u4e00\u4efd\u6a21\u62df\u8868\u8fbe\u8868\u6309\u7ec6\u80de\u548c\u6309\u60a3\u8005\u5206\u522b\u505a\u4ea4\u53c9\u9a8c\u8bc1\uff0c\u9010\u6298\u5bfc\u51fa\u91cd\u53e0\u60a3\u8005\u3001\u8bad\u7ec3\u7279\u5f81\u548c\u6bcf\u4e2a\u88ab\u7559\u51fa\u60a3\u8005\u7684\u6982\u7387\u3002<\/p>\n","protected":false},"author":1,"featured_media":72384,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[71],"tags":[],"class_list":["post-72387","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-single-cell"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-sc-practice-095-patient-split-leakage.png?fit=1240%2C800&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/72387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/comments?post=72387"}],"version-history":[{"count":1,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/72387\/revisions"}],"predecessor-version":[{"id":73733,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/72387\/revisions\/73733"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/72384"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=72387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=72387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=72387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}