机器学习是什么?我认为其实就是统计学的另一种花里胡哨/故弄玄虚的说法!tensorflow.js是一个机器学习的框架:
Develop ML with JavaScript, Use flexible and intuitive APIs to build and train models from scratch using the low-level JavaScript linear algebra library or the high-level layers API
https://js.tensorflow.org/
我们结合tensorflow.js与百度echarts做一个最小二乘法的经典案例,线性回归例子:
结果如下,回归曲线非常接近实际情况啦:
参考文献:
[1]Deqing L , Honghui M , Yi S ,et al. ECharts: A declarative framework for rapid construction of web-basedvisualization[J]. Visual Informatics, 2018:S2468502X18300068-.
领取专属 10元无门槛券
私享最新 技术干货