{"id":56517,"date":"2024-06-16T18:00:10","date_gmt":"2024-06-16T10:00:10","guid":{"rendered":"http:\/\/www.biocloudservice.com\/wordpress\/?p=56517"},"modified":"2024-06-16T18:00:10","modified_gmt":"2024-06-16T10:00:10","slug":"%e6%89%8b%e6%8a%8a%e6%89%8b%e6%95%99%e5%ad%a6%ef%bc%81xgboost%e5%a6%82%e4%bd%95%e8%b0%83%e6%95%b4%e6%9c%80%e4%bc%98%e5%8f%82%e6%95%b0%e9%a2%84%e6%b5%8b%e7%94%9f%e5%ad%98%e6%9c%9f","status":"publish","type":"post","link":"http:\/\/www.biocloudservice.com\/wordpress\/?p=56517","title":{"rendered":"\u624b\u628a\u624b\u6559\u5b66\uff01XGBoost\u5982\u4f55\u8c03\u6574\u6700\u4f18\u53c2\u6570\u9884\u6d4b\u751f\u5b58\u671f"},"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\":\"\u624b\u628a\u624b\u6559\u5b66\uff01XGBoost\u5982\u4f55\u8c03\u6574\u6700\u4f18\u53c2\u6570\u9884\u6d4b\u751f\u5b58\u671f\",\"time\":\"2023-08-28 19:00:05\",\"timeStamp\":\"1693220405\"};\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=2247491705&#038;idx=3&#038;sn=b80b2be21b87a33f3ee05a743e222408&#038;chksm=cf7f70bcf808f9aac1417f8bcf228af6c30025147970d62133950cf7dbbd7c470fc50f4a5719#rd\" target=\"_blank\" rel=\"noopener\">\u624b\u628a\u624b\u6559\u5b66\uff01XGBoost\u5982\u4f55\u8c03\u6574\u6700\u4f18\u53c2\u6570\u9884\u6d4b\u751f\u5b58\u671f<\/a><\/h1>\n<div id=\"meta_content\" class=\"rich_media_meta_list\"><span class=\"rich_media_meta rich_media_meta_text\">\u5927\u6d77\u54e5&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-08-28 19:00:05<\/em><\/div>\n<p><content><\/p>\n<div class=\"reprint\">\n<p>\u8f6c\u81ea\u516c\u4f17\u53f7\uff1a\u751f\u4fe1\u6ee9<br \/><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzkzMzUwODcwMg==&#038;mid=2247484821&#038;idx=1&#038;sn=3fd66215a8b3bcc5c129c1ba181b15a7\" target=\"_blank\" title=\"\u9605\u8bfb\u539f\u6587\" rel=\"noopener\">http:\/\/mp.weixin.qq.com\/s?__biz=MzkzMzUwODcwMg==&#038;mid=2247484821&#038;idx=1&#038;sn=3fd66215a8b3bcc5c129c1ba181b15a7<\/a><\/p>\n<\/div>\n<section style=\"font-size: 14px;line-height: 1.8;letter-spacing: 2px;padding: 0px 10px;box-sizing: border-box;font-style: normal;font-weight: 400;text-align: justify;margin-bottom: 24px;\">\n<section style=\"text-align: left;justify-content: flex-start;margin: 25px 0% 10px;display: flex;flex-flow: row;box-sizing: border-box;\">\n<section style=\"display: inline-block;width: auto;vertical-align: top;background-color: rgb(245, 241, 224);min-width: 10%;max-width: 100%;flex: 0 0 auto;height: auto;align-self: flex-start;box-sizing: border-box;\">\n<section style=\"display: flex;flex-flow: row;margin: -9px 0% 5px;justify-content: flex-start;box-sizing: border-box;\">\n<section style=\"display: inline-block;vertical-align: top;width: auto;flex: 0 0 0%;height: auto;line-height: 0;align-self: flex-start;border-width: 0px;margin: 5px 0px 0px 7px;box-sizing: border-box;\">\n<section style=\"text-align: center;box-sizing: border-box;\">\n<section style=\"display: inline-block;width: 2px;height: 10px;vertical-align: top;overflow: hidden;background-color: rgb(59, 149, 115);box-sizing: border-box;\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"><\/svg><\/section>\n<\/section>\n<section style=\"text-align: center;margin: -6px 0% 4px;box-sizing: border-box;\">\n<section style=\"display: inline-block;width: 10px;height: 2px;vertical-align: top;overflow: hidden;background-color: rgb(59, 149, 115);box-sizing: border-box;\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"><\/svg><\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: top;width: auto;flex: 0 0 0%;height: auto;line-height: 0;border-width: 0px;margin: 0px 0px 0px 4px;box-sizing: border-box;\">\n<section style=\"text-align: center;margin: -4px 0% 0px;box-sizing: border-box;\">\n<section style=\"display: inline-block;width: 9px;height: 9px;vertical-align: top;overflow: hidden;border-width: 2px;border-radius: 47px;border-style: solid;border-color: rgb(59, 149, 115);box-sizing: border-box;\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"><\/svg><\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: top;width: auto;min-width: 10%;max-width: 100%;flex: 0 0 auto;height: auto;box-sizing: border-box;\">\n<section style=\"margin: 0px 0%;text-align: center;transform: translate3d(-1px, 0px, 0px);-webkit-transform: translate3d(-1px, 0px, 0px);-moz-transform: translate3d(-1px, 0px, 0px);-o-transform: translate3d(-1px, 0px, 0px);box-sizing: border-box;\">\n<section style=\"color: rgb(59, 149, 115);font-size: 17px;padding: 0px 11px;line-height: 1;text-align: justify;box-sizing: border-box;\">\n<p style=\"text-align: left;white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">\u70b9\u51fb\u84dd\u5b57 \u5173\u6ce8\u6211\u4eec<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: top;width: auto;line-height: 0;flex: 0 0 0%;height: auto;box-sizing: border-box;\">\n<section style=\"text-align: center;box-sizing: border-box;\">\n<section style=\"display: inline-block;width: 16px;height: 12px;vertical-align: top;overflow: hidden;background-color: rgb(59, 149, 115);padding: 0px 2px;box-sizing: border-box;\">\n<section style=\"justify-content: center;display: flex;flex-flow: row;box-sizing: border-box;\">\n<section style=\"display: inline-block;vertical-align: top;width: 50%;align-self: flex-start;flex: 0 0 auto;box-sizing: border-box;\">\n<section style=\"margin: 4px 0% 0px;box-sizing: border-box;\">\n<section style=\"display: inline-block;width: 3px;height: 3px;vertical-align: top;overflow: hidden;border-width: 0px;border-radius: 155px;border-style: none;border-color: rgb(62, 62, 62);background-color: rgb(245, 245, 245);box-sizing: border-box;\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"><\/svg><\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: top;width: 50%;align-self: flex-start;flex: 0 0 auto;box-sizing: border-box;\">\n<section style=\"margin: 4px 0% 0px;box-sizing: border-box;\">\n<section style=\"display: inline-block;width: 3px;height: 3px;vertical-align: top;overflow: hidden;border-width: 0px;border-radius: 155px;border-style: none;border-color: rgb(62, 62, 62);background-color: rgb(245, 245, 245);box-sizing: border-box;\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"><\/svg><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"text-align: center;transform: translate3d(3px, 0px, 0px);-webkit-transform: translate3d(3px, 0px, 0px);-moz-transform: translate3d(3px, 0px, 0px);-o-transform: translate3d(3px, 0px, 0px);box-sizing: border-box;\">\n<section style=\"display: inline-block;width: 0px;height: 0px;vertical-align: top;overflow: hidden;border-style: solid;border-width: 0px 0px 4px 4px;border-color: rgba(255, 255, 255, 0) rgba(255, 255, 255, 0) rgba(255, 255, 255, 0) rgb(59, 149, 115);box-sizing: border-box;\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"><\/svg><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"padding: 0px 10px;letter-spacing: 2px;line-height: 1.8;box-sizing: border-box;\">\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\">\u5c0f\u4f19\u4f34\u4eec\u5927\u5bb6\u597d\u554a\uff0c\u6211\u662f\u5927\u6d77\u54e5\uff0c\u524d\u51e0\u5929\u6709\u5c0f\u4f19\u4f34\u8be2\u95ee\uff0c\u53ef\u4e0d\u53ef\u4ee5\u51fa\u4e00\u4e2aXGBoost\u9884\u6d4b\u751f\u5b58\u671f\u7684\u6559\u5b66\uff0c\u7136\u540e\u6559\u4e00\u4e0b\u8c03\u53c2\u554a\uff01<\/p>\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\">\u5b89\u6392~<\/p>\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\">\u4eca\u5929\u5927\u6d77\u54e5\u5c06\u4f7f\u7528\u57fa\u56e0\u8868\u8fbe\u6570\u636e\u7ed3\u5408\u4e34\u5e8a\u6570\u636e\uff0c\u6765\u4e00\u671fXGBoost\u8c03\u6574\u6700\u4f18\u53c2\u6570\u5e76\u9884\u6d4b\u751f\u5b58\u671f\u7684\u6559\u5b66\u3002\u9996\u5148\u5206\u6790\u4e4b\u524d\uff0c\u6211\u4eec\u5148\u7ed9\u4e0d\u592a\u4e86\u89e3\u8fd9\u4e2a\u7b97\u6cd5\u7684\u5c0f\u4f19\u4f34\u4eec\u79d1\u666e\u4e00\u4e0b\uff0c\u4ec0\u4e48\u662fXGBoost\uff1f\u8fd9\u4e2a\u7b97\u6cd5\u6709\u4ec0\u4e48\u8fc7\u4eba\u4e4b\u5904\uff1f<\/p>\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\">XGBoost\uff08eXtreme Gradient Boosting\uff09\u662f\u4e00\u79cd\u96c6\u6210\u5b66\u4e60\u7b97\u6cd5\uff0c\u4e3b\u8981\u7528\u4e8e\u89e3\u51b3\u5206\u7c7b\u548c\u56de\u5f52\u95ee\u9898\u3002\u5b83\u662f\u57fa\u4e8e\u68af\u5ea6\u63d0\u5347\u6811\uff08Gradient Boosting Tree\uff09\u7684\u673a\u5668\u5b66\u4e60\u7b97\u6cd5\uff0c\u5728\u5404\u79cd\u6570\u636e\u79d1\u5b66\u7ade\u8d5b\u548c\u5b9e\u9645\u5e94\u7528\u4e2d\u90fd\u8868\u73b0\u51fa\u8272\u3002\u4ee5\u4e0b\u662f\u5176\u4e3b\u8981\u7279\u70b9\uff1a<\/p>\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\">\u68af\u5ea6\u63d0\u5347\u6811\uff08Gradient Boosting Tree\uff09\u57fa\u7840\uff1aXGBoost\u662f\u5efa\u7acb\u5728\u68af\u5ea6\u63d0\u5347\u6811\u7b97\u6cd5\u4e4b\u4e0a\u7684\u3002\u68af\u5ea6\u63d0\u5347\u6811\u901a\u8fc7\u8fed\u4ee3\u5730\u8bad\u7ec3\u591a\u4e2a\u5f31\u5b66\u4e60\u5668\uff08\u901a\u5e38\u662f\u51b3\u7b56\u6811\uff09\uff0c\u6bcf\u4e2a\u5f31\u5b66\u4e60\u5668\u90fd\u8bd5\u56fe\u7ea0\u6b63\u524d\u4e00\u4e2a\u5f31\u5b66\u4e60\u5668\u7684\u9519\u8bef\u3002<\/p>\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\">\u6b63\u5219\u5316\uff1aXGBoost\u5728\u6a21\u578b\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u5f15\u5165\u4e86\u6b63\u5219\u5316\u6280\u672f\uff0c\u9632\u6b62\u8fc7\u62df\u5408\u3002\u901a\u8fc7\u63a7\u5236\u6a21\u578b\u7684\u590d\u6742\u5ea6\uff0cXGBoost\u80fd\u591f\u5728\u8bad\u7ec3\u6570\u636e\u4e0a\u53d6\u5f97\u5f88\u597d\u7684\u6027\u80fd\uff0c\u5e76\u4e14\u5728\u672a\u89c1\u8fc7\u7684\u6570\u636e\u4e0a\u4e5f\u80fd\u8868\u73b0\u51fa\u8272\u3002<\/p>\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\">\u4f18\u5316\u76ee\u6807\u51fd\u6570\uff1aXGBoost\u91c7\u7528\u81ea\u5b9a\u4e49\u7684\u76ee\u6807\u51fd\u6570\uff0c\u8be5\u76ee\u6807\u51fd\u6570\u5305\u62ec\u9884\u6d4b\u8bef\u5dee\u548c\u6b63\u5219\u5316\u9879\uff0c\u4ee5\u4fbf\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u66f4\u597d\u5730\u4f18\u5316\u6a21\u578b\u3002<\/p>\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\">\u5904\u7406\u7f3a\u5931\u503c\uff1aXGBoost\u80fd\u591f\u81ea\u52a8\u5904\u7406\u7f3a\u5931\u503c\uff0c\u5728\u6811\u7684\u6784\u5efa\u8fc7\u7a0b\u4e2d\uff0c\u4f1a\u81ea\u52a8\u8003\u8651\u7f3a\u5931\u503c\u6240\u5728\u7684\u5206\u652f\u3002<\/p>\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\">\u4e0d\u4ec5\u5982\u6b64\uff0c\u8be5\u7b97\u6cd5\u8fd8\u652f\u6301\u5e76\u884c\u52a0\u901f\u54e6\uff01\u591a\u7ebf\u7a0b\u6b38\uff01\u7b80\u76f4\u5b8c\u7f8e<\/p>\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\">\u597d\u4e86\uff0c\u4ecb\u7ecd\u5b8c\u6bd5\uff0c\u8ba9\u6211\u4eec\u5f00\u59cb\u4ee3\u7801\u90e8\u5206\u5427\uff01<\/p>\n<\/section>\n<section style=\"font-size: 11px;line-height: 0;padding: 0px;box-sizing: border-box;\">\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"  \/><\/p>\n<\/section>\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=\"r\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__comment\" style=\"box-sizing: border-box;\">#\u9996\u5148\u5bfc\u5165\u6211\u4eec\u9700\u8981\u7684R\u5305<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">library(xgboost)<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">library(survival)<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__comment\" style=\"box-sizing: border-box;\">#\u7136\u540e\u5c31\u662f\u8bfb\u53d6\u6570\u636e<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">ml&lt;-read.csv(<span class=\"code-snippet__string\" style=\"box-sizing: border-box;\">\"ML_data.csv\"<\/span>,header=<span class=\"code-snippet__built_in\" style=\"box-sizing: border-box;\">T<\/span>,row.names=<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">1<\/span>,check.names=<span class=\"code-snippet__built_in\" style=\"box-sizing: border-box;\">F<\/span>)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"font-size: 12px;line-height: 0;padding: 0px;box-sizing: border-box;\">\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"  \/><\/p>\n<\/section>\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<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__comment\" style=\"box-sizing: border-box;\">#\u5b9a\u4e49\u6211\u4eec\u7684\u6570\u636e<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">Dtrain &lt;- xgb.DMatrix(data = as.matrix(ml[,<span class=\"code-snippet__built_in\" style=\"box-sizing: border-box;\">c<\/span>(<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">3<\/span>:<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">79<\/span>)]), label = ml$time)<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__comment\" style=\"box-sizing: border-box;\">#\u7136\u540e\u6211\u4eec\u9700\u8981\u5b9a\u4e49\u4e00\u4e2a\u53c2\u6570\u8303\u56f4\uff0c\u8ba9\u6a21\u578b\u6311\u9009\u51fa\u5176\u4e2d\u6700\u4f18\u7684\u503c<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">max_depth. &lt;- <span class=\"code-snippet__built_in\" style=\"box-sizing: border-box;\">c<\/span>(<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">3<\/span>:<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">11<\/span>)<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">min_child_weight. &lt;- <span class=\"code-snippet__built_in\" style=\"box-sizing: border-box;\">c<\/span>(<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">3<\/span>:<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">18<\/span>)<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__comment\" style=\"box-sizing: border-box;\">#\u5148\u968f\u4fbf\u5b9a\u4e49\u4e00\u4e2a\u53c2\u6570\u5217\u8868<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">best_param=<span class=\"code-snippet__built_in\" style=\"box-sizing: border-box;\">list<\/span>(objective = <span class=\"code-snippet__string\" style=\"box-sizing: border-box;\">\"survival:cox\"<\/span>,<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; eval_metric = <span class=\"code-snippet__string\" style=\"box-sizing: border-box;\">\"cox-nloglik\"<\/span>,<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; max_depth = <span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">5<\/span>,<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; eta = <span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">0.01<\/span>,<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class=\"code-snippet__built_in\" style=\"box-sizing: border-box;\">gamma<\/span> = <span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">0<\/span>, <\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; subsample = <span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">0.8<\/span>,<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; colsample_bytree = <span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">0.8<\/span>, <\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; min_child_weight = <span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">2<\/span>,<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lambda=<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">1<\/span>,<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alpha=<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">0<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"font-size: 11px;line-height: 1.8;padding: 0px 10px;box-sizing: border-box;\">\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><span style=\"font-size: 15px;box-sizing: border-box;\">\u770b\u4e00\u4e0b\u6570\u636e\u7684\u6837\u5b50<\/span><\/p>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;box-sizing: border-box;\">\n<section style=\"max-width: 100%;vertical-align: middle;display: inline-block;line-height: 0;box-sizing: border-box;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.26871657754010697\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/1_8Fic94ZKUf6xXfib8m4QPicGmTncAA.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/mmbiz_png\/YHGRXkSxjSSAgKTQ2bRdsFic0NAAoHch0uriacFKSZr6iaSYptSkPR3zibiaB62ia8Fic94ZKUf6xXfib8m4QPicGmTncAA\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"748\" style=\"vertical-align: middle;max-width: 100%;width: 100%;box-sizing: border-box;\"  data-recalc-dims=\"1\" \/><\/section>\n<\/section>\n<section style=\"font-size: 12px;line-height: 0;padding: 0px;box-sizing: border-box;\">\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"  \/><\/p>\n<\/section>\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<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__comment\" style=\"box-sizing: border-box;\">#\u7136\u540e\u5c31\u53ef\u4ee5\u5f00\u59cb\u8fed\u4ee3\u5566\uff01<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__comment\" style=\"box-sizing: border-box;\">#\u5728\u6df1\u5ea6\u548c\u5b50\u8282\u70b9\u7684\u8303\u56f4\u5185\u8fed\u4ee3<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__keyword\" style=\"box-sizing: border-box;\">for<\/span> (a <span class=\"code-snippet__keyword\" style=\"box-sizing: border-box;\">in<\/span> max_depth.){<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp;<span class=\"code-snippet__keyword\" style=\"box-sizing: border-box;\">for<\/span> (b <span class=\"code-snippet__keyword\" style=\"box-sizing: border-box;\">in<\/span> min_child_weight.){<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp;print(<span class=\"code-snippet__string\" style=\"box-sizing: border-box;\">\"max_depth, min_child_weight\"<\/span>)<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp;print(a)<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp;print(b)<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__comment\" style=\"box-sizing: border-box;\">#\u5b9a\u4e49\u4e00\u4e2a\u53c2\u6570\u5217\u8868\uff0c\u4e00\u4f1a\u5c31\u62ff\u6765\u548c\u81ea\u5df1\u5b9a\u4e49\u7684\u6700\u4f18\u53c2\u6570\u5217\u8868\u6bd4\u8f83<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp;param &lt;- <span class=\"code-snippet__built_in\" style=\"box-sizing: border-box;\">list<\/span>(objective = <span class=\"code-snippet__string\" style=\"box-sizing: border-box;\">\"survival:cox\"<\/span>,<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;eval_metric = <span class=\"code-snippet__string\" style=\"box-sizing: border-box;\">\"cox-nloglik\"<\/span>,<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;max_depth = a,<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;eta = <span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">0.01<\/span>,<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"code-snippet__built_in\" style=\"box-sizing: border-box;\">gamma<\/span> = <span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">0<\/span>, <\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;subsample = <span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">0.8<\/span>,<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;colsample_bytree = <span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">0.8<\/span>, <\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;min_child_weight = b,<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lambda=<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">1<\/span>,<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;alpha=<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">0<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp;)<\/span><\/code><\/pre>\n<\/section>\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<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__comment\" style=\"box-sizing: border-box;\">#\u5b9a\u4e49\u4ea4\u53c9\u9a8c\u8bc1\u7684\u53c2\u6570<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp;cv.nround = <span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">5000<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp;cv.nfold = <span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">5<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__comment\" style=\"box-sizing: border-box;\">#\u8bbe\u7f6e\u4e00\u4e2a\u79cd\u5b50\u968f\u673a\u6570<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp;set.seed(seed.number)<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__comment\" style=\"box-sizing: border-box;\">#\u5f00\u59cb\u4ea4\u53c9\u9a8c\u8bc1\u5566\uff0c\u8fd9\u4e00\u6b65\u5c31\u662f\u6765\u6d4b\u8bd5\u53c2\u6570\u54e6\uff01<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp;mdcv &lt;- xgb.cv(data=Dtrain,<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; params = param,<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nthread=<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">10<\/span>, <\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nfold=cv.nfold, <\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nrounds=cv.nround,<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; watchlist,<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; verbose = <span class=\"code-snippet__built_in\" style=\"box-sizing: border-box;\">T<\/span>, <\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; early_stopping_rounds=<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">30<\/span>, <\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; maximize=<span class=\"code-snippet__literal\" style=\"box-sizing: border-box;\">FALSE<\/span> )<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp;<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp;<span class=\"code-snippet__keyword\" style=\"box-sizing: border-box;\">if<\/span>(<span class=\"code-snippet__string\" style=\"box-sizing: border-box;\">\"try-error\"<\/span> %in% <span class=\"code-snippet__built_in\" style=\"box-sizing: border-box;\">class<\/span>(mdcv))<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp;{<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"code-snippet__keyword\" style=\"box-sizing: border-box;\">next<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp;}<\/span><\/code><\/pre>\n<\/section>\n<section style=\"font-size: 12px;line-height: 0;padding: 0px;box-sizing: border-box;\">\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"  \/><\/p>\n<\/section>\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<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp;<span class=\"code-snippet__comment\" style=\"box-sizing: border-box;\">#\u5f00\u59cb\u5224\u65ad\u9608\u503c\u5e76\u4fdd\u7559\u8f83\u4f18\u7ed3\u679c<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp;min_loss = <span class=\"code-snippet__built_in\" style=\"box-sizing: border-box;\">min<\/span>(mdcv$evaluation_log[,<span class=\"code-snippet__string\" style=\"box-sizing: border-box;\">'test_cox_nloglik_mean'<\/span>])<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp;min_loss_index = which.min(<span class=\"code-snippet__built_in\" style=\"box-sizing: border-box;\">as.numeric<\/span>(unlist(mdcv$evaluation_log[,<span class=\"code-snippet__string\" style=\"box-sizing: border-box;\">'test_cox_nloglik_mean'<\/span>])))<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp;<span class=\"code-snippet__comment\" style=\"box-sizing: border-box;\">#\u4fdd\u5b58\u6700\u7ec8\u7684\u6700\u4f18\u7ed3\u679c<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp;<span class=\"code-snippet__keyword\" style=\"box-sizing: border-box;\">if<\/span> (min_loss &lt; best_loss) {<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp;best_loss = min_loss<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp;best_loss_index = min_loss_index<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp;best_param = param<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp;write.table(best_loss, file = <span class=\"code-snippet__string\" style=\"box-sizing: border-box;\">\"best_loss.txt\"<\/span>, append=<span class=\"code-snippet__built_in\" style=\"box-sizing: border-box;\">F<\/span>)<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp;write.table(best_loss_index, file = <span class=\"code-snippet__string\" style=\"box-sizing: border-box;\">\"best_loss_index.txt\"<\/span>, append=<span class=\"code-snippet__built_in\" style=\"box-sizing: border-box;\">F<\/span>)<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp;write.table(best_param, file = <span class=\"code-snippet__string\" style=\"box-sizing: border-box;\">\"best_param.txt\"<\/span>, append=<span class=\"code-snippet__built_in\" style=\"box-sizing: border-box;\">F<\/span>)<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp;}<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp;write.table(a,file=<span class=\"code-snippet__string\" style=\"box-sizing: border-box;\">'max_depth.txt'<\/span>,append=<span class=\"code-snippet__literal\" style=\"box-sizing: border-box;\">FALSE<\/span>)<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp;write.table(b,file=<span class=\"code-snippet__string\" style=\"box-sizing: border-box;\">'min_child_weight.txt'<\/span>,append=<span class=\"code-snippet__literal\" style=\"box-sizing: border-box;\">FALSE<\/span>)<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}}<\/span><\/code><\/pre>\n<\/section>\n<section style=\"font-size: 12px;line-height: 0;padding: 0px;box-sizing: border-box;\">\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"  \/><\/p>\n<\/section>\n<section style=\"font-size: 12px;line-height: 0;padding: 0px;box-sizing: border-box;\">\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"  \/><\/p>\n<\/section>\n<section style=\"font-size: 12px;line-height: 0;padding: 0px;box-sizing: border-box;\">\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><span style=\"font-size: 14px;box-sizing: border-box;\">\u5f00\u59cb\u4ea4\u53c9\u9a8c\u8bc1\uff0c\u8fd9\u4e00\u6b65\u65f6\u95f4\u6709\u70b9\u4e45\u54e6\uff01<\/span><\/p>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;box-sizing: border-box;\">\n<section style=\"max-width: 100%;vertical-align: middle;display: inline-block;line-height: 0;box-sizing: border-box;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.6055045871559633\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/2_mVY3jfDic3hsWjcicWia6zKdH97hrQ.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/mmbiz_png\/YHGRXkSxjSSAgKTQ2bRdsFic0NAAoHch0Sfv2W36OKjNibf73IYAa0yIez9VImVY3jfDic3hsWjcicWia6zKdH97hrQ\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"327\" style=\"vertical-align: middle;max-width: 100%;width: 100%;box-sizing: border-box;\"  data-recalc-dims=\"1\" \/><\/section>\n<\/section>\n<section style=\"font-size: 12px;line-height: 0;padding: 0px;box-sizing: border-box;\">\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"  \/><\/p>\n<\/section>\n<section style=\"font-size: 12px;line-height: 1.8;padding: 0px 10px;box-sizing: border-box;\">\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><span style=\"font-size: 14px;box-sizing: border-box;\">\u81f3\u6b64\uff0c\u6211\u4eec\u5c31\u5f97\u5230\u4e86\u6700\u4f18\u53c2\u6570<\/span><\/p>\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><span style=\"font-size: 14px;box-sizing: border-box;\">\u6765\u770b\u770b\u5927\u6d77\u54e5\u5f97\u5230\u7684\u6700\u4f18\u7ed3\u679c\u5427\uff01<\/span><\/p>\n<\/section>\n<section style=\"font-size: 12px;line-height: 0;padding: 0px;box-sizing: border-box;\">\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"  \/><\/p>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;box-sizing: border-box;\">\n<section style=\"max-width: 100%;vertical-align: middle;display: inline-block;line-height: 0;box-sizing: border-box;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"1.41875\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/3_pMpYT5LKzqSibN7S01SrrLnO6eFfyA.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/mmbiz_png\/YHGRXkSxjSSAgKTQ2bRdsFic0NAAoHch0zXib9gKtHnYibVhNCibJxVlUNXGKpMpYT5LKzqSibN7S01SrrLnO6eFfyA\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"320\" style=\"vertical-align: middle;max-width: 100%;width: 100%;box-sizing: border-box;\"  data-recalc-dims=\"1\" \/><\/section>\n<\/section>\n<section style=\"font-size: 12px;line-height: 0;padding: 0px;box-sizing: border-box;\">\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"  \/><\/p>\n<\/section>\n<section style=\"line-height: 1.8;padding: 0px 10px;box-sizing: border-box;\">\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\">\u518d\u770b\u4e00\u4e0b\u5177\u4f53\u90fd\u662f\u4ec0\u4e48\u7c7b\u578b\u7684\u5427<\/p>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;box-sizing: border-box;\">\n<section style=\"max-width: 100%;vertical-align: middle;display: inline-block;line-height: 0;box-sizing: border-box;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.44481054365733114\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/4_UuOibfch5NHFadWBpNM81HNtoYYCNw.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/mmbiz_png\/YHGRXkSxjSSAgKTQ2bRdsFic0NAAoHch0xW9FficqCfrUh4cVibicxI0FfdJwUuOibfch5NHFadWBpNM81HNtoYYCNw\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"607\" style=\"vertical-align: middle;max-width: 100%;width: 100%;box-sizing: border-box;\"  data-recalc-dims=\"1\" \/><\/section>\n<\/section>\n<section style=\"font-size: 12px;line-height: 0;padding: 0px;box-sizing: border-box;\">\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"  \/><\/p>\n<\/section>\n<section style=\"line-height: 1.8;padding: 0px 10px;box-sizing: border-box;\">\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\">\u7ec6\u5fc3\u7684\u5c0f\u4f19\u4f34\u53d1\u73b0\u4e86\uff0c\u600e\u4e48\u53ea\u662f\u6311\u9009\u4e86\u6700\u4f18\u7684\u4e24\u4e2a\u53c2\u6570\uff0c\u5176\u4ed6\u7684\u53c2\u6570\u5462\uff1f<\/p>\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\">\u662f\u7684\uff0c\u5176\u4ed6\u7684\u53c2\u6570\u4e5f\u9700\u8981\u6211\u4eec\u6765\u4e0d\u65ad\u8fed\u4ee3\u6d4b\u8bd5\uff0c\u65b9\u5f0f\u548c\u4e0a\u9762\u7684\u4e00\u6837\u54e6\uff01\u53ea\u9700\u8981\u4fee\u6539\u4e00\u4e0b\u53d8\u91cf\u5c31\u597d\u5566\uff01<\/p>\n<\/section>\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=\"r\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__comment\" style=\"box-sizing: border-box;\">#\u7136\u540e\u6211\u4eec\u5c31\u53ef\u4ee5\u4f7f\u7528\u6700\u4f18\u53c2\u6570\u6765\u6784\u5efa\u6a21\u578b\u5566<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">model_xgb &lt;- xgboost(data=Dtrain, params=best_param, nrounds=i, nthread=<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">10<\/span>)<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> &nbsp;result &lt;- <span class=\"code-snippet__built_in\" style=\"box-sizing: border-box;\">list<\/span>()<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__comment\" style=\"box-sizing: border-box;\">#\u8fd9\u91cc\u5c31\u8981\u9009\u62e9\u6d4b\u8bd5\u96c6\u4e86\uff0c\u5b9a\u4e49\u65b9\u5f0f\u548c\u8bad\u7ec3\u96c6\u4e00\u6837\u54e6\uff01<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">xgb_preds &lt;- predict(model_xgb, newdata = Dtest, type = <span class=\"code-snippet__string\" style=\"box-sizing: border-box;\">\"survival\"<\/span>)<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">result$pred = xgb_preds<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">pred_xgb &lt;- <span class=\"code-snippet__built_in\" style=\"box-sizing: border-box;\">as.numeric<\/span>(xgb_preds)<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">result$best_param = best_param<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">result$nround = nround<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">result$model = model_xgb<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__comment\" style=\"box-sizing: border-box;\">#\u6700\u540e\u53ef\u4ee5\u83b7\u53d6\u6211\u4eec\u7684C1\u6307\u6570\u5566\uff0c\u5927\u5bb6\u4e5f\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6\u65b9\u6cd5\u83b7\u53d6\u522b\u7684\u6307\u6807\u54e6\uff01<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">c1=survConcordance(Surv(ml$time, ml$status) ~ pred_xgb)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"font-size: 12px;line-height: 0;padding: 0px;box-sizing: border-box;\">\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><br  \/><\/p>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;box-sizing: border-box;\">\n<section style=\"max-width: 100%;vertical-align: middle;display: inline-block;line-height: 0;box-sizing: border-box;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.5646017699115045\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/5_LRTVZoICWzgAP4aZv1bCV4qDuNDTPw.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/mmbiz_png\/YHGRXkSxjSSAgKTQ2bRdsFic0NAAoHch0UJ4gA4JVBWiaXygp5tZib7tqfOLRTVZoICWzgAP4aZv1bCV4qDuNDTPw\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"565\" style=\"vertical-align: middle;max-width: 100%;width: 100%;box-sizing: border-box;\"  data-recalc-dims=\"1\" \/><\/section>\n<\/section>\n<section style=\"font-size: 12px;line-height: 0;padding: 0px;box-sizing: border-box;\">\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"  \/><\/p>\n<\/section>\n<section style=\"line-height: 1.8;padding: 0px 10px;box-sizing: border-box;\">\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\">\u7ed3\u679c\u4e0d\u9519\uff0c\u5927\u5bb6\u4e5f\u53ef\u4ee5\u8bd5\u8bd5\u770b\u54e6\uff01\u8bf4\u4e0d\u5b9a\u4f1a\u6709\u66f4\u597d\u7684\u7ed3\u679c\u54e6\uff01<\/p>\n<\/section>\n<section style=\"font-size: 12px;line-height: 0;padding: 0px;box-sizing: border-box;\">\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"  \/><\/p>\n<\/section>\n<section style=\"display: flex;flex-flow: row;margin: 10px 0% 20px;text-align: left;justify-content: flex-start;box-sizing: border-box;\">\n<section style=\"display: inline-block;vertical-align: top;width: auto;flex: 0 0 0%;height: auto;align-self: flex-start;line-height: 0;box-sizing: border-box;\">\n<section style=\"text-align: right;margin: 0px 0% -20px;box-sizing: border-box;\">\n<section style=\"display: inline-block;width: 8px;height: 20px;vertical-align: top;overflow: hidden;border-width: 0px;border-style: none;border-color: rgb(62, 62, 62);background-color: rgb(245, 241, 224);box-sizing: border-box;\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"><\/svg><\/section>\n<\/section>\n<section style=\"text-align: center;box-sizing: border-box;\">\n<section style=\"display: inline-block;width: 16px;height: 20px;vertical-align: top;overflow: hidden;border-width: 0px;border-radius: 21px 21px 0px 0px;border-style: none;border-color: rgb(62, 62, 62);background-color: rgb(231, 215, 173);box-sizing: border-box;\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"><\/svg><\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: top;width: auto;background-color: rgb(245, 241, 224);flex: 100 100 0%;align-self: flex-start;height: auto;border-right: 0px rgb(62, 62, 62);border-top-right-radius: 12px;overflow: hidden;box-shadow: rgb(231, 215, 173) 0px 6px 0px;box-sizing: border-box;\">\n<section style=\"margin: 20px 0% 30px;box-sizing: border-box;\">\n<section style=\"padding: 0px 10px;text-align: justify;line-height: 1.8;letter-spacing: 2px;box-sizing: border-box;\">\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\">\u7eb5\u89c8\u5168\u6587\uff0c\u53ef\u4ee5\u53d1\u73b0XGBoost\u7b97\u6cd5\u7684\u53c2\u6570\u975e\u5e38\u5168\u9762\uff0c\u540c\u65f6\u6027\u80fd\u4f18\u79c0\uff0c\u5728\u5404\u5927\u673a\u5668\u5b66\u4e60\u8bba\u575b\u4e2d\uff0cXGBoost\u4ee5\u5176\u5f3a\u5927\u7684\u9884\u6d4b\u6027\u80fd\u3001\u5bf9\u591a\u79cd\u95ee\u9898\u7684\u9002\u7528\u6027\u4ee5\u53ca\u5bf9\u7279\u5f81\u5de5\u7a0b\u548c\u6a21\u578b\u8c03\u4f18\u7684\u652f\u6301\u800c\u8131\u9896\u800c\u51fa\uff0c\u6210\u4e3a\u4e86\u673a\u5668\u5b66\u4e60\u9886\u57df\u4e2d\u5e7f\u6cdb\u4f7f\u7528\u7684\u7b97\u6cd5\u4e4b\u4e00\u3002\u5927\u5bb6\u5feb\u53bb\u52a8\u624b\u8bd5\u8bd5\u5427\uff01\uff08\u6700\u540e\u63a8\u8350\u4e00\u4e0b\u5927\u6d77\u54e5\u65b0\u5f00\u53d1\u7684\u96f6\u4ee3\u7801\u4e91\u751f\u4fe1\u5206\u6790\u5de5\u5177\u5e73\u53f0\u5305\u542b\u8d85\u591a\u96f6\u4ee3\u7801\u5c0f\u5de5\u5177\uff0c\u4e0a\u4f20\u6570\u636e\u4e00\u952e\u51fa\u56fe\uff0c\u611f\u5174\u8da3\u7684\u5c0f\u4f19\u4f34\u6b22\u8fce\u6765\u53c2\u89c2\u54df\uff0c\u7f51\u5740\uff1ahttp:\/\/www.biocloudservice.com\/home.html\uff09<\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"font-size: 11px;line-height: 0;padding: 0px;box-sizing: border-box;\">\n<p style=\"white-space: normal;margin: 0px;padding: 0px;box-sizing: border-box;\"><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=\"\" linktype=\"image\" imgurl=\"https:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/YHGRXkSxjSSYqN0u6bwwXzLCBdlX9BXOYJyjlsib6bQ74Wibtria9gSC4sqocafb5YBQcZWdQRrtP2Xo7vaFWaecA\/0?wx_fmt=jpeg\" imgdata=\"[object Object]\" tab=\"innerlink\" data-linktype=\"1\" rel=\"noopener\"><span class=\"js_jump_icon h5_image_link\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-ratio=\"0.35083798882681566\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/6_ocafb5YBQcZWdQRrtP2Xo7vaFWaecA-1.jpg?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/YHGRXkSxjSSYqN0u6bwwXzLCBdlX9BXOYJyjlsib6bQ74Wibtria9gSC4sqocafb5YBQcZWdQRrtP2Xo7vaFWaecA\/640?wx_fmt=jpeg'\" data-type=\"jpeg\" data-w=\"895\" style=\"\"  data-recalc-dims=\"1\" \/><\/span><\/a><br style=\"box-sizing: border-box;\"  \/><\/p>\n<\/section>\n<section style=\"border-bottom: 2px solid rgb(0, 150, 136);text-align: left;font-size: 12px;box-sizing: border-box;\">\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-ratio=\"0.3488888888888889\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/7_07T3ukOr5mxE6sbTMZvYNklUgT3oKg-1.jpg?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/YHGRXkSxjSSYqN0u6bwwXzLCBdlX9BXOYQlIrRTwqxXypnzYht7bhh3T07T3ukOr5mxE6sbTMZvYNklUgT3oKg\/640?wx_fmt=jpeg'\" data-type=\"jpeg\" data-w=\"900\" style=\"\"  data-recalc-dims=\"1\" \/><\/p>\n<p style=\"margin: 0px;padding: 0px;box-sizing: border-box;\"><br  \/><\/p>\n<p style=\"margin: 0px;padding: 0px;box-sizing: border-box;\">\u70b9\u51fb\u201c\u9605\u8bfb\u539f\u6587\u201d\u8fdb\u5165\u7f51\u5740<\/p>\n<\/section>\n<section style=\"margin-left: 8%;margin-right: 8%;line-height: 1.1em;box-sizing: border-box;\">\n<section style=\"width: 0px;display: inline-block;vertical-align: top;border-top: 1em solid rgb(0, 150, 136);border-left: 0.8em solid transparent !important;border-right: 0.8em solid transparent !important;box-sizing: border-box;\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"><\/svg><\/section>\n<\/section>\n<\/section>\n<p style=\"display: none;margin-bottom: 24px;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<div class=\"msg_source_url\"><a href=\"http:\/\/www.biocloudservice.com\/home.html\" target=\"_blank\" rel=\"noopener\">\u9605\u8bfb\u539f\u6587<\/a><\/div>\n<p><\/content><\/p>\n<div class=\"msg_source_url\"><a href=\"http:\/\/www.biocloudservice.com\/home.html\" 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>\u624b\u628a\u624b\u6559\u5b66\uff01XGBoost\u5982\u4f55\u8c03\u6574\u6700\u4f18\u53c2\u6570\u9884\u6d4b\u751f\u5b58\u671f \u5927\u6d77\u54e5&nbsp;&nbsp;\u751f\u4fe1\u679c&nbsp;&#038;nbs [&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\/56517"}],"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=56517"}],"version-history":[{"count":1,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/56517\/revisions"}],"predecessor-version":[{"id":56525,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/56517\/revisions\/56525"}],"wp:attachment":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=56517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=56517"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=56517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}