rmlnomogram:一个用于为任意机器学习算法构建可解释列线图的 R 包
rmlnomogram: An R package to construct an explainable nomogram for any machine learning algorithms
AI总结:
本文提出 rmlnomogram R 包及 Web 应用,通过预测变量组合、模型输出和可选可解释性值,将任意机器学习模型转换为五类可解释列线图。
摘要:
背景:当前列线图只能针对回归算法创建。为任意机器学习(ML)算法提供列线图,可能会加快模型在临床环境中的部署,或提高模型可用性。我们开发了一个 R 包和 Web 应用程序,用于构建具有任意 ML 算法模型可解释性的列线图。方法:我们构建了一个将 ML 预测模型转换为列线图的函数,所需数据集应包含:(1)预测变量值的所有可能组合;(2)模型对应的输出;以及(3)每个预测变量对应的可解释性值(可选)。我们还创建了 Web 应用程序。结果:我们的 R 包能够创建 5 种类型的列线图:分类预测变量与无概率二分类结局(1)、分类预测变量与带概率二分类结局(2)或连续结局(3),以及分类预测变量加单个数值预测变量与带概率二分类结局(4)或连续结局(5)。在最优情况下,第一种类型和其余类型分别最多允许 15 个和 5 个预测变量,且最多 3,200 种组合。Web 应用程序也设有这些限制。第 2 至第 5 种类型可使用可解释性值。结论:我们的 R 包和 Web 应用程序能够使用数量适中的预测变量,为任意 ML 算法构建具有模型可解释性的列线图。
英文摘要:
Background: Current nomogram can only be created for regression algorithm. Providing nomogram for any machine learning (ML) algorithms may accelerate model deployment in clinical settings or improve model availability. We developed an R package and web application to construct nomogram with model explainability of any ML algorithms. Methods: We formulated a function to transform an ML prediction model into a nomogram, requiring datasets with: (1) all possible combinations of predictor values; (2) the corresponding outputs of the model; and (3) the corresponding explainability values for each predictor (optional). Web application was also created. Results: Our R package could create 5 types of nomograms for categorical predictors and binary outcome without probability (1), categorical predictors and binary outcome with probability (2) or continuous outcome (3), and categorical with single numerical predictors and binary outcome with probability (4) or continuous outcome (5). Respectively, the first and remaining types optimally allowed maximum 15 and 5 predictors with maximum 3,200 combinations. Web application is provided with such limits. The explainability values were possible for types 2 to 5. Conclusions: Our R package and web application could construct nomogram with model explainability of any ML algorithms using a fair number of predictors.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。