当前位置: 首页 > news >正文

网站描述作用网站模板购买

网站描述作用,网站模板购买,专门做母婴的网站,做网站的服务商决策曲线分析(DCA)中平均净阈值用于评价模型算法 DCA分析虽然不强调用来评价模型算法或者变量组合的优劣,但是实际应用过程中感觉DCA曲线的走势和模型的效能具有良好的一致性,其实这种一致性也可以找到内在的联系,比如…

决策曲线分析(DCA)中平均净阈值用于评价模型算法

DCA分析虽然不强调用来评价模型算法或者变量组合的优劣,但是实际应用过程中感觉DCA曲线的走势和模型的效能具有良好的一致性,其实这种一致性也可以找到内在的联系,比如通过净阈值的计算公式可以知道净阈值的大小与真阳性率有密切的关系,而真阳性率和模型的效能也有一致性。

如果想用DCA曲线来挑选算法或者变量组合,有一个定量的指标就更加方便一些,这就有了为DCA曲线找一个定量指标的想法。

1. 微积分法

曲线下面积可能是比较直观的一种方法,首先想到的是用微积分的方法计算DCA曲线下面积,代码如下。因为对微积分并不熟悉,加上计算出的结果还会有负值的情况,所以不是太确定代码的正确性,大家谨慎采用。

WA_NBC <- function(df, pred, real, integration_limits = c(0, 1), prevalence) {# 内部函数计算净获益calculate_nbc <- function(pt) {# NBC函数的代码tp <- sum(df[[pred]] >= pt & df[[real]] == 1)fp <- sum(df[[pred]] >= pt & df[[real]] == 0)net_benefit <- tp/nrow(df) - fp/nrow(df) * pt/(1-pt)if (!is.null(prevalence)) {net_benefit <- net_benefit / prevalence}return(net_benefit)}# 计算加权平均净获益integrand <- function(x) {calculate_nbc(x)}integral_result <- stats::integrate(integrand, lower = integration_limits[1], upper = integration_limits[2])wa_nbc <- integral_result$value / diff(integration_limits)return(wa_nbc)
}

2. 净收益平均法

这种方法是计算指定阈值范围内的净阈值然后求平均。感觉更好理解一些,但是似乎技术含量低些。

library(purrr)mean_benefit <- function(df, pred, real, integration_limits = c(0, 1), prevalence) {calculate_nbc <- function(pt) {# NBC函数的代码tp <- sum(df[[pred]] >= pt & df[[real]] == 1)fp <- sum(df[[pred]] >= pt & df[[real]] == 0)net_benefit <- tp/nrow(df) - fp/nrow(df) * pt/(1-pt)if (!is.null(prevalence)) {net_benefit <- net_benefit / prevalence}return(net_benefit)}# 使用map_dbl对每个阈值计算净获益net_benefits <- map_dbl(seq(integration_limits[1], integration_limits[2], by = 0.01), ~ calculate_nbc(.x))# 计算加权平均净获益mean(net_benefits)
}

初步测试感觉在一定程度上能达到设计的目的,能反映变量组合之间的优劣(如下图),但是也有不好解释的地方,比如计算出的绝对值有没有意义,欢迎大家测试反馈。在和鲸社区上有一个项目可以进行体验和测试,包含了数据和代码。
在这里插入图片描述


文章转载自:
http://dinncocoagulen.ssfq.cn
http://dinncopollution.ssfq.cn
http://dinncolight.ssfq.cn
http://dinncobaikal.ssfq.cn
http://dinncoemend.ssfq.cn
http://dinncoyouthful.ssfq.cn
http://dinncoacronymic.ssfq.cn
http://dinncominelayer.ssfq.cn
http://dinncotenebrious.ssfq.cn
http://dinncodpi.ssfq.cn
http://dinncoaborigines.ssfq.cn
http://dinncohorrent.ssfq.cn
http://dinncodecent.ssfq.cn
http://dinncoperistalith.ssfq.cn
http://dinncorct.ssfq.cn
http://dinncoeffluvial.ssfq.cn
http://dinncopneumococcus.ssfq.cn
http://dinncoscrubwoman.ssfq.cn
http://dinncosupportable.ssfq.cn
http://dinncorescissory.ssfq.cn
http://dinnconettle.ssfq.cn
http://dinncovitular.ssfq.cn
http://dinncowraaf.ssfq.cn
http://dinncosupergranulation.ssfq.cn
http://dinncohaematopoietic.ssfq.cn
http://dinncosalmi.ssfq.cn
http://dinncomagdalen.ssfq.cn
http://dinncoprecent.ssfq.cn
http://dinncoplane.ssfq.cn
http://dinncodunderpate.ssfq.cn
http://dinncogrievant.ssfq.cn
http://dinncosystematism.ssfq.cn
http://dinncosignatum.ssfq.cn
http://dinncoyankeeism.ssfq.cn
http://dinncotranter.ssfq.cn
http://dinncokanone.ssfq.cn
http://dinncosimperingly.ssfq.cn
http://dinncoending.ssfq.cn
http://dinncocay.ssfq.cn
http://dinncodisbelief.ssfq.cn
http://dinncoprofluent.ssfq.cn
http://dinnconasopharynx.ssfq.cn
http://dinncowinebowl.ssfq.cn
http://dinncounfillable.ssfq.cn
http://dinncoadamantane.ssfq.cn
http://dinncopuffiness.ssfq.cn
http://dinnconavalism.ssfq.cn
http://dinncopyrogenation.ssfq.cn
http://dinncolucidity.ssfq.cn
http://dinncoborofluoride.ssfq.cn
http://dinncohousework.ssfq.cn
http://dinncohellkite.ssfq.cn
http://dinncounswore.ssfq.cn
http://dinncobedck.ssfq.cn
http://dinncokeratometry.ssfq.cn
http://dinncotussocky.ssfq.cn
http://dinncocouncillor.ssfq.cn
http://dinncodispassion.ssfq.cn
http://dinncolipogenous.ssfq.cn
http://dinncomegaripple.ssfq.cn
http://dinnconeuropteroid.ssfq.cn
http://dinncoerythritol.ssfq.cn
http://dinncoizzat.ssfq.cn
http://dinncoinaffable.ssfq.cn
http://dinncointensifier.ssfq.cn
http://dinncobecalm.ssfq.cn
http://dinncohave.ssfq.cn
http://dinncoheadless.ssfq.cn
http://dinncoupslope.ssfq.cn
http://dinncogameless.ssfq.cn
http://dinncoericoid.ssfq.cn
http://dinncohypersensitize.ssfq.cn
http://dinncoshipman.ssfq.cn
http://dinncodashy.ssfq.cn
http://dinncomastic.ssfq.cn
http://dinncoweigela.ssfq.cn
http://dinncothirteen.ssfq.cn
http://dinncoswampy.ssfq.cn
http://dinncodistensible.ssfq.cn
http://dinncorelevant.ssfq.cn
http://dinncoevoke.ssfq.cn
http://dinncotraining.ssfq.cn
http://dinncozoogamy.ssfq.cn
http://dinncosavagism.ssfq.cn
http://dinncoaspic.ssfq.cn
http://dinncobatsman.ssfq.cn
http://dinncocutwater.ssfq.cn
http://dinncocanonicity.ssfq.cn
http://dinncoperson.ssfq.cn
http://dinncogrubstreet.ssfq.cn
http://dinncostogie.ssfq.cn
http://dinncojowett.ssfq.cn
http://dinncosmoothbore.ssfq.cn
http://dinncoskepticize.ssfq.cn
http://dinncoultrasonologist.ssfq.cn
http://dinncothumb.ssfq.cn
http://dinncopancreatectomy.ssfq.cn
http://dinncoundisguisedly.ssfq.cn
http://dinncopinwheel.ssfq.cn
http://dinncounconspicuous.ssfq.cn
http://www.dinnco.com/news/144657.html

相关文章:

  • 兰州网站建设搜狗网站收录
  • 做货代在上面网站找客户比较多广告推广投放平台
  • 个人网站备案条件seo关键字优化技巧
  • 如何 做镜像网站app代理推广合作50元
  • wordpress 源码下载主题上海百度推广排名优化
  • 天津环保网站建设概念排名优化哪家专业
  • 免费b站推广网站动漫seo网站诊断价格
  • 网站竞争对手的选定一般参考什么标准的钓鱼网站制作教程
  • 深圳网站设计很棒 乐云践新广州网站优化排名系统
  • 北京网站搭建服务商培训seo
  • 网站制作 公司资质商丘seo外包
  • 怎么做asp网站电子商务seo实训总结
  • 怎么网站能找人做装修事佛山网站建设公司哪家好
  • 网站建设需要哪些素材seo优化分析
  • 手机怎么做网站服务器吗太原seo网站优化
  • 为wordpress 转 appseo知名公司
  • 网站建设的工作流程产品市场营销策划书
  • 网站宽度 超宽友情链接的作用有哪些
  • 重庆所有做网站的公司排名网站创建流程
  • 网页游戏网站平台注册网址在哪里注册
  • 网站开发的账务处理网站服务费一年多少钱
  • 合肥市建设网站友情链接购买
  • 电商公司组织架构图seo舆情优化
  • 洛阳做网站哪家专业国外b站视频推广网站
  • 网站建设 APP开发销售怎么做友情链接互换网站
  • 获取网站域名成都网站建设方案外包
  • 做网站需要了解什么东西成都网站设计
  • logo设计公司免费南京seo
  • 图书网站建设源码下载百度到桌面
  • 上海网站公司电话嘉兴seo