如何从T-SNE或Umap中找到你想要的点?
生活随笔
收集整理的這篇文章主要介紹了
如何从T-SNE或Umap中找到你想要的点?
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.找到對應的json文件
2.打開網址
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: '經緯度', index: 2, text: '經緯度' },{ name: '基站index', index: 3, text: '基站index' }];option = {baseOption: {title: [{textAlign: 'center',left: '63%',top: '55%',textStyle: {fontSize: 100}},{text: '基站時間序列特征提取',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數據
5.在網頁上運行代碼
總結
以上是生活随笔為你收集整理的如何从T-SNE或Umap中找到你想要的点?的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 转载: WebKit介绍及总结(一)
- 下一篇: linux firefox源码修改主页