官术网_书友最值得收藏!

Introduction to NumPy, SciPy, Matplotlib, and TensorFlow

Before we can talk about concrete machine learning algorithms, we have to talk about how best to store the data we will chew through. This is important as the most advanced learning algorithm will not be of any help to us if it will never finish. This may be simply because the mere process of accessing the data is too slow, or maybe its representation forces the operating system to swap all day. Add to this the fact that Python is an interpreted language (a highly optimized one, though) that is slow for many numerically heavy algorithms compared to C or Fortran. So we might ask why on earth so many scientists and companies are betting their fortune on Python even in highly computation-intensive areas.

The answer is that, in Python, it is very easy to offload number crunching tasks to the lower layer in the form of C or Fortran extensions, and that is exactly what NumPy and SciPy do (see https://scipy.org). NumPy provides the support of highly optimized multidimensional arrays, which are the basic data structure of most state-of-the-art algorithms. SciPy uses those arrays to provide a set of fast numerical recipes. Matplotlib (http://matplotlib.org) is probably the most convenient and feature-rich library to plot high-quality graphs using Python. Finally, TensorFlow is one of the leading neural network packages for Python (we will explain what this package is about in a subsequent chapter).

主站蜘蛛池模板: 如东县| 大石桥市| 射阳县| 新平| 泰宁县| 东阿县| 荆州市| 和田市| 岐山县| 马龙县| 德庆县| 灵川县| 金沙县| 蒲江县| 鄂州市| 洞头县| 北宁市| 衡水市| 曲麻莱县| 宁河县| 佛坪县| 电白县| 于都县| 金湖县| 班玛县| 观塘区| 蓬安县| 长岭县| 乐昌市| 铜陵市| 历史| 江达县| 枣庄市| 贞丰县| 玛纳斯县| 永福县| 兰坪| 南京市| 阳新县| 万荣县| 图片|