{"id":55262,"date":"2024-06-16T16:22:55","date_gmt":"2024-06-16T08:22:55","guid":{"rendered":"http:\/\/www.biocloudservice.com\/wordpress\/?p=55262"},"modified":"2024-06-16T16:22:55","modified_gmt":"2024-06-16T08:22:55","slug":"3%e5%88%86%e9%92%9f%e5%ad%a6%e4%bc%9at-sne%e9%99%8d%e7%bb%b4%ef%bc%81%e6%95%99%e4%bd%a0%e7%a7%92%e6%9d%80%e9%ab%98%e7%bb%b4%e7%94%9f%e7%89%a9%e6%95%b0%e6%8d%ae%ef%bc%81-2","status":"publish","type":"post","link":"http:\/\/www.biocloudservice.com\/wordpress\/?p=55262","title":{"rendered":"3\u5206\u949f\u5b66\u4f1at-SNE\u964d\u7ef4\uff01\u6559\u4f60\u79d2\u6740\u9ad8\u7ef4\u751f\u7269\u6570\u636e\uff01"},"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\":\"3\u5206\u949f\u5b66\u4f1at-SNE\u964d\u7ef4\uff01\u6559\u4f60\u79d2\u6740\u9ad8\u7ef4\u751f\u7269\u6570\u636e\uff01\",\"time\":\"2023-06-30 19:00:58\",\"timeStamp\":\"1688122858\"};\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=2247488893&#038;idx=2&#038;sn=2550eb19083201db651e9e60fdf9a485&#038;chksm=cf7c85b8f80b0caeea068cc636a86610132df7c9273bdbff340f15e00cc1b8f2af4b899c22f5#rd\" target=\"_blank\" rel=\"noopener\">3\u5206\u949f\u5b66\u4f1at-SNE\u964d\u7ef4\uff01\u6559\u4f60\u79d2\u6740\u9ad8\u7ef4\u751f\u7269\u6570\u636e\uff01<\/a><\/h1>\n<div id=\"meta_content\" class=\"rich_media_meta_list\"><span class=\"rich_media_meta rich_media_meta_text\">\u5c0f\u5e08\u59b9&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-06-30 19:00:58<\/em><\/div>\n<p><content><\/p>\n<div class=\"reprint\">\n<p>\u8f6c\u81ea\u516c\u4f17\u53f7\uff1aR\u8bed\u8a00\u5b66\u5f92<br \/><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=Mzg5MDk3Mzg4OA==&#038;mid=2247484257&#038;idx=1&#038;sn=8a3d51444e604b541f6cd133cbe2c639\" target=\"_blank\" title=\"\u9605\u8bfb\u539f\u6587\" rel=\"noopener\">http:\/\/mp.weixin.qq.com\/s?__biz=Mzg5MDk3Mzg4OA==&#038;mid=2247484257&#038;idx=1&#038;sn=8a3d51444e604b541f6cd133cbe2c639<\/a><\/p>\n<\/div>\n<section style=\"font-size: 16px;margin-bottom: 24px;\">\n<section style=\"text-align: left;justify-content: flex-start;display: flex;flex-flow: row nowrap;margin-top: 20px;margin-bottom: 25px;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: auto;vertical-align: top;align-self: flex-start;flex: 0 0 auto;min-width: 5%;height: auto;background-color: rgb(249, 172, 172);box-shadow: rgb(249, 172, 172) 0px 0px 5px 3px;\">\n<section style=\"text-align: center;transform: translate3d(2px, 0px, 0px);margin-top: -14px;margin-bottom: -14px;\" powered-by=\"xiumi.us\">\n<p>{ \u70b9\u51fb\u84dd\u5b57\uff0c\u5173\u6ce8\u6211\u4eec }<\/p>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"white-space: normal;\" powered-by=\"xiumi.us\"><strong><span style=\"color: rgb(95, 156, 239);\">t-SNE<\/span><\/strong>\uff08t-distributed stochastic neighbor embedding\uff09\u662f\u4e00\u79cd\u975e\u7ebf\u6027\u964d\u7ef4\u7b97\u6cd5\uff0c\u88ab\u5e7f\u6cdb\u7528\u4e8e\u9ad8\u7ef4\u6570\u636e\u53ef\u89c6\u5316\u3002\u5b83\u901a\u8fc7\u5c06\u9ad8\u7ef4\u6570\u636e\u6620\u5c04\u5230\u4f4e\u7ef4\u7a7a\u95f4\u4e2d\uff0c\u5e76\u5c3d\u53ef\u80fd\u5730\u4fdd\u7559\u539f\u59cb\u6570\u636e\u4e2d\u7684\u5c40\u90e8\u7ed3\u6784\u6765\u5b9e\u73b0\u8fd9\u4e00\u76ee\u6807\u3002<\/p>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.5574074074074075\" src=\"http:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/1_PWbibS7icuPXoicKO35ZxiaJXbv40g.png\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/oCSOtP61aEVf1VJJZOUxwO2pKGibibNzWN3FR6tiamfibAZiazI73BT7QSe1M12PLPWbibS7icuPXoicKO35ZxiaJXbv40g\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"1080\" style=\"vertical-align: middle;width: 100%;\"><\/section>\n<\/section>\n<section powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><span style=\"color: rgb(95, 156, 239);\"><strong>t-SNE\u7b97\u6cd5\u7684\u57fa\u672c\u601d\u60f3\u662f<\/strong><\/span>\uff0c\u5c06\u9ad8\u7ef4\u6570\u636e\u89c6\u4e3a\u5728\u9ad8\u7ef4\u7a7a\u95f4\u4e2d\u7684\u6982\u7387\u5206\u5e03\uff0c\u5e76\u5728\u4f4e\u7ef4\u7a7a\u95f4\u4e2d\u5bf9\u8fd9\u4e2a\u6982\u7387\u5206\u5e03\u8fdb\u884c\u91cd\u65b0\u5efa\u6a21\uff0c\u4ee5\u4f7f\u5f97\u5728\u4f4e\u7ef4\u7a7a\u95f4\u4e2d\u76f8\u4f3c\u7684\u6570\u636e\u70b9\u5728\u9ad8\u7ef4\u7a7a\u95f4\u4e2d\u4e5f\u66f4\u6709\u53ef\u80fd\u662f\u76f8\u4f3c\u7684\u3002t-SNE\u7b97\u6cd5\u4f7f\u7528\u968f\u673a\u68af\u5ea6\u4e0b\u964d\u6cd5\u6765\u6700\u5c0f\u5316\u9ad8\u7ef4\u7a7a\u95f4\u4e2d\u6570\u636e\u70b9\u4e4b\u95f4\u7684Kullback-Leibler\uff08KL\uff09\u6563\u5ea6\u548c\u4f4e\u7ef4\u7a7a\u95f4\u4e2d\u7684KL\u6563\u5ea6\u4e4b\u95f4\u7684\u5dee\u5f02\u3002<\/p>\n<p style=\"white-space: normal;\">\u5728R\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528Rtsne\u5305\u4e2d\u7684Rtsne()\u51fd\u6570\u6765\u8fd0\u884ct-SNE\u7b97\u6cd5\u3002\u8be5\u51fd\u6570\u7684\u53c2\u6570\u5305\u62ec\u9ad8\u7ef4\u6570\u636e\u77e9\u9635\u3001\u964d\u7ef4\u540e\u7684\u7ef4\u6570\u3001\u56f0\u60d1\u5ea6\u7b49\u3002Rtsne\u662f\u4e00\u4e2aR\u8bed\u8a00\u4e2d\u7684\u9ad8\u6027\u80fdt-SNE\u964d\u7ef4\u7b97\u6cd5\u5b9e\u73b0\uff0c\u5b83\u662f\u57fa\u4e8eBarnes-Hut-SNE\u7b97\u6cd5\u7684C++\u5b9e\u73b0\u5c01\u88c5\u7684\u3002Rtsne\u5305\u63d0\u4f9b\u4e86\u4e00\u79cd\u5feb\u901f\u4e14\u53ef\u6269\u5c55\u7684\u65b9\u6cd5\u6765\u5bf9\u9ad8\u7ef4\u6570\u636e\u8fdb\u884c\u964d\u7ef4\uff0c\u4ee5\u4fbf\u8fdb\u884c\u53ef\u89c6\u5316\u6216\u5176\u4ed6\u5206\u6790\u3002<\/p>\n<p style=\"white-space: normal;\">Rtsne\u5305\u63d0\u4f9b\u4e86\u4e00\u4e2a\u540d\u4e3aRtsne()\u7684\u4e3b\u8981\u51fd\u6570\uff0c\u5b83\u53ef\u4ee5\u4f7f\u7528\u9ed8\u8ba4\u8bbe\u7f6e\u6216\u7528\u6237\u5b9a\u4e49\u7684\u53c2\u6570\u8fd0\u884ct-SNE\u7b97\u6cd5\u3002\u8be5\u51fd\u6570\u7684\u53c2\u6570\u5305\u62ec\uff1a<\/p>\n<p style=\"white-space: normal;\"><strong>X\uff1a<\/strong>\u9ad8\u7ef4\u6570\u636e\u77e9\u9635\uff0c\u5fc5\u9009\u53c2\u6570\u3002<\/p>\n<p style=\"white-space: normal;\"><strong>dims\uff1a<\/strong>\u964d\u7ef4\u540e\u7684\u7ef4\u6570\uff0c\u9ed8\u8ba4\u4e3a2\u3002<\/p>\n<p style=\"white-space: normal;\"><strong>initial_dims\uff1a<\/strong>\u5728\u8fd0\u884cPCA\u4e4b\u524d\u4fdd\u7559\u7684\u521d\u59cb\u7ef4\u6570\uff0c\u9ed8\u8ba4\u4e3a50\u3002<\/p>\n<p style=\"white-space: normal;\"><strong>perplexity\uff1a<\/strong>\u56f0\u60d1\u5ea6\u53c2\u6570\uff0c\u7528\u4e8e\u63a7\u5236\u6bcf\u4e2a\u6570\u636e\u70b9\u5468\u56f4\u7684\u90bb\u5c45\u6570\u91cf\uff0c\u9ed8\u8ba4\u4e3a30\u3002<\/p>\n<p style=\"white-space: normal;\"><strong>theta\uff1a<\/strong>\u63a7\u5236Barnes-Hut\u8fd1\u4f3c\u7684\u7cbe\u5ea6\uff0c\u9ed8\u8ba4\u4e3a0.5\u3002<\/p>\n<p style=\"white-space: normal;\"><strong>max_iter\uff1a<\/strong>\u6700\u5927\u8fed\u4ee3\u6b21\u6570\uff0c\u9ed8\u8ba4\u4e3a1000\u3002<\/p>\n<p style=\"white-space: normal;\"><strong>verbose\uff1a<\/strong>\u662f\u5426\u663e\u793a\u8be6\u7ec6\u8f93\u51fa\u4fe1\u606f\uff0c\u9ed8\u8ba4\u4e3aFALSE\u3002<\/p>\n<p style=\"white-space: normal;\">Rtsne\u5305\u8fd8\u63d0\u4f9b\u4e86\u5176\u4ed6\u4e00\u4e9b\u51fd\u6570\uff0c\u4f8b\u5982tsne_pca()\u51fd\u6570\u53ef\u4ee5\u5728\u8fd0\u884ct-SNE\u4e4b\u524d\u4f7f\u7528PCA\u5bf9\u6570\u636e\u8fdb\u884c\u964d\u7ef4\uff0c\u4ee5\u63d0\u9ad8\u7b97\u6cd5\u7684\u6548\u7387\uff1btsne_fit()\u51fd\u6570\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528t-SNE\u7b97\u6cd5\u5bf9\u6570\u636e\u8fdb\u884c\u62df\u5408\uff0c\u800c\u4e0d\u4f7f\u7528PCA\u8fdb\u884c\u9884\u5904\u7406\u3002<\/p>\n<p style=\"white-space: normal;\"><strong><span style=\"color: rgb(95, 156, 239);\">\u63a5\u4e0b\u6765\u5c31\u8ba9\u5c0f\u5e08\u59b9\u4ee5\u4e73\u817a\u764c\u60a3\u8005\u6d3b\u68c0\u6570\u636e\u96c6\u4e3a\u4f8b\u624b\u628a\u624b\u5e26\u4f60\u5b66\u4f1at-SNE\u964d\u7ef4\u5427\uff01<\/span><\/strong><\/p>\n<p style=\"white-space: normal;\">\u4e73\u817a\u764c\u6570\u636e\u5e93\u5305\u542b\u4e86\u52301992\u5e747\u670815\u65e5\u4e3a\u6b62699\u540d\u75c5\u4eba\u7684\u4e73\u817a\u80bf\u7624\u6d3b\u7ec4\u7ec7\u68c0\u67e5;\u4e5d\u4e2a\u5c5e\u6027\u4e2d\u7684\u6bcf\u4e00\u4e2a\u90fd\u4ee51\u523010\u7684\u7b49\u7ea7\u8fdb\u884c\u8bc4\u5206\uff0c\u7ed3\u679c\u4e5f\u662f\u5df2\u77e5\u7684\u3002\u5b83\u6709699\u884c11\u5217\u3002\u8be5\u6570\u636e\u6846\u5305\u542b\u4ee5\u4e0b\u51e0\u5217:ID\u6837\u672c\u4ee3\u7801\u7f16\u53f7(\u975e\u552f\u4e00)\uff0cV1\u56e2\u5757\u539a\u5ea6\uff0cV2\u7ec6\u80de\u5927\u5c0f\u5747\u5300\u6027\uff0cV3\u7ec6\u80de\u5f62\u72b6\u5747\u5300\u6027\uff0cV4\u8fb9\u7f18\u9644\u7740\uff0cV5\u5355\u4e2a\u4e0a\u76ae\u7ec6\u80de\u5927\u5c0f\uff0cV6\u88f8\u6838(\u7f3a\u593116\u4e2a\u503c)\uff0cV7\u6de1\u8272\u67d3\u8272\u8d28\uff0cV8\u6b63\u5e38\u6838\u4ec1\uff0cV9\u6709\u4e1d\u5206\u88c2\uff0c\u201c\u826f\u6027\u201d\u6216\u201c\u6076\u6027\u201d\u7c7b\u522b\u3002<\/p>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.6222222222222222\" src=\"\u56fe\u7247\/\u751f\u4fe1\u679c_2023-06-30_\u300c\u8f6c\u300d3\u5206\u949f\u5b66\u4f1at-SNE\u964d\u7ef4\uff01\u6559\u4f60\u79d2\u6740\u9ad8\u7ef4\u751f\u7269\u6570\u636e\uff01\/2_TsicXwHsMFB3m117cvnRnOPeuaJ0Hw.png\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/oCSOtP61aEVf1VJJZOUxwO2pKGibibNzWNQUSdNiblVvP4cNeRR3YicxDlP6NTsicXwHsMFB3m117cvnRnOPeuaJ0Hw\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"1080\" style=\"vertical-align: middle;width: 100%;\"><\/section>\n<\/section>\n<p style=\"white-space: normal;\" powered-by=\"xiumi.us\">\u9996\u5148\u9700\u8981\u5bfc\u5165\u6570\u636e\u548c\u4f1a\u4f7f\u7528\u5230\u7684\u5305<\/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=\"r\"><code><span class=\"code-snippet_outer\">library(Rtsne)<\/span><\/code><code><span class=\"code-snippet_outer\">library(MASS)<\/span><\/code><code><span class=\"code-snippet_outer\">library(ggplot2)<\/span><\/code><code><span class=\"code-snippet_outer\">data(biopsy)<\/span><\/code><code><span class=\"code-snippet_outer\">biopsy_matrix &lt;- as.matrix(biopsy)<\/span><\/code><\/pre>\n<\/section>\n<p style=\"white-space: normal;\" powered-by=\"xiumi.us\">\u63a5\u4e0b\u6765\u8fdb\u884c\u6570\u636e\u9884\u5904\u7406\uff0c\u5220\u9664\u6709\u7f3a\u5931\u503c\u7684\u884c\u4ee5\u53ca\u91cd\u590d\u884c\u3002<\/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<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\">set.seed(<span class=\"code-snippet__number\">123<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\">v&lt;-biopsy_matrix[, <span class=\"code-snippet__number\">2<\/span>:<span class=\"code-snippet__number\">11<\/span>]<\/span><\/code><code><span class=\"code-snippet_outer\">v[,<span class=\"code-snippet__number\">1<\/span>:<span class=\"code-snippet__number\">9<\/span>]&lt;-apply(v[,<span class=\"code-snippet__number\">1<\/span>:<span class=\"code-snippet__number\">9<\/span>], <span class=\"code-snippet__number\">2<\/span>, <span class=\"code-snippet__built_in\">as.numeric<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\">v &lt;- v[complete.cases(v), ]<\/span><\/code><code><span class=\"code-snippet_outer\">duplicated_rows &lt;- duplicated(v[,<span class=\"code-snippet__number\">1<\/span>:<span class=\"code-snippet__number\">9<\/span>])<\/span><\/code><code><span class=\"code-snippet_outer\">duplicate_indices &lt;- which(duplicated_rows)<\/span><\/code><code><span class=\"code-snippet_outer\">v &lt;- v[-duplicate_indices, ]<\/span><\/code><code><span class=\"code-snippet_outer\">v &lt;- v[complete.cases(v), ]<\/span><\/code><code><span class=\"code-snippet_outer\">v1=v[,<span class=\"code-snippet__number\">1<\/span>:<span class=\"code-snippet__number\">9<\/span>]<\/span><\/code><code><span class=\"code-snippet_outer\">v1&lt;-apply(v1, <span class=\"code-snippet__number\">2<\/span>, <span class=\"code-snippet__built_in\">as.numeric<\/span>)<\/span><\/code><\/pre>\n<\/section>\n<section powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\">\u5904\u7406\u540e\u5f97\u5230\u7684\u77e9\u9635v1\u5305\u542b\u7279\u5f811-9\uff0c\u4e0d\u5305\u542b\u6837\u672cID\u3001\u5206\u7c7b\u7ed3\u679c\u3002<br  \/><\/p>\n<p style=\"white-space: normal;\">\u4f7f\u7528Rtsne\u8fdb\u884ct-SNE\u964d\u7ef4<\/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<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\">tsne &lt;- Rtsne(v1,pca = <span class=\"code-snippet__literal\">TRUE<\/span>, perplexity = <span class=\"code-snippet__number\">10<\/span>, theta = <span class=\"code-snippet__number\">0<\/span>)<\/span><\/code><\/pre>\n<\/section>\n<p style=\"white-space: normal;\" powered-by=\"xiumi.us\">\u63a5\u4e0b\u6765\u5c31\u53ef\u4ee5\u5b9e\u7528ggplot\u5bf9\u964d\u7ef4\u540e\u7684\u6570\u636e\u8fdb\u884c\u53ef\u89c6\u5316\u5566<\/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=\"r\"><code><span class=\"code-snippet_outer\">res &lt;- as.data.frame(tsne$Y)<\/span><\/code><code><span class=\"code-snippet_outer\">res$Class =v[,<span class=\"code-snippet__number\">10<\/span>]<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__built_in\">length<\/span>(unique(res$Class))<\/span><\/code><code><span class=\"code-snippet_outer\">ggplot(res, aes(x = V1, y = V2, color = Class)) + geom_point(size = <span class=\"code-snippet__number\">1.25<\/span>) + labs(title = <span class=\"code-snippet__string\">\"t-SNE\"<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">x = <span class=\"code-snippet__string\">\"TSNE1\"<\/span>, y = <span class=\"code-snippet__string\">\"TSNE2\"<\/span>) + theme(plot.title = element_text(hjust = <span class=\"code-snippet__number\">0.5<\/span>)) + theme_bw()<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.6083333333333333\" src=\"http:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/3_Dmrjmnlviae4ib4WjmN159Kf8UW4jA.png\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/oCSOtP61aEVf1VJJZOUxwO2pKGibibNzWN6ib5HrN3k6Ric5VjCX4tduuZlXCiaDmrjmnlviae4ib4WjmN159Kf8UW4jA\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"1080\" style=\"vertical-align: middle;width: 100%;\"  \/><\/section>\n<\/section>\n<section powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\">\u5982\u56fe\u6240\u793a\uff0c\u964d\u7ef4\u540e\u7684\u6570\u636e\u5206\u7c7b\u7ed3\u679c\u975e\u5e38\u4e0d\u9519\uff0c\u57fa\u672c\u4e0a\u80fd\u628a\u826f\u6027\u548c\u6076\u6027\u533a\u5206\u5f00\u3002<\/p>\n<p style=\"white-space: normal;\">t-SNE\u7b97\u6cd5\u662f\u4e00\u79cd\u975e\u7ebf\u6027\u964d\u7ef4\u7b97\u6cd5\uff0c\u53ef\u7528\u4e8e\u9ad8\u7ef4\u6570\u636e\u7684\u53ef\u89c6\u5316\u548c\u5176\u4ed6\u5206\u6790\u3002\u5728R\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528Rtsne\u5305\u6765\u8fd0\u884ct-SNE\u7b97\u6cd5\uff0c\u8be5\u5305\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5feb\u901f\u3001\u53ef\u6269\u5c55\u548c\u6613\u4e8e\u4f7f\u7528\u7684\u65b9\u6cd5\u6765\u5bf9\u9ad8\u7ef4\u6570\u636e\u8fdb\u884c\u964d\u7ef4\uff0c\u4ee5\u4fbf\u8fdb\u884c\u53ef\u89c6\u5316\u6216\u5176\u4ed6\u5206\u6790\u3002\u672c\u6587\u901a\u8fc7\u4e73\u817a\u764c\u60a3\u8005\u6d3b\u68c0\u6570\u636e\u96c6\u7684\u5b9e\u4f8b\u6f14\u793a\u4e86\u5982\u4f55\u4f7f\u7528Rtsne\u5305\u8fdb\u884ct-SNE\u964d\u7ef4\uff0c\u5e76\u901a\u8fc7ggplot\u5bf9\u964d\u7ef4\u540e\u7684\u6570\u636e\u8fdb\u884c\u53ef\u89c6\u5316\uff0c\u5c55\u793a\u4e86t-SNE\u7b97\u6cd5\u5728\u6570\u636e\u5206\u7c7b\u65b9\u9762\u7684\u826f\u597d\u8868\u73b0\u3002<\/p>\n<p style=\"white-space: normal;\">\u8fd9\u5c31\u662f\u5c0f\u5e08\u59b9\u4eca\u5929\u5e26\u6765\u7684\u964d\u7ef4\u65b0\u65b9\u6cd5\uff5e\u4f60\u5b66\u4f1a\u4e86\u5417\uff1f<\/p>\n<p style=\"white-space: normal;\">\u66f4\u591a\u5b9e\u7528\u65b9\u4fbf\u7684\u5c0f\u5de5\u5177\u5728\u4e91\u751f\u4fe1\u5e73\u53f0\u7b49\u7740\u4f60\u54e6<\/p>\n<p style=\"white-space: normal;\"><strong>http:\/\/www.biocloudservice.com\/home.htm<\/strong><\/p>\n<\/section>\n<\/section>\n<section style=\"letter-spacing: 0.578px;white-space: normal;font-size: 16px;margin-bottom: 24px;\">\n<section powered-by=\"xiumi.us\" style=\"margin-top: 10px;margin-bottom: 10px;text-align: center;justify-content: center;display: flex;flex-flow: row nowrap;\">\n<section style=\"margin-right: 10px;display: inline-block;vertical-align: middle;width: auto;flex: 100 100 0%;height: auto;align-self: center;\">\n<section powered-by=\"xiumi.us\" style=\"margin-top: 10px;margin-bottom: 10px;\">\n<section style=\"background-color: rgb(249, 172, 172);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>\n<section style=\"margin-right: 10px;padding-right: 8px;padding-left: 8px;display: inline-block;vertical-align: middle;width: auto;align-self: center;flex: 0 0 auto;min-width: 5%;height: auto;border-style: solid;border-width: 1px;border-color: rgb(249, 172, 172);\">\n<section powered-by=\"xiumi.us\" style=\"text-align: justify;color: rgb(249, 172, 172);\">\n<p>E<\/p>\n<\/section>\n<\/section>\n<section style=\"margin-right: 10px;padding-right: 8px;padding-left: 8px;display: inline-block;vertical-align: middle;width: auto;align-self: center;flex: 0 0 auto;min-width: 5%;height: auto;border-style: solid;border-width: 1px;border-color: rgb(249, 172, 172);\">\n<section powered-by=\"xiumi.us\" style=\"text-align: justify;color: rgb(249, 172, 172);\">\n<p>N<\/p>\n<\/section>\n<\/section>\n<section style=\"margin-right: 10px;padding-right: 8px;padding-left: 8px;display: inline-block;vertical-align: middle;width: auto;align-self: center;flex: 0 0 auto;min-width: 5%;height: auto;border-style: solid;border-width: 1px;border-color: rgb(249, 172, 172);\">\n<section powered-by=\"xiumi.us\" style=\"text-align: justify;color: rgb(249, 172, 172);\">\n<p>D<\/p>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: middle;width: auto;align-self: center;flex: 100 100 0%;height: auto;\">\n<section powered-by=\"xiumi.us\" style=\"margin-top: 10px;margin-bottom: 10px;\">\n<section style=\"background-color: rgb(249, 172, 172);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>\n<\/section>\n<\/section>\n<p style=\"letter-spacing: 0.578px;white-space: normal;text-align: center;margin-bottom: 24px;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-ratio=\"0.5555555555555556\" data-s=\"300,640\" src=\"\u56fe\u7247\/\u751f\u4fe1\u679c_2023-06-30_\u300c\u8f6c\u300d3\u5206\u949f\u5b66\u4f1at-SNE\u964d\u7ef4\uff01\u6559\u4f60\u79d2\u6740\u9ad8\u7ef4\u751f\u7269\u6570\u636e\uff01\/4_icWAmgGMVEzREAJmM59ov44ziaMCGg.jpg\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_jpg\/oCSOtP61aEWjRWAeR9wicY9JyrK13cNBaR2PPYHOsBTrS4rJOUOnJCEIxt1icWAmgGMVEzREAJmM59ov44ziaMCGg\/640?wx_fmt=jpeg'\" data-type=\"jpeg\" data-w=\"900\"  \/><\/p>\n<p style=\"margin-bottom: 24px;\"><br  \/><\/p>\n<p style=\"display: none;margin-bottom: 24px;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<p><\/content>\n<\/div>\n<p><\/body><br \/>\n<\/html><\/p>\n","protected":false},"excerpt":{"rendered":"<p>3\u5206\u949f\u5b66\u4f1at-SNE\u964d\u7ef4\uff01\u6559\u4f60\u79d2\u6740\u9ad8\u7ef4\u751f\u7269\u6570\u636e\uff01 \u5c0f\u5e08\u59b9&nbsp;&nbsp;\u751f\u4fe1\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\/55262"}],"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=55262"}],"version-history":[{"count":1,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/55262\/revisions"}],"predecessor-version":[{"id":55269,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/55262\/revisions\/55269"}],"wp:attachment":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=55262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=55262"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=55262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}