日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

如何从T-SNE或Umap中找到你想要的点?

發(fā)布時(shí)間:2023/12/20 编程问答 44 豆豆
生活随笔 收集整理的這篇文章主要介紹了 如何从T-SNE或Umap中找到你想要的点? 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

1.找到對(duì)應(yīng)的json文件

2.打開網(wǎng)址

Examples - Apache ECharts

3.輸入代碼

$.get(ROOT_PATH + '/data/asset/data/life-expectancy.json', function (data) {var itemStyle = {opacity: 0.8};// Schema:var schema = [{ name: 'x', index: 0, text: '圖中位置x' },{ name: 'y', index: 1, text: '圖中位置y' },{ name: '經(jīng)緯度', index: 2, text: '經(jīng)緯度' },{ name: '基站index', index: 3, text: '基站index' }];option = {baseOption: {title: [{textAlign: 'center',left: '63%',top: '55%',textStyle: {fontSize: 100}},{text: '基站時(shí)間序列特征提取',left: 'center',top: 10,textStyle: {fontWeight: 'normal',fontSize: 20}}],tooltip: {padding: 5,borderWidth: 1,formatter: function (obj) {var value = obj.value;// prettier-ignorereturn schema[3].text + ':' + value[3] + '<br>'+ schema[1].text + ':' + value[1] + '<br>'+ schema[0].text + ':' + value[0] + '<br>'+ schema[2].text + ':' + value[2] + '<br>';}},grid: {top: 100,containLabel: true,left: 30,right: '110'},xAxis: {type: 'log',name: '人均收入',max: 100000,min: 300,nameGap: 25,nameLocation: 'middle',nameTextStyle: {fontSize: 18},splitLine: {show: false},axisLabel: {formatter: '{value} $'}},yAxis: {type: 'value',name: '平均壽命',max: 100,nameTextStyle: {fontSize: 18},splitLine: {show: false},axisLabel: {formatter: '{value} 歲'}},series: [{type: 'scatter',itemStyle: itemStyle,data: data.series[0],}],},options: []};for (var n = 0; n < data.timeline.length; n++) {option.options.push({series: {name: data.timeline[n],type: 'scatter',itemStyle: itemStyle,data: data.series[n],}});}myChart.setOption(option); });

4.打開json文件,替換掉代碼中的data數(shù)據(jù)

5.在網(wǎng)頁上運(yùn)行代碼

總結(jié)

以上是生活随笔為你收集整理的如何从T-SNE或Umap中找到你想要的点?的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。