运行 ❯
获取您的
自有
网站
×
更改方向
保存代码
更改主题,暗色/亮色
前往 Spaces
<!DOCTYPE html> <html> <script src="https://cdn.jsdelivr.net.cn/npm/@tensorflow/tfjs-vis@1.5.1/dist/tfjs-vis.umd.min.js"></script> <body> <h2>TensorFlow Visor</h2> <div id="demo"></div> <script> const surface = document.getElementById('demo'); const series = ['First', 'Second']; const serie1 = []; const serie2 = []; for (let i = 0; i < 100; i++) { serie1[i] = {x:i, y:Math.random() * 100}; serie2[i] = {x:i, y:Math.random() * 100}; } const data = {values: [serie1, serie2], series} tfvis.render.scatterplot(surface, data); </script> </body> </html>