{"id":56806,"date":"2024-06-16T18:22:59","date_gmt":"2024-06-16T10:22:59","guid":{"rendered":"http:\/\/www.biocloudservice.com\/wordpress\/?p=56806"},"modified":"2024-06-16T18:22:59","modified_gmt":"2024-06-16T10:22:59","slug":"glm%e5%a6%99%e8%83%bd%ef%bc%9a%e7%94%a8glmnet%e9%a2%84%e6%b5%8b%e7%b3%96%e5%b0%bf%e7%97%85%e7%9a%84lasso%e4%b9%8b%e9%81%93-2","status":"publish","type":"post","link":"http:\/\/www.biocloudservice.com\/wordpress\/?p=56806","title":{"rendered":"GLM\u5999\u80fd\uff1a\u7528glmnet\u9884\u6d4b\u7cd6\u5c3f\u75c5\u7684Lasso\u4e4b\u9053"},"content":{"rendered":"<p><html><br \/>\n<head><br \/>\n<title><\/title><br \/>\n<meta charset=\"utf-8\"><br \/>\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0,viewport-fit=cover\"><\/p>\n<style>\n*{margin:0;padding:0}html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;line-height:1.6}img{z-index:999;position:relative;max-width:100%;margin:10px 0;}body{letter-spacing:.034em}h1,h2,h3,h4,h5,h6{font-weight:400;font-size:16px}a{color:#576b95;text-decoration:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}td,th{word-wrap:break-word;padding:5px 10px;border:1px solid #DDD;}table{margin-bottom:10px;border-collapse:collapse;display:table;width:100%!important;}.appmsg_skin_default .rich_media_area_primary{background-color:#fff}.appmsg_skin_default .rich_media_area_primary .weui-loadmore_line .weui-loadmore__tips{background-color:#fff}.rich_media_area_primary{padding:20px 16px 12px;background-color:#fafafa}@media (max-width:375px){.rich_media_area_primary{padding:20px 60px 15px 60px}.rich_media_area_extra{padding:0 60px 21px 60px}}@media (min-width:1024px){.rich_media_area_primary_inner,.rich_media_area_extra_inner,body{max-width:677px;margin-left:auto;margin-right:auto}.rich_media_area_primary{padding-top:32px}}.rich_media{padding:20px;overflow:hidden;}.appmsg_skin_default .rich_media_area_primary{background-color:#fff}.appmsg_skin_default .rich_media_area_primary .weui-loadmore_line .weui-loadmore__tips{background-color:#fff}@media screen and (min-width:1024px){.rich_media_area_primary_inner,.rich_media_area_extra_inner{max-width:677px;margin-left:auto;margin-right:auto}.rich_media_area_primary{padding-top:32px}}.rich_media_content{overflow:hidden;color:#333;font-size:17px;word-wrap:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;text-align:justify;position:relative;z-index:0}.rich_media_content *{max-width:100%!important;box-sizing:border-box!important;-webkit-box-sizing:border-box!important;word-wrap:break-word!important}.rich_media_content p{clear:both;min-height:1em}.rich_media_content em{font-style:italic}.rich_media_content fieldset{min-width:0}.rich_media_content .list-paddingleft-1,.rich_media_content .list-paddingleft-2,.rich_media_content .list-paddingleft-3{padding-left:2.2em}.rich_media_content .list-paddingleft-1 .list-paddingleft-2,.rich_media_content .list-paddingleft-2 .list-paddingleft-2,.rich_media_content .list-paddingleft-3 .list-paddingleft-2{padding-left:30px}.rich_media_content .list-paddingleft-1{padding-left:1.2em}.rich_media_content .list-paddingleft-3{padding-left:3.2em}.rich_media_content .code-snippet,.rich_media_content .code-snippet__fix{max-width:1000%!important}.rich_media_content .code-snippet *,.rich_media_content .code-snippet__fix *{max-width:1000%!important}.rich_media_title{font-size:22px;line-height:1.4;margin-bottom:13px;padding-bottom:13px;border-bottom:1px solid #e7e7eb;}@supports(-webkit-overflow-scrolling:touch){.rich_media_title{font-weight:700}}.rich_media_meta{display:inline-block;vertical-align:middle;padding:0 0 10px 0;font-size:15px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.rich_media_meta.icon_appmsg_tag{margin-right:0px}.rich_media_meta.meta_tag_text{margin-right:0}.rich_media_meta_list em{font-style:normal}.rich_media_meta_text{color:#a5a5a5;}p{margin:0;}.msgBox{margin-top:20px;padding-top:20px;padding-left:50px;overflow:hidden;border-top:2px dashed #09a2ff;}.msg{padding-top:7px;clear:both;}.msgBody{float:right;width:100%;margin-left:55px;padding-bottom:15px;border-bottom:1px dashed #e0e0e0;}.userHeadImg{float:left;margin-left:-50px;}.userHeadImg img{width:40px;height:40px;margin-right:10px;border-radius:3px;}.userName{color:#888888;line-height:24px;font-size:14px;margin:5px 0 5px 0;height:24px;}.replyBody,.autherBody{color:#565656;font-size:15px;}.replyIcon{border-left:4px solid #33ab01;margin-right:5px;}.ad{text-decoration:none;color:#d6d4d4;font-size:12px;}.msgBodyReply{padding-top:5px;}.userName span{float:right;color:#afafaf;font-size:14px;}code{text-align:left;font-size:14px;display:block;white-space:pre;display:-webkit-box;display:-webkit-flex;display:flex;position:relative;}.code-snippet__fix{font-size:14px;margin:10px 0;display:block;color:#333;position:relative;background-color:rgba(0,0,0,0.03);border:1px solid #f0f0f0;border-radius:2px;display:-webkit-box;display:-webkit-flex;display:flex;padding-left:25px;line-height:26px}.code-snippet__fix code{text-align:left;font-size:14px;display:block;white-space:pre;display:-webkit-box;display:-webkit-flex;display:flex;position:relative;font-family:Consolas,\"Liberation Mono\",Menlo,Courier,monospace}.code-snippet__comment,.code-snippet__quote{color:#afafaf;font-style:italic}.code-snippet__keyword,.code-snippet__selector-tag,.code-snippet__subst{color:#ca7d37}.code-snippet__number,.code-snippet__literal,.code-snippet__variable,.code-snippet__template-variable,.code-snippet__tag .code-snippet__attr{color:#0e9ce5}.code-snippet__string,.code-snippet__doctag{color:#d14}.code-snippet__title,.code-snippet__section,.code-snippet__selector-id{color:#d14}.code-snippet__subst{font-weight:normal}.code-snippet__type,.code-snippet__class .code-snippet__title{color:#0e9ce5}.code-snippet__tag,.code-snippet__name,.code-snippet__attribute{color:#0e9ce5;font-weight:normal}.code-snippet__regexp,.code-snippet__link{color:#ca7d37}.code-snippet__symbol,.code-snippet__bullet{color:#d14}.code-snippet__built_in,.code-snippet__builtin-name{color:#ca7d37}.code-snippet__meta{color:#afafaf}.code-snippet__deletion{background:#fdd}.code-snippet__addition{background:#dfd}.code-snippet__emphasis{font-style:italic}.code-snippet__strong{font-weight:bold}.account_avatar{width:40px;height:40px;padding:0;}.account_info{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;padding:20px 0;align-items:center}.flex_bd{padding-left:14px;}.account_nickname{display:inline-block;vertical-align:middle;line-height:1.2;color:#576b95;font-size:14px}.account_desc{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;color:rgba(0,0,0,0.3);font-size:14px;line-height:1.2;padding-top:.4em}.msg_source_url{text-align:left;word-break:break-all;margin-top:20px;}.msg_source_url a{padding-right:10px;}.msg_source_url .url_text{color:#a8a8a8;}.video-desc{font-size:14px;margin-top:15px;color:#6c6c6c;}.msg_source_url{text-align:left;}.original_primary_card_tips{color:rgba(0,0,0,0.3);line-height:1.4;font-size:15px;}.weui-flex__item{margin-bottom:20px;padding:20px 16px;margin-top:16px;line-height:1.4;align-items:center;background-color:#f7f7f7;border-radius:8px;position:relative;}.original_primary_desc{color:rgba(0,0,0,0.5);font-size:14px;padding-top:4px;width:auto;overflow:hidden;text-overflow:ellipsis;}.msgBodyReplyList{border-top:1px solid #e1e1e1;margin-top:10px;}.msgBodyReplyListTop{border-top:0;}.reply_like_num{float:right;font-size:14px;color:#c7c7c7;}.msgData{margin-top:20px;color:#626262;}.msgData span{font-size:14px;padding-right:15px;}.msgData .likes{float:right;padding-right:0;}.js_text_content p{font-size:18px;}.rich_media_meta_link{font-size:15px;}blockquote {padding-left: 10px;border-left: 3px solid #dbdbdb;color: rgba(0,0,0,0.5);font-size: 15px;padding-top: 4px;margin: 1em 0;}.video_iframe{width:500px;height:400px;}.blockquote_info{color:#b5b5b5;margin-top:10px;}#copyright_logo{color:#bdbdbd;}.rich_media_meta_list{margin-bottom:10px;}.reprint{background:#efefef;border-radius:5px;padding:8px;color:#1f1f1f;}.reprint a{word-break:break-all;}.topic{color:#8e8e8e;background:#f7f7f7;border-radius:5px;padding:10px 8px;}.topic a{padding-right:5px;}.topic p{margin-bottom:5px;}\n<\/style>\n<link href=\"https:\/\/www.juyifx.cn\/config\/css\/wxArticle.css\" rel=\"stylesheet\"\/>\n<\/head><script>\nvar data={\"mp\":\"\u751f\u4fe1\u679c\",\"title\":\"GLM\u5999\u80fd\uff1a\u7528glmnet\u9884\u6d4b\u7cd6\u5c3f\u75c5\u7684Lasso\u4e4b\u9053\",\"time\":\"2023-09-09 19:00:33\",\"timeStamp\":\"1694257233\"};\n<\/script><br \/>\n<body><\/p>\n<div class=\"rich_media\">\n<h1 class=\"rich_media_title\" id=\"activity-name\"><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=Mzg3OTg3MjQyNg==&#038;mid=2247492094&#038;idx=1&#038;sn=d6231233985a5fe59b5c9cdcc69c302c&#038;chksm=cf7f713bf808f82dd8d84cf42b51d2e771c60fc0e531d2a3047ab1bd97ac7a62380f7a0fb93a#rd\" target=\"_blank\" rel=\"noopener\">GLM\u5999\u80fd\uff1a\u7528glmnet\u9884\u6d4b\u7cd6\u5c3f\u75c5\u7684Lasso\u4e4b\u9053<\/a><\/h1>\n<div id=\"meta_content\" class=\"rich_media_meta_list\"><span id=\"copyright_logo\" class=\"wx_tap_link js_wx_tap_highlight rich_media_meta icon_appmsg_tag appmsg_title_tag weui-wa-hotarea\">\u539f\u521b&nbsp;&nbsp;<\/span><span class=\"rich_media_meta rich_media_meta_text\">\u5c0f\u679c&nbsp;&nbsp;<\/span><span class=\"rich_media_meta rich_media_meta_nickname\" id=\"profileBt\"><a href=\"javascript:void(0);\" class=\"wx_tap_link js_wx_tap_highlight weui-wa-hotarea\" id=\"js_name\">\u751f\u4fe1\u679c&nbsp;&nbsp;<\/a><\/span><em id=\"publish_time\" class=\"rich_media_meta rich_media_meta_text\">2023-09-09 19:00:33<\/em><\/div>\n<p><content><\/p>\n<section style=\"font-size: 16px;\" data-mpa-powered-by=\"yiban.io\">\n<section style=\"\" powered-by=\"xiumi.us\">\n<section style=\"text-align: left;\">\n<section>\n<section powered-by=\"xiumi.us\">\n<section style=\"letter-spacing: 0.578px;\">\n<section>\n<section style=\"width: 100%;flex: 0 0 100%;\" powered-by=\"xiumi.us\">\n<section style=\"opacity: 1;width: 100%;\">\n<section powered-by=\"xiumi.us\">\n<section style=\"line-height: 1.8;\">\n<section style=\"margin-top: 10px;margin-bottom: 20px;width: 100%;\" powered-by=\"xiumi.us\">\n<section style=\"flex-flow: row nowrap;text-align: center;width: 100%;\">\n<section style=\"display: flex;justify-content: center;flex-direction: row;\">\n<section style=\"display: inline-block;width: 100%;flex: 0 0 auto;align-self: flex-start;vertical-align: top;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;border-style: solid;border-width: 1px;border-color: rgb(67, 67, 67);height: auto;box-shadow: rgb(255, 219, 118) 6px 6px 0px;background-color: rgb(255, 255, 255);width: 100%;\">\n<section style=\"\" powered-by=\"xiumi.us\">\n<section style=\"text-align: left;justify-content: flex-start;display: flex;flex-flow: row nowrap;\">\n<section style=\"display: inline-block;vertical-align: top;width: 70.0348%;align-self: flex-start;flex: 0 0 auto;height: auto;max-width: 70.0348% !important;\">\n<section style=\"margin-top: 10px;\" powered-by=\"xiumi.us\">\n<section style=\"\" powered-by=\"xiumi.us\">\n<section style=\"text-align: center;\">\n<p style=\"text-indent: 0em;line-height: 1.75em;\"><span style=\"letter-spacing: 0.5px;\"><strong><span style=\"font-size: 15px;\">\u751f\u4fe1\u4ebaR\u8bed\u8a00\u5b66\u4e60\u5fc5\u5907<\/span><\/strong><\/span><\/p>\n<p style=\"text-indent: 0em;line-height: 1.75em;\"><span style=\"letter-spacing: 0.5px;\"><strong><span style=\"font-size: 15px;\">\u7acb\u523b\u62e5\u6709\u4e00\u4e2aRstudio\u8d26\u53f7<\/span><\/strong><\/span><\/p>\n<p style=\"text-indent: 0em;line-height: 1.75em;\"><span style=\"letter-spacing: 0.5px;\"><strong><span style=\"font-size: 15px;\">\u5f00\u542f\u5347\u7ea7\u6a21\u5f0f\u5427<\/span><\/strong><\/span><\/p>\n<p style=\"text-indent: 0em;line-height: 1.75em;\"><span style=\"color: rgb(255, 129, 36);font-size: 12px;letter-spacing: 0.5px;\">\uff0856\u7ebf\u7a0b\uff0c256G\u5185\u5b58\uff0c\u4e2a\u4eba\u5b58\u50a81T\uff09<\/span><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: top;width: 29.9652%;align-self: flex-start;flex: 0 0 auto;height: auto;max-width: 29.9652% !important;\">\n<section style=\"margin-top: 10px;margin-bottom: 10px;\" powered-by=\"xiumi.us\">\n<section style=\"text-align: center;line-height: 0;\">\n<section>\n<section style=\"display: inline-block;vertical-align: middle;\" powered-by=\"xiumi.us\">\n<section style=\"line-height: 0;\">\n<section style=\"width: 111px;\" powered-by=\"xiumi.us\">\n<section style=\"line-height: 1.75em;text-indent: 0em;\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;height: auto;width: 111px;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"1\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/1_GBhsibRAgNiaQsH4ichdP9ibEhHMFA-87.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/zcicibWZessAyL6u7wJswOp8vtpzGp6vYngnlT6jiavu08Bvp2iblzGf3IkoBD9NGBhsibRAgNiaQsH4ichdP9ibEhHMFA\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"400\" style=\"vertical-align: middle;width: 100%;\" data-recalc-dims=\"1\"><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section powered-by=\"xiumi.us\">\n<section style=\"display: contents;\" powered-by=\"xiumi.us\">\n<section style=\"display: contents;\">\n<section style=\"display: contents;\">\n<section style=\"height: 0px;overflow: hidden;\"><span style=\"font-size: 14px;letter-spacing: 0.578px;caret-color: red;\">&nbsp;<\/span><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">Lasso\uff08Least Absolute Shrinkage and Selection Operator\uff09\u7b97\u6cd5\u662f\u4e00\u79cd\u7528\u4e8e\u7279\u5f81\u9009\u62e9\u548c\u6a21\u578b\u6b63\u5219\u5316\u7684\u7ebf\u6027\u56de\u5f52\u65b9\u6cd5\u3002\u5b83\u901a\u8fc7\u5728\u635f\u5931\u51fd\u6570\u4e2d\u5f15\u5165L1\u6b63\u5219\u5316\u9879\uff0c\u8feb\u4f7f\u6a21\u578b\u7cfb\u6570\u7a00\u758f\u5316\uff0c\u5c06\u4e00\u4e9b\u7cfb\u6570\u538b\u7f29\u4e3a\u96f6\uff0c\u4ece\u800c\u5b9e\u73b0\u7279\u5f81\u9009\u62e9\u7684\u6548\u679c\u3002<\/span><span style=\"font-size: 14px;background: rgb(0, 255, 0);font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size: 14px;color: rgb(51, 51, 51);font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-size: 14px;\"><span style=\"font-size: 14px;\">\u60f3\u8981\u6df1\u5165\u4e86\u89e3<\/span><span style=\"font-size: 14px;\">Lasso<\/span><span style=\"font-size: 14px;\">\u7b97\u6cd5<\/span>\u539f\u7406\uff0c\u9700\u8981\u6211\u4eec\u4e00\u6b65\u4e00\u6b65\u5bfb\u627e<\/span><span style=\"font-size: 14px;\">Lasso<span style=\"font-size: 14px;\">\u7b97\u6cd5\u7684\u6765\u6e90<\/span><\/span><span style=\"font-size: 14px;\">\uff0c\u5982\u4e0b\u662f\u5c0f\u679c\u7684\u5b66\u4e60\u601d\u8003\u603b\u7ed3\uff1a<\/span><span style=\"font-size: 14px;\"><o:p><\/o:p><\/span><\/span><\/p>\n<p style=\"margin-left: 21.25pt;\"><strong><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">1.<span style=\"font-size: 14px;\">\u7ebf\u6027\u56de\u5f52\u6a21\u578b\uff1a<\/span><\/span><\/strong><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-size: 14px;\"><\/span><o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-size: 14px;\">\u6211\u4eec\u5148\u56de\u987e\u4e00\u4e0b\u7b80\u5355\u7684\u7ebf\u6027\u56de\u5f52\u6a21\u578b\uff1a<\/span>y = \u03b20 + \u03b21&#215;1 + \u03b22&#215;2 + &#8230; + \u03b2nxn<span style=\"font-size: 14px;\">\uff0c\u5176\u4e2d<\/span><span style=\"font-size: 14px;\">y<\/span><span style=\"font-size: 14px;\">\u662f\u56e0\u53d8\u91cf\uff0c<\/span><span style=\"font-size: 14px;\">x1, x2, &#8230;, xn<\/span><span style=\"font-size: 14px;\">\u662f\u81ea\u53d8\u91cf\uff0c<\/span><span style=\"font-size: 14px;\">\u03b20, \u03b21, \u03b22, &#8230;, \u03b2n<\/span><span style=\"font-size: 14px;\">\u662f\u6a21\u578b\u7684\u7cfb\u6570\u3002<\/span><o:p><\/o:p><\/span><\/p>\n<p style=\"margin-left: 21.25pt;\"><strong><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">2.<span style=\"font-size: 14px;\">\u6700\u5c0f\u4e8c\u4e58\u6cd5\uff1a<\/span><\/span><\/strong><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-size: 14px;\"><\/span><o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">\u5728\u666e\u901a\u7684\u7ebf\u6027\u56de\u5f52\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u6700\u5c0f\u4e8c\u4e58\u6cd5\u6765\u4f30\u8ba1\u6a21\u578b\u7684\u7cfb\u6570\uff0c\u5373\u901a\u8fc7\u6700\u5c0f\u5316\u5b9e\u9645\u89c2\u6d4b\u503c\u548c\u6a21\u578b\u9884\u6d4b\u503c\u4e4b\u95f4\u7684\u6b8b\u5dee\u5e73\u65b9\u548c\u6765\u6c42\u89e3\u7cfb\u6570\u3002\u8fd9\u79cd\u65b9\u6cd5\u6ca1\u6709\u5bf9\u7cfb\u6570\u8fdb\u884c\u4efb\u4f55\u7ea6\u675f\u3002<o:p><\/o:p><\/span><\/p>\n<p style=\"margin-left: 21.25pt;\"><strong><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">3.<span style=\"font-size: 14px;\">\u5f15\u5165<\/span>L1<span style=\"font-size: 14px;\">\u6b63\u5219\u5316\u9879<\/span><\/span><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-size: 14px;\">\uff1a<\/span><\/span><\/strong><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-size: 14px;\"><\/span><o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-size: 14px;\">\u5728<\/span>Lasso<span style=\"font-size: 14px;\">\u7b97\u6cd5\u4e2d\uff0c\u6211\u4eec\u5f15\u5165<\/span><span style=\"font-size: 14px;\">L1<\/span><span style=\"font-size: 14px;\">\u6b63\u5219\u5316\u9879\u4f5c\u4e3a\u7ea6\u675f\u6761\u4ef6\uff0c\u4ee5\u4fc3\u4f7f\u6a21\u578b\u7cfb\u6570\u7a00\u758f\u5316\u3002<\/span><span style=\"font-size: 14px;\">L1<\/span><span style=\"font-size: 14px;\">\u6b63\u5219\u5316\u9879\u662f\u6a21\u578b\u7cfb\u6570\u7684\u7edd\u5bf9\u503c\u4e4b\u548c\u4e0e\u4e00\u4e2a\u8c03\u8282\u53c2\u6570<\/span><span style=\"font-size: 14px;\">\u03bb<\/span><span style=\"font-size: 14px;\">\u7684\u4e58\u79ef\uff0c\u53ef\u4ee5\u5199\u4e3a\uff1a<\/span><span style=\"font-size: 14px;\">\u03bb * (|\u03b21| + |\u03b22| + &#8230; + |\u03b2n|)<\/span><span style=\"font-size: 14px;\">\u3002<\/span><o:p><\/o:p><\/span><\/p>\n<p style=\"margin-left: 21.25pt;\"><strong><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">4.Lasso<span style=\"font-size: 14px;\">\u7684\u4f18\u5316\u76ee\u6807\uff1a<\/span><\/span><\/strong><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-size: 14px;\"><\/span><o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">Lasso<span style=\"font-size: 14px;\">\u7684\u76ee\u6807\u662f\u5c06\u6700\u5c0f\u5316\u7684\u635f\u5931\u51fd\u6570\u4e0e<\/span><span style=\"font-size: 14px;\">L1<\/span><span style=\"font-size: 14px;\">\u6b63\u5219\u5316\u9879\u76f8\u7ed3\u5408\uff0c\u5f62\u6210\u4f18\u5316\u76ee\u6807\u51fd\u6570\uff1a<\/span><span style=\"font-size: 14px;\">minimize(<\/span><span style=\"font-size: 14px;\">\u5e73\u65b9\u635f\u5931\u51fd\u6570 <\/span><span style=\"font-size: 14px;\">+ \u03bb * (|\u03b21| + |\u03b22| + &#8230; + |\u03b2n|))<\/span><span style=\"font-size: 14px;\">\u3002<\/span><o:p><\/o:p><\/span><\/p>\n<p style=\"margin-left: 21.25pt;\"><strong><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">5.<span style=\"font-size: 14px;\">\u6700\u5c0f\u5316\u76ee\u6807\u51fd\u6570\uff1a<\/span><\/span><\/strong><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-size: 14px;\"><\/span><o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-size: 14px;\">\u6211\u4eec\u4f7f\u7528\u4f18\u5316\u7b97\u6cd5\u6765\u6700\u5c0f\u5316\u76ee\u6807\u51fd\u6570\uff0c\u4e00\u79cd\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u5750\u6807\u4e0b\u964d\u6cd5\uff08<\/span>coordinate descent<span style=\"font-size: 14px;\">\uff09\u3002\u5728\u5750\u6807\u4e0b\u964d\u6cd5\u4e2d\uff0c\u6211\u4eec\u9010\u4e2a\u66f4\u65b0\u6a21\u578b\u7cfb\u6570\uff0c\u901a\u8fc7\u8fed\u4ee3\u4f18\u5316\u6765\u9010\u6b65\u903c\u8fd1\u6700\u4f18\u89e3\u3002<\/span><o:p><\/o:p><\/span><\/p>\n<p style=\"margin-left: 21.25pt;\"><strong><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">6.<span style=\"font-size: 14px;\">\u5750\u6807\u4e0b\u964d\u6cd5\u7684\u8fed\u4ee3\u8fc7\u7a0b\uff1a<\/span><\/span><\/strong><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-size: 14px;\"><\/span><o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-size: 14px;\">\u2460<\/span><span style=\"font-size: 14px;\"><span style=\"font-size: 14px;\">\u521d\u59cb\u5316\u6a21\u578b\u7cfb\u6570<\/span><span style=\"font-size: 14px;\">\u03b2<\/span><span style=\"font-size: 14px;\">\u4e3a\u96f6\u6216\u4e00\u4e2a\u8f83\u5c0f\u7684\u503c\u3002<\/span><\/span><o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-size: 14px;\">\u2461<\/span><span style=\"font-size: 14px;\"><span style=\"font-size: 14px;\">\u9488\u5bf9\u6bcf\u4e2a\u7cfb\u6570<\/span><span style=\"font-size: 14px;\">\u03b2i<\/span><span style=\"font-size: 14px;\">\uff0c\u56fa\u5b9a\u5176\u4ed6\u7cfb\u6570\u4e0d\u53d8\uff0c\u901a\u8fc7\u6c42\u89e3\u6700\u5c0f\u5316\u76ee\u6807\u51fd\u6570\u7684\u4e00\u7ef4\u5b50\u95ee\u9898\u6765\u66f4\u65b0<\/span><span style=\"font-size: 14px;\">\u03b2i<\/span><\/span><span style=\"font-size: 14px;\">\u3002<\/span><o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-size: 14px;\">\u2462<\/span><span style=\"font-size: 14px;\">\u91cd\u590d\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u76f4\u5230\u6ee1\u8db3\u6536\u655b\u6761\u4ef6\u3002<\/span><o:p><\/o:p><\/span><\/p>\n<p style=\"margin-left: 21.25pt;\"><strong><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">7.<span style=\"font-size: 14px;\">\u5b50\u95ee\u9898\u7684\u6c42\u89e3\uff1a<\/span><\/span><\/strong><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-size: 14px;\"><\/span><o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-size: 14px;\">\u5728\u6bcf\u4e2a\u5b50\u95ee\u9898\u4e2d\uff0c\u901a\u8fc7\u6c42\u89e3\u6700\u5c0f\u5316\u76ee\u6807\u51fd\u6570\u5173\u4e8e<\/span><span style=\"font-size: 14px;\">\u03b2i<\/span><span style=\"font-size: 14px;\">\u7684\u4e00\u9636\u5bfc\u6570\u4e3a\u96f6\u7684\u65b9\u7a0b\u6765\u66f4\u65b0<\/span><span style=\"font-size: 14px;\">\u03b2i<\/span><span style=\"font-size: 14px;\">\u3002\u8fd9\u4e2a\u65b9\u7a0b\u53ef\u4ee5\u5199\u4e3a\uff1a<\/span><span style=\"font-size: 14px;\">2 * (\u03a3(xi * (yi &#8211; (\u03b20 + \u03b21&#215;1 + \u03b22&#215;2 + &#8230; + \u03b2nxn)))) + \u03bb * sign(\u03b2i) = 0<\/span><span style=\"font-size: 14px;\">\uff0c\u5176\u4e2d<\/span><span style=\"font-size: 14px;\">sign(\u03b2i)<\/span><span style=\"font-size: 14px;\">\u662f<\/span><span style=\"font-size: 14px;\">\u03b2i<\/span><span style=\"font-size: 14px;\">\u7684\u7b26\u53f7\u51fd\u6570\u3002<\/span><o:p><\/o:p><\/span><\/p>\n<p style=\"margin-left: 21.25pt;\"><strong><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">8.Lasso<span style=\"font-size: 14px;\">\u7b97\u6cd5\u7684\u7279\u70b9\uff1a<\/span><\/span><\/strong><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-size: 14px;\"><\/span><o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">Lasso<span style=\"font-size: 14px;\">\u7b97\u6cd5\u7684\u7279\u70b9\u5728\u4e8e\u5b83\u5f15\u5165\u4e86<\/span><span style=\"font-size: 14px;\">L1<\/span><span style=\"font-size: 14px;\">\u6b63\u5219\u5316\u9879\uff0c\u4fc3\u4f7f\u6a21\u578b\u7cfb\u6570\u7a00\u758f\u5316\uff0c\u5b9e\u73b0\u7279\u5f81\u9009\u62e9\u7684\u6548\u679c\u3002<\/span><span style=\"font-size: 14px;\">Lasso<\/span><span style=\"font-size: 14px;\">\u53ef\u4ee5\u901a\u8fc7\u8c03\u8282\u6b63\u5219\u5316\u53c2\u6570<\/span><span style=\"font-size: 14px;\">\u03bb<\/span><span style=\"font-size: 14px;\">\u6765\u63a7\u5236\u7a00\u758f\u6027\u7a0b\u5ea6\uff0c\u8f83\u5927\u7684<\/span><span style=\"font-size: 14px;\">\u03bb<\/span><span style=\"font-size: 14px;\">\u4f1a\u5bfc\u81f4\u66f4\u591a\u7684\u7cfb\u6570\u88ab\u538b\u7f29\u4e3a\u96f6\u3002<\/span><o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-size: 14px;\"><br  \/><\/span><\/span><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-size: 14px;\"><span style=\"font-size: 14px;\">\u603b\u7ed3\u4e00\u4e0b\uff0c<\/span>Lasso<span style=\"font-size: 14px;\">\u7b97\u6cd5\u901a\u8fc7\u5728\u635f\u5931\u51fd\u6570\u4e2d\u5f15\u5165<\/span><span style=\"font-size: 14px;\">L1<\/span><span style=\"font-size: 14px;\">\u6b63\u5219\u5316\u9879\uff0c\u8feb\u4f7f\u6a21\u578b\u7cfb\u6570\u7a00\u758f\u5316\uff0c\u5b9e\u73b0\u7279\u5f81\u9009\u62e9\u548c\u6a21\u578b\u6b63\u5219\u5316\u7684\u6548\u679c\u3002\u5b83\u4f7f\u7528\u5750\u6807\u4e0b\u964d\u6cd5\u8fed\u4ee3\u4f18\u5316\uff0c\u901a\u8fc7\u89e3\u51b3\u5b50\u95ee\u9898\u6765\u66f4\u65b0\u6a21\u578b\u7cfb\u6570\u3002<\/span><span style=\"font-size: 14px;\">Lasso<\/span><span style=\"font-size: 14px;\">\u7b97\u6cd5\u5728\u673a\u5668\u5b66\u4e60\u4e2d\u88ab\u5e7f\u6cdb\u5e94\u7528\uff0c\u7279\u522b\u9002\u7528\u4e8e\u9ad8\u7ef4\u6570\u636e\u548c\u7279\u5f81\u9009\u62e9\u7684\u573a\u666f<\/span><\/span><span style=\"font-size: 14px;\">\uff0c\u5c24\u5176\u662f\u5728\u9009\u62e9\u7279\u5f81\u57fa\u56e0\u7528\u4e8e\u75be\u75c5\u8bca\u65ad\u65f6\u3002<\/span><span style=\"font-size: 14px;\"><o:p><\/o:p><\/span><\/span><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-size: 14px;\">R<\/span><span style=\"font-size: 14px;\">\u5305<\/span><span style=\"font-size: 14px;\">glmnet<\/span><span style=\"font-size: 14px;\">\uff0c\u63d0\u4f9b\u4e86\u9ad8\u6548\u7684<\/span><span style=\"font-size: 14px;\">Lasso<\/span><span style=\"font-size: 14px;\">\u548c<\/span><span style=\"font-size: 14px;\">Elastic-Net<\/span><span style=\"font-size: 14px;\">\u6b63\u5219\u5316\u65b9\u6cd5\uff0c\u7528\u4e8e\u62df\u5408\u5e7f\u4e49\u7ebf\u6027\u6a21\u578b\u3002\u5b83\u652f\u6301\u7ebf\u6027\u56de\u5f52\u3001\u903b\u8f91\u56de\u5f52\u3001\u591a\u9879\u5f0f\u56de\u5f52\u3001\u6cca\u677e\u56de\u5f52\u3001<\/span><span style=\"font-size: 14px;\">Cox<\/span><span style=\"font-size: 14px;\">\u6a21\u578b\u7b49\u591a\u79cd\u6a21\u578b\u3002<\/span><span style=\"font-size: 14px;\">glmnet<\/span><span style=\"font-size: 14px;\">\u7684\u7b97\u6cd5\u57fa\u4e8e\u5faa\u73af\u5750\u6807\u4e0b\u964d\uff0c\u53ef\u4ee5\u5feb\u901f\u8ba1\u7b97\u6574\u4e2a\u6b63\u5219\u5316\u8def\u5f84\u3002\u6b64\u5916\uff0c<\/span><span style=\"font-size: 14px;\">glmnet<\/span><span style=\"font-size: 14px;\">\u8fd8\u652f\u6301\u81ea\u5b9a\u4e49\u7684<\/span><span style=\"font-size: 14px;\">GLM family<\/span><span style=\"font-size: 14px;\">\u5bf9\u8c61\u548c<\/span><span style=\"font-size: 14px;\">relax<\/span><span style=\"font-size: 14px;\">\u9009\u9879\u3002\u901a\u8fc7<\/span><span style=\"font-size: 14px;\">glmnet<\/span><span style=\"font-size: 14px;\">\uff0c\u53ef\u4ee5\u8fdb\u884c\u7279\u5f81\u9009\u62e9\u3001\u6a21\u578b\u6b63\u5219\u5316\u548c\u9884\u6d4b\u7b49\u4efb\u52a1\u3002<\/span>&nbsp;&nbsp;<o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-size: 14px;\"><span style=\"font-size: 14px;\">\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff0c\u5c55\u793a\u5982\u4f55\u4f7f\u7528<\/span><span style=\"font-size: 14px;\">R<\/span><span style=\"font-size: 14px;\">\u5305<\/span><span style=\"font-size: 14px;\">glmnet<\/span><span style=\"font-size: 14px;\">\u8fdb\u884c\u7cd6\u5c3f\u75c5\u9884\u6d4b\u6a21\u578b\u7684\u8bad\u7ec3\u548c\u8bc4\u4f30\uff1a<\/span><\/span><span style=\"font-size: 14px;background: rgb(255, 255, 0);\"><o:p><\/o:p><\/span><\/span><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-size: 14px;color: rgb(51, 51, 51);letter-spacing: 0.4pt;background: rgb(255, 255, 255);\">\u4ee3\u7801<\/span><span style=\"font-size: 14px;\">\u5177\u4f53\u5305\u62ec\uff1a<\/span><\/span><strong style=\"text-align: center;letter-spacing: 0.034em;\"><em><span style=\"font-size: 20px;\"><\/span><\/em><\/strong><\/p>\n<\/section>\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><span style=\"font-size: 14px;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;white-space: normal;\"><strong><em><span style=\"font-size: 20px;\"><span style=\"font-family:Helvetica Neue, Helvetica, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;\">1.\u5bfc\u5165\u6570\u636e\u96c6\u4ee5\u53ca\u6570\u636e\u9884\u5904\u7406<\/span><\/span><\/em><\/strong><\/p>\n<\/section>\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"php\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># \u8fd9\u91cc\u7684\"inputdata.txt\"\u662f\u81ea\u884c\u51c6\u5907\u7684\u672c\u5730\u6587\u4ef6\uff0c\u5c0f\u679c\u7ed9\u5927\u5bb6\u9644\u5728\u6700\u540e\u3002<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># 1.\u5bfc\u5165\u6570\u636e\u96c6\u4ee5\u53ca\u6570\u636e\u9884\u5904\u7406<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># \u5b89\u88c5\u548c\u52a0\u8f7d\u6240\u9700\u7684\u5e93<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># install.packages(\"glmnet\")<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">library(glmnet)<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># \u5bfc\u5165\u6570\u636e\u96c6<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">data &lt;- read.table(file = <span class=\"code-snippet__string\">\"D:\/wanglab\/life\/ziyuan\/20230628\/inputdata.txt\"<\/span>,header = T)  <span class=\"code-snippet__comment\"># \u66ff\u6362\u4e3a\u5b9e\u9645\u6570\u636e\u96c6\u6587\u4ef6\u7684\u8def\u5f84<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">data[, <span class=\"code-snippet__number\">1<\/span>:<span class=\"code-snippet__number\">8<\/span>] &lt;- scale(data[, <span class=\"code-snippet__number\">1<\/span>:<span class=\"code-snippet__number\">8<\/span>])<span class=\"code-snippet__comment\"># \u6570\u636e\u6807\u51c6\u5316<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">data$diabetes &lt;- <span class=\"code-snippet__keyword\">as<\/span>.factor(data$diabetes)<span class=\"code-snippet__comment\"># \u5c06\u76ee\u6807\u53d8\u91cf\u8f6c\u6362\u4e3a\u56e0\u5b50<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># \u5212\u5206\u6570\u636e\u96c6\u4e3a\u8bad\u7ec3\u96c6\u548c\u6d4b\u8bd5\u96c6<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">set.seed(<span class=\"code-snippet__number\">123<\/span>)  <span class=\"code-snippet__comment\"># \u8bbe\u7f6e\u968f\u673a\u79cd\u5b50\uff0c\u4fdd\u8bc1\u7ed3\u679c\u53ef\u590d\u73b0<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">indices &lt;- sample(<span class=\"code-snippet__number\">1<\/span>:nrow(data), nrow(data)*<span class=\"code-snippet__number\">0.8<\/span>)  <span class=\"code-snippet__comment\"># 80%\u7684\u6570\u636e\u7528\u4e8e\u8bad\u7ec3\uff0c20%\u7684\u6570\u636e\u7528\u4e8e\u6d4b\u8bd5<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">train_data &lt;- data[indices, ]<\/span><\/code><code><span class=\"code-snippet_outer\">test_data &lt;- data[-indices, ]<\/span><\/code><code><span class=\"code-snippet_outer\">Xtrain&lt;-<span class=\"code-snippet__keyword\">as<\/span>.matrix(trainingset[,<span class=\"code-snippet__number\">1<\/span>:<span class=\"code-snippet__number\">8<\/span>])<\/span><\/code><code><span class=\"code-snippet_outer\">Ytrain&lt;-<span class=\"code-snippet__keyword\">as<\/span>.matrix(trainingset[,<span class=\"code-snippet__number\">9<\/span>])<\/span><\/code><code><span class=\"code-snippet_outer\">Xtest&lt;-<span class=\"code-snippet__keyword\">as<\/span>.matrix(testingset[,<span class=\"code-snippet__number\">1<\/span>:<span class=\"code-snippet__number\">8<\/span>])<\/span><\/code><code><span class=\"code-snippet_outer\">Ytest&lt;-<span class=\"code-snippet__keyword\">as<\/span>.matrix(testingset[,<span class=\"code-snippet__number\">9<\/span>])<\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"text-align: center;white-space: normal;\"><strong><em><span style=\"font-size: 20px;\"><span style=\"letter-spacing: 0.544px;\">2.\u521b\u5efalasso\u56de\u5f52\u6a21\u578b<\/span><\/span><\/em><\/strong><\/p>\n<p><span style=\"mso-spacerun:&quot;yes&quot;;font-family:&quot;Open Sans&quot;;mso-fareast-font-family:\u5b8b\u4f53;color:rgb(51,51,51);font-size:12.0000pt;mso-font-kerning:0.0000pt;\"><o:p><\/o:p><\/span><\/p>\n<\/section>\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"php\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># 2.\u521b\u5efa\u6df1\u5ea6\u5b66\u4e60\u6a21\u578b<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># 2.\u521b\u5efalasso\u56de\u5f52\u6a21\u578b<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">lsofit&lt;-glmnet(Xtrain,Ytrain,family=<span class=\"code-snippet__string\">\"binomial\"<\/span>,alpha=<span class=\"code-snippet__number\">0.1<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">print<\/span>(lsofit)<span class=\"code-snippet__comment\">##lasso\u56de\u5f52\u7cfb\u6570<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">coef.apprx&lt;-coef(lsofit, s=<span class=\"code-snippet__number\">0.017<\/span>) <\/span><\/code><code><span class=\"code-snippet_outer\">coef.apprx<\/span><\/code><code><span class=\"code-snippet_outer\">plot(lsofit,xvar=<span class=\"code-snippet__string\">\"lambda\"<\/span>,label=<span class=\"code-snippet__keyword\">TRUE<\/span>)<span class=\"code-snippet__comment\"># \u753bLasso\u7b5b\u9009\u53d8\u91cf\u52a8\u6001\u8fc7\u7a0b\u56fe<\/span><\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p><strong><span style=\"color: rgb(51, 51, 51);font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\">Lasso\u7b5b\u9009\u53d8\u91cf\u52a8\u6001\u8fc7\u7a0b\u56fe<\/span><\/strong><span style=\"color: rgb(51, 51, 51);font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\"><\/span><span style=\"mso-spacerun:&quot;yes&quot;;font-family:&quot;Open Sans&quot;;mso-fareast-font-family:\u5b8b\u4f53;color:rgb(51,51,51);font-size:12.0000pt;mso-font-kerning:0.0000pt;\"><o:p><\/o:p><\/span><\/p>\n<\/section>\n<section powered-by=\"xiumi.us\">\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-ratio=\"0.882051282051282\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/2_gibEUUHicHRekGvaowg3TkfuJpAsOg.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/zcicibWZessAztctFDciaTgXQTByLub6rkEGmAsbgdCTuqloicw8K3u3jG4pAGgibEUUHicHRekGvaowg3TkfuJpAsOg\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"390\" style=\"\" data-recalc-dims=\"1\"><\/p>\n<p style=\"text-align: center;\"><br  \/><\/p>\n<p style=\"text-align: center;white-space: normal;\"><strong><em><span style=\"font-size: 20px;\">3.K\u6298\u4ea4\u53c9\u9a8c\u8bc1<\/span><\/em><\/strong><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"bash\"><code><span class=\"code-snippet_outer\"># 3.K\u6298\u4ea4\u53c9\u9a8c\u8bc1<\/span><\/code><code><span class=\"code-snippet_outer\">set.seed(2022) #\u8bbe\u7f6e\u968f\u673a\u79cd\u5b50\uff0c\u4fdd\u8bc1K\u6298\u9a8c\u8bc1\u7684\u53ef\u91cd\u590d\u6027<\/span><\/code><code><span class=\"code-snippet_outer\">lsocv&lt;-cv.glmnet(Xtrain,Ytrain,family=\"binomial\",nfolds=10)<\/span><\/code><code><span class=\"code-snippet_outer\">lsocv ##print(lsocv) <\/span><\/code><code><span class=\"code-snippet_outer\">lsocv$lambda.min<\/span><\/code><code><span class=\"code-snippet_outer\">lsocv$lambda.1se<\/span><\/code><code><span class=\"code-snippet_outer\">plot(lsocv) #\u7ed8\u5236\u4ea4\u53c9\u9a8c\u8bc1\u66f2\u7ebf<\/span><\/code><\/pre>\n<\/section>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><strong><span style=\"font-size: 10.5pt;\">\u4ea4\u53c9\u9a8c\u8bc1\u66f2\u7ebf\u56fe<\/span><\/strong><\/span><strong><span style=\"font-family: &quot;Times New Roman&quot;;font-size: 9pt;\"><o:p><\/o:p><\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-ratio=\"0.8816425120772947\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/3_LPnJMdDkzauPdzwWWRWNAovichwTFQ.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/zcicibWZessAztctFDciaTgXQTByLub6rkEliaXnYdrTyIzznxIiawoSEZ3tqrLPnJMdDkzauPdzwWWRWNAovichwTFQ\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"414\" style=\"\" data-recalc-dims=\"1\"><\/p>\n<p style=\"text-align: center;\"><br  \/><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"bash\"><code><span class=\"code-snippet_outer\">coef(lsocv,s=\"lambda.min\") #\u83b7\u53d6\u4f7f\u6a21\u578b\u504f\u5dee\u6700\u5c0f\u65f6\u03bb\u503c\u7684\u6a21\u578b\u7cfb\u6570<\/span><\/code><code><span class=\"code-snippet_outer\">coef(lsocv,s=\"lambda.1se\") #\u83b7\u53d6\u4f7f\u6a21\u578b\u504f\u5dee\u6700\u5c0f\u65f6\u03bb\u503c+\u4e00\u4e2a\u6807\u51c6\u8bef\u65f6\u7684\u6a21\u578b\u7cfb\u6570<\/span><\/code><code><span class=\"code-snippet_outer\">cbind2(coef(lsocv,s=\"lambda.min\"),coef(lsocv,s=\"lambda.1se\")) #\u5408\u5e76\u663e\u793a<\/span><\/code><code><span class=\"code-snippet_outer\">select_x &lt;- names(which(coef(lsocv,s=\"lambda.1se\")[-1,] != 0))<\/span><\/code><code><span class=\"code-snippet_outer\">select_x\u5f97\u5230\u5bf9\u9884\u6d4b\u7ed3\u679c\u6709\u5f71\u54cd\u7684\u56e0\u7d20<\/span><\/code><\/pre>\n<\/section>\n<p style=\"text-align: center;\"><br  \/><\/p>\n<p style=\"text-align: center;\"><em><span style=\"font-size: 20px;\"><strong>4.\u7ed8\u5236AUC\u66f2\u7ebf\u8bc4\u4f30\u6a21\u578b<\/strong><\/span><\/em><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\"># 4.\u7ed8\u5236AUC\u66f2\u7ebf\u8bc4\u4f30\u6a21\u578b<\/span><\/code><code><span class=\"code-snippet_outer\">predictions &lt;- lsocv %&gt;% predict(as.matrix(test_data[, 1:8]))# \u9884\u6d4b\u6982\u7387<\/span><\/code><code><span class=\"code-snippet_outer\"># \u8ba1\u7b97AUC<\/span><\/code><code><span class=\"code-snippet_outer\">library(pROC)<\/span><\/code><code><span class=\"code-snippet_outer\">roc_obj &lt;- roc(test_data$diabetes, predictions)<\/span><\/code><code><span class=\"code-snippet_outer\">auc_value &lt;- auc(roc_obj)<\/span><\/code><code><span class=\"code-snippet_outer\"># \u7ed8\u5236AUC\u66f2\u7ebf<\/span><\/code><code><span class=\"code-snippet_outer\">plot(roc_obj, main = \"ROC Curve\")<\/span><\/code><code><span class=\"code-snippet_outer\">text(0.5, 0.3, paste0(\"AUC = \", round(auc_value, 3)), col = \"red\", cex = 1.2)<\/span><\/code><\/pre>\n<\/section>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><strong><span style=\"font-size: 10.5pt;\">AUC\u66f2\u7ebf\u56fe<\/span><\/strong><\/span><strong><span style=\"font-family: &quot;Times New Roman&quot;;font-size: 10.5pt;\"><o:p><\/o:p><\/span><\/strong><\/p>\n<p><br  \/><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-ratio=\"0.881578947368421\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/4_L3K75NO3I4fCiaoTVC9gz2Dbp8wFSg.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/zcicibWZessAztctFDciaTgXQTByLub6rkEWwOQNrnyxNdGhBVibQesYsQtpgL3K75NO3I4fCiaoTVC9gz2Dbp8wFSg\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"380\" style=\"\" data-recalc-dims=\"1\"><\/p>\n<p style=\"text-align: center;\"><br  \/><\/p>\n<p style=\"text-align: center;\"><span style=\"color: rgb(51, 51, 51);font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\"><em style=\"font-size: 16px;letter-spacing: 0.578px;text-align: center;text-wrap: wrap;\"><span style=\"font-size: 20px;\"><strong>5.\u7ed8\u5236\u5217\u7ebf\uff08Nomogram\uff09\u56fe<\/strong><\/span><\/em><\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"kotlin\"><code><span class=\"code-snippet_outer\"># 5.\u7ed8\u5236\u5217\u7ebf(Nomogram)\u56fe<\/span><\/code><code><span class=\"code-snippet_outer\">library(rms);library(Hmisc);library(lattice);library(survival);library(Formula);library(ggplot2);library(SparseM)<\/span><\/code><code><span class=\"code-snippet_outer\">NM&lt;-datadist(trainingset)<\/span><\/code><code><span class=\"code-snippet_outer\">options(datadist='NM')<\/span><\/code><code><span class=\"code-snippet_outer\">lgrfit&lt;-lrm(diabetes~pregnant+glucose+mass+pedigree+age,data=trainingset,x=T,y=T) <\/span><\/code><code><span class=\"code-snippet_outer\">Nomg&lt;-nomogram(lgrfit,fun=plogis,fun.at=c(.001,.01,.05,0.1,seq(.2,.8,by=.2),0.9,.95,.99,.999),lp=F,funlabel=\"malignant Rate\")<\/span><\/code><code><span class=\"code-snippet_outer\">plot(Nomg)<\/span><\/code><\/pre>\n<\/section>\n<p style=\"text-align: center;\"><br  \/><\/p>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><strong><span style=\"font-family: \u5b8b\u4f53;font-size: 10.5pt;\"><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">\u5217\u7ebf\u56fe(Nomogram)<\/span>\u56fe<\/span><\/strong><\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-ratio=\"0.7286995515695067\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/5_A6XyuNL1MABVibicj5kPibL07BRM6Q.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/zcicibWZessAztctFDciaTgXQTByLub6rkEdr2xnG19xDnG8iakWHiaR7KmC5pH8A6XyuNL1MABVibicj5kPibL07BRM6Q\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"446\" style=\"\" data-recalc-dims=\"1\"><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"font-family: \u5b8b\u4f53;font-size: 10.5pt;\"><o:p><em style=\"color: rgb(51, 51, 51);font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.578px;text-align: center;text-wrap: wrap;font-size: 16px;\"><span style=\"font-size: 20px;\"><strong>6.\u7ed8\u5236\u591a\u56e0\u7d20Cox\u56de\u5f52\u68ee\u6797\u56fe<\/strong><\/span><\/em><\/o:p><\/span><\/strong><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"powershell\"><code><span class=\"code-snippet_outer\"># 6.\u7ed8\u5236\u591a\u56e0\u7d20Cox\u56de\u5f52\u68ee\u6797\u56fe<\/span><\/code><code><span class=\"code-snippet_outer\">library(survival)<\/span><\/code><code><span class=\"code-snippet_outer\">library(survminer)<\/span><\/code><code><span class=\"code-snippet_outer\">library(tidyverse)<\/span><\/code><code><span class=\"code-snippet_outer\">library(eoffice)<\/span><\/code><code><span class=\"code-snippet_outer\">library(forestplot)<\/span><\/code><code><span class=\"code-snippet_outer\">trainingset$diabetes &lt;- as.numeric(trainingset$diabetes)<\/span><\/code><code><span class=\"code-snippet_outer\">model &lt;- coxph(Surv(diabetes)~pregnant+glucose+mass+pedigree+age,<\/span><\/code><code><span class=\"code-snippet_outer\">               data = trainingset[,c('pregnant','glucose','mass','pedigree','age',\"diabetes\")] )<\/span><\/code><code><span class=\"code-snippet_outer\">ggforest(model = model,#cox\u56de\u5f52\u65b9\u7a0b<\/span><\/code><code><span class=\"code-snippet_outer\">         data = trainingset[,c('pregnant','glucose','mass','pedigree','age',\"diabetes\")],#\u6570\u636e\u96c6<\/span><\/code><code><span class=\"code-snippet_outer\">         main = \"\u7b80\u5355\u68ee\u6797\u56fe\")#\u6807\u9898<\/span><\/code><\/pre>\n<\/section>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><strong><span style=\"font-size: 10.5pt;\">\u7ed8\u5236\u591a\u56e0\u7d20Cox\u56de\u5f52\u68ee\u6797\u56fe<\/span><\/strong><\/span><strong><span style=\"font-size: 10.5pt;font-family: \u5b8b\u4f53;\"><\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-ratio=\"0.7283236994219653\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/6_snzibNO9zkSJTJbDsjTQZ6mBtLD5sQ.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/zcicibWZessAztctFDciaTgXQTByLub6rkEUXicWgODIyQ6ko0WLXQ76shwEQsnzibNO9zkSJTJbDsjTQZ6mBtLD5sQ\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"692\" style=\"\" data-recalc-dims=\"1\"><\/p>\n<p><br  \/><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-size: 14px;\">\u6ce8\uff1a<\/span><span style=\"font-size: 14px;\"><o:p><\/o:p><\/span><\/span><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-size: 14px;\"><span style=\"font-size: 14px;\"># <\/span><span style=\"font-size: 14px;\">\u8bf7\u786e\u4fdd\u5c06\u8def\u5f84<\/span><span style=\"font-size: 14px;\">&#8220;<\/span><\/span><span style=\"font-size: 14px;\">inputdata.txt<\/span><span style=\"font-size: 14px;\"><span style=\"font-size: 14px;\">&#8220;<\/span><span style=\"font-size: 14px;\">\u66ff\u6362\u4e3a\u5b9e\u9645\u6570\u636e\u96c6\u6587\u4ef6\u7684\u8def\u5f84\uff0c\u5e76\u6839\u636e\u9700\u8981\u8c03\u6574\u6a21\u578b\u53c2\u6570\u548c\u5176\u4ed6\u914d\u7f6e\u3002<\/span><\/span><o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-size: 14px;\"># <\/span><span style=\"font-size: 14px;\">\u5728\u7ed8\u5236<\/span><span style=\"font-size: 14px;\">AUC<\/span><span style=\"font-size: 14px;\">\u66f2\u7ebf\u4e4b\u524d\uff0c\u786e\u4fdd\u60a8\u7684\u6a21\u578b\u8f93\u51fa\u7684\u662f\u9884\u6d4b\u7684\u6982\u7387\u503c\uff0c\u800c\u4e0d\u662f\u7c7b\u522b\u6807\u7b7e\u3002<\/span><o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-size: 14px;font-family: \u5b8b\u4f53;\">\u5389\u5bb3\u5427\uff0c<span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">\u6211\u4eec\u8fd9\u4e48\u5feb\u5c31\u5b8c\u6210\u4e86\u4e00\u4e2a\u7528<\/span><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">lasso<\/span><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">\u7b97\u6cd5\u5efa\u7acb\u6a21\u578b\u5e76\u8bc4\u4f30\u3002\u5982\u679c\u7279\u5f81\u6bd4\u8f83\u591a\uff0c\u5c24\u5176\u662f\u4ee5\u57fa\u56e0\u4e3a\u7279\u5f81\u65f6<\/span><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">lasso<\/span><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">\u7b97\u6cd5\u80fd\u4ece\u6210\u5343\u4e0a\u4e07\u7684\u57fa\u56e0\u4e2d\u6311\u9009\u51fa\u5bf9\u9884\u6d4b\u8868\u73b0\u5f71\u54cd\u8f83\u5927\u7684\u90a3\u4e00\u90e8\u5206\uff0c\u751a\u81f3\u662f\u51e0\u4e2a\u57fa\u56e0\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5982\u679c\u7279\u5f81\u503c\u8f83\u591a\uff0c\u53ef\u80fd\u9700\u8981\u5927\u91cf\u7684\u5185\u5b58\uff0c\u8017\u65f6\u6bd4\u8f83\u957f\u3002\u56e0\u6b64\uff0c\u5c0f\u679c\u5efa\u8bae\u4f7f\u7528\u6211\u4eec\u7684\u4e91\u751f\u4fe1\u5e73\u53f0\uff0c\u6211\u4eec\u7684\u5e73\u53f0\u63d0\u4f9b\u5f3a\u5927\u7684\u8ba1\u7b97\u8d44\u6e90\u548c\u6df1\u5ea6\u5b66\u4e60\u5de5\u5177\u3002\u60a8\u53ef\u4ee5\u8bbf\u95ee\u6211\u4eec\u7684\u4e91\u751f\u4fe1\u5e73\u53f0\uff0c\u94fe\u63a5\u4e3a\uff1a<\/span><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">http:\/\/www.biocloudservice.com\/home.html<\/span><span style=\"font-size: 14px;font-family: \u5b8b\u4f53;\">\u3002<\/span><\/span><\/span><\/p>\n<p style=\"text-align: center;\"><br  \/><\/p>\n<\/section>\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p><span style=\"mso-spacerun:&quot;yes&quot;;font-family:\u5fae\u8f6f\u96c5\u9ed1;font-size:10.5000pt;mso-font-kerning:1.0000pt;\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1;\"><\/span><\/span><\/p>\n<p><span style=\"color: rgb(217, 33, 66);\"><span style=\"font-size: 10.5pt;font-family: \u5fae\u8f6f\u96c5\u9ed1;\">\u5176\u4ed6<\/span><span style=\"font-size: 10.5pt;font-family: \u5fae\u8f6f\u96c5\u9ed1;\">\u76f8\u5173\u5206\u6790\u5185\u5bb9\uff0c\u4f8b\u5982\u9884\u6d4b\u80bf\u7624\u6837\u672c\u836f\u7269\u654f\u611f\u6027\u5206\u6790(http:\/\/www.biocloudservice.com\/712\/712.php),\u9884\u6d4b\u67d0\u6837\u672c\u4e9a\u578b\u5bf9\u514d\u75ab\u6cbb\u7597\u7684\u53cd\u5e94(http:\/\/www.biocloudservice.com\/292\/292.php)\uff0c\u5355\u6837\u672c\u5bcc\u96c6\u7b97\u6cd5\u5206\u6790\u514d\u75ab\u6d78\u6da6\u4e30\u5ea6(http:\/\/www.biocloudservice.com\/106\/106.php)\uff0c\u8ba1\u7b9764\u79cd\u514d\u75ab\u7ec6\u80de\u76f8\u5bf9\u542b\u91cf(http:\/\/www.biocloudservice.com\/107\/107.php)\u7b49\u90fd\u53ef\u4ee5\u7528\u672c\u516c\u53f8\u65b0\u5f00\u53d1\u7684\u96f6\u4ee3\u7801\u4e91\u5e73\u53f0\u751f\u4fe1\u5206\u6790\u5c0f\u5de5\u5177\uff0c\u4e00\u952e\u5b8c\u6210\u8be5\u5206\u6790\u5965\uff0c\u611f\u5174\u8da3\u7684\u5c0f\u4f19\u4f34\u6b22\u8fce\u6765\u5c1d\u8bd5\u5965\uff0c\u7f51\u5740\uff1ahttp:\/\/www.biocloudservice.com\/home.html\u3002<\/span><\/span><span style=\"color: rgb(217, 33, 66);font-size: 10.5pt;font-family: \u5fae\u8f6f\u96c5\u9ed1;\"><\/span><span style=\"mso-spacerun:&quot;yes&quot;;font-family:\u5fae\u8f6f\u96c5\u9ed1;font-size:10.5000pt;mso-font-kerning:1.0000pt;\">\u4eca\u5929\u5c0f\u679c\u7684\u5206\u4eab\u5c31\u5230\u8fd9\u91cc\uff0c\u4e0b\u671f\u5728\u89c1\u5965\u3002<\/span><span style=\"text-align: center;letter-spacing: 0.034em;\"><\/span><\/p>\n<section data-mpa-powered-by=\"yiban.io\" style=\"margin-bottom: 0px;outline: 0px;letter-spacing: 0.578px;visibility: visible;\">\n<section style=\"outline: 0px;visibility: visible;\">\n<section style=\"outline: 0px;visibility: visible;\">\n<section style=\"outline: 0px;visibility: visible;\">\n<section style=\"outline: 0px;visibility: visible;\">\n<section style=\"outline: 0px;visibility: visible;\">\n<section data-role=\"list\" style=\"outline: 0px;visibility: visible;\">\n<section powered-by=\"xiumi.us\" style=\"outline: 0px;visibility: visible;\">\n<section style=\"outline: 0px;visibility: visible;\">\n<section style=\"outline: 0px;visibility: visible;\">\n<section style=\"outline: 0px;visibility: visible;\">\n<section style=\"padding-right: 15px;padding-left: 15px;outline: 0px;font-size: 14px;\">\n<section powered-by=\"xiumi.us\" style=\"outline: 0px;height: auto;transform: perspective(0px);transform-style: flat;\">\n<section style=\"margin-top: 10px;margin-bottom: -3px;outline: 0px;text-align: left;justify-content: flex-start;display: flex;flex-flow: row nowrap;transform: translate3d(19px, 0px, 0px) rotateX(180deg);\">\n<section style=\"outline: 0px;display: inline-block;vertical-align: top;width: auto;align-self: flex-start;flex: 0 0 auto;min-width: 5%;height: auto;\">\n<section powered-by=\"xiumi.us\" style=\"outline: 0px;text-align: center;\">\n<section style=\"outline: 0px;display: inline-block;width: 6px;height: 6px;vertical-align: top;overflow: hidden;border-radius: 230px;background-color: rgb(217, 217, 217);\">\n<section powered-by=\"xiumi.us\" style=\"outline: 0px;text-align: justify;\">\n<p style=\"outline: 0px;\"><br style=\"outline: 0px;\"  \/><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"outline: 0px;display: inline-block;vertical-align: top;width: auto;align-self: flex-start;flex: 0 0 auto;min-width: 5%;height: auto;\">\n<section powered-by=\"xiumi.us\" style=\"outline: 0px;text-align: center;\">\n<section style=\"outline: 0px;display: inline-block;width: 6px;height: 6px;vertical-align: top;overflow: hidden;border-radius: 230px;background-color: rgb(217, 217, 217);\">\n<section powered-by=\"xiumi.us\" style=\"outline: 0px;text-align: justify;\">\n<p style=\"outline: 0px;\"><br style=\"outline: 0px;\"  \/><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section powered-by=\"xiumi.us\" style=\"margin-bottom: 10px;outline: 0px;text-align: left;justify-content: flex-start;display: flex;flex-flow: row nowrap;\">\n<section style=\"padding: 14px 10px;outline: 0px;display: inline-block;width: 647px;vertical-align: top;align-self: flex-start;flex: 0 0 auto;border-style: solid;border-width: 1px;border-color: rgb(217, 217, 217);\">\n<section powered-by=\"xiumi.us\" style=\"margin-top: 10px;margin-bottom: 15px;outline: 0px;justify-content: flex-start;display: flex;flex-flow: row nowrap;\">\n<section style=\"padding-left: 9px;outline: 0px;display: inline-block;width: 625px;vertical-align: top;align-self: flex-start;flex: 0 0 auto;border-style: solid;border-width: 0px 0px 0px 12px;border-left-color: rgb(212, 32, 2);\">\n<section powered-by=\"xiumi.us\" style=\"outline: 0px;text-align: justify;font-size: 17px;color: rgb(62, 62, 62);\">\n<p style=\"outline: 0px;\"><strong style=\"outline: 0px;\">\u5c0f\u679c\u53cb\u60c5\u63a8\u8350<\/strong><\/p>\n<\/section>\n<section powered-by=\"xiumi.us\" style=\"margin-top: 3px;outline: 0px;\">\n<section style=\"outline: 0px;background-color: rgb(217, 217, 217);height: 1px;\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"><\/svg><\/section>\n<\/section>\n<section powered-by=\"xiumi.us\" style=\"outline: 0px;text-align: justify;font-size: 11px;color: rgb(62, 62, 62);\">\n<p style=\"outline: 0px;\">\u597d\u7528\u53c8\u514d\u8d39\u7684\u5de5\u5177\u5b89\u5229<\/p>\n<\/section>\n<\/section>\n<\/section>\n<section powered-by=\"xiumi.us\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;text-align: center;line-height: 0;\">\n<section style=\"outline: 0px;vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.35777777777777775\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/7_eVibso6VJox4Hnic0n53VnLS1A9qYA-5.jpg?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_jpg\/zcicibWZessAyqVJd7As6iaIgTzXqErqUGpoEpMoWhEkVHHw4z3ZmlYpZZUX7eVibso6VJox4Hnic0n53VnLS1A9qYA\/640?wx_fmt=jpeg&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1'\" data-type=\"jpeg\" data-w=\"900\" style=\"outline: 0px;vertical-align: middle;visibility: visible !important;width: 625px !important;\" data-recalc-dims=\"1\"><\/section>\n<\/section>\n<section powered-by=\"xiumi.us\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;text-align: center;line-height: 0;\">\n<section style=\"outline: 0px;vertical-align: middle;display: inline-block;line-height: 0;\"><a target=\"_blank\" href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzAwNjE0MDY3MQ==&amp;mid=2650762044&amp;idx=2&amp;sn=c74f81e91cadd166adc7168dec9891ed&amp;scene=21#wechat_redirect\" textvalue=\"\u4f60\u5df2\u9009\u4e2d\u4e86\u6dfb\u52a0\u94fe\u63a5\u7684\u5185\u5bb9\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" tab=\"innerlink\" data-linktype=\"1\" rel=\"noopener\"><span class=\"js_jump_icon h5_image_link\" style=\"outline: 0px;vertical-align: bottom;user-select: none;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.35361653272101035\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/8_UwKXVVrT2bVTc2jSlZNaUIE5TUCDMQ-5.jpg?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_jpg\/zcicibWZessAyqVJd7As6iaIgTzXqErqUGp8QxUSk0Sricia0JSmh8nB9T4SicUwKXVVrT2bVTc2jSlZNaUIE5TUCDMQ\/640?wx_fmt=jpeg&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1'\" data-type=\"jpeg\" data-w=\"871\" style=\"outline: 0px;border-width: 0px;border-style: initial;border-color: initial;vertical-align: middle;visibility: visible !important;width: 625px !important;\" data-recalc-dims=\"1\"><\/span><\/a><\/section>\n<\/section>\n<section powered-by=\"xiumi.us\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;text-align: center;line-height: 0;\">\n<section style=\"outline: 0px;vertical-align: middle;display: inline-block;line-height: 0;\"><a target=\"_blank\" href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzAwNjE0MDY3MQ==&amp;mid=2650761303&amp;idx=2&amp;sn=6f73471d1e82c56c0b2160d0fcd32d53&amp;scene=21#wechat_redirect\" textvalue=\"\u4f60\u5df2\u9009\u4e2d\u4e86\u6dfb\u52a0\u94fe\u63a5\u7684\u5185\u5bb9\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" tab=\"innerlink\" data-linktype=\"1\" rel=\"noopener\"><span class=\"js_jump_icon h5_image_link\" style=\"outline: 0px;vertical-align: bottom;user-select: none;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.36333333333333334\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/9_IHSYtLyxwVWxiaf2v2rQdOnoz05G6A-5.jpg?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_jpg\/zcicibWZessAyqVJd7As6iaIgTzXqErqUGp9ZZibzJmVhqwxDqOgC1Tdmh7VxIHSYtLyxwVWxiaf2v2rQdOnoz05G6A\/640?wx_fmt=jpeg&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1'\" data-type=\"jpeg\" data-w=\"900\" style=\"outline: 0px;border-width: 0px;border-style: initial;border-color: initial;vertical-align: middle;visibility: visible !important;width: 625px !important;\" data-recalc-dims=\"1\"><\/span><\/a><\/section>\n<p><span style=\"outline: 0px;text-align: justify;letter-spacing: 0.5px;text-indent: 0em;color: rgb(0, 150, 136);font-size: 32px;caret-color: rgba(0, 0, 0, 0);\"><\/span><span style=\"outline: 0px;text-align: justify;letter-spacing: 0.5px;text-indent: 0em;color: rgb(0, 150, 136);font-size: 32px;caret-color: rgba(0, 0, 0, 0);\"><\/span><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"margin-bottom: 0px;outline: 0px;\"><br  \/><\/p>\n<section style=\"margin-bottom: 0px;letter-spacing: 0.578px;white-space: normal;caret-color: rgba(0, 0, 0, 0);font-size: 16px;\">\n<section>\n<section style=\"margin-top: 0.5em;\">\n<section style=\"padding: 0.5em;border-width: 1px;border-style: solid;box-shadow: rgb(226, 226, 226) 0px 16px 1px -13px;border-color: rgb(0, 150, 136);\">\n<section style=\"text-align: left;\">\n<section style=\"color: rgb(255, 129, 36);text-align: justify;\">\n<section style=\"margin-bottom: 8px;\">\n<p style=\"text-indent: 0em;line-height: 1.75em;\"><span style=\"letter-spacing: 0.5px;\">\u70b9\u51fb<strong><span style=\"color: rgb(0, 150, 136);\">\u201c\u9605\u8bfb\u539f\u6587\u201d<\/span><\/strong>\u7acb\u523b\u62e5\u6709<\/span><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"margin-bottom: 8px;font-size: 32px;color: rgb(0, 150, 136);\">\n<p style=\"text-indent: 0em;line-height: 1.75em;\"><span style=\"letter-spacing: 0.5px;\">\u2193\u2193\u2193&nbsp;<\/span><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<div class=\"msg_source_url\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=Mzg3OTg3MjQyNg==&#038;mid=2247490130&#038;idx=1&#038;sn=1578a7fab283ba24e1ce5cd6087e2d0d&#038;chksm=cf7c8a97f80b038111f1d3df359dbee67a49462b61b5bfed1060dd83c5d7b975f0db40f4626a#rd\" target=\"_blank\" rel=\"noopener\">\u9605\u8bfb\u539f\u6587<\/a><\/div>\n<p><\/content><\/p>\n<div class=\"msg_source_url\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=Mzg3OTg3MjQyNg==&#038;mid=2247490130&#038;idx=1&#038;sn=1578a7fab283ba24e1ce5cd6087e2d0d&#038;chksm=cf7c8a97f80b038111f1d3df359dbee67a49462b61b5bfed1060dd83c5d7b975f0db40f4626a#rd\" target=\"_blank\" rel=\"noopener\">\u9605\u8bfb\u539f\u6587<\/a><\/div>\n<\/div>\n<p><\/body><br \/>\n<\/html><\/p>\n","protected":false},"excerpt":{"rendered":"<p>GLM\u5999\u80fd\uff1a\u7528glmnet\u9884\u6d4b\u7cd6\u5c3f\u75c5\u7684Lasso\u4e4b\u9053 \u539f\u521b&nbsp;&nbsp;\u5c0f\u679c&nbsp;&nbsp; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":""},"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/56806"}],"collection":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=56806"}],"version-history":[{"count":1,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/56806\/revisions"}],"predecessor-version":[{"id":56816,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/56806\/revisions\/56816"}],"wp:attachment":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=56806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=56806"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=56806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}