- Machine Learning for OpenCV
- Michael Beyeler
- 160字
- 2021-07-02 19:47:18
Importing NumPy
Once you start a new IPython or Jupyter session, you can import the NumPy module and verify its version as follows:
In [1]: import numpy
In [2]: numpy.__version__
Out[2]: '1.11.3'
Recall that in the Jupyter Notebook you can hit Ctrl + Enter to execute a cell once you have typed the command. Alternatively, Shift + Enter executes the cell and automatically inserts or selects the cell below it. Check out all the keyboard shortcuts by clicking on Help > Keyboard Shortcut, or take a quick tour by clicking on Help > User Interface Tour.
For the pieces of the package discussed here, I would recommend using NumPy version 1.8 or later. By convention, you'll find that most people in the scientific Python world will import NumPy using np as an alias:
In [3]: import numpy as np
In [4]: np.__version__
Out[4]: '1.11.3'
Throughout this chapter, and the rest of the book, we will stick to the same convention.
推薦閱讀
- 從零構(gòu)建知識(shí)圖譜:技術(shù)、方法與案例
- 大學(xué)計(jì)算機(jī)應(yīng)用基礎(chǔ)實(shí)踐教程
- Mastering Entity Framework
- 技術(shù)領(lǐng)導(dǎo)力:程序員如何才能帶團(tuán)隊(duì)
- Getting Started with CreateJS
- PHP網(wǎng)絡(luò)編程學(xué)習(xí)筆記
- MATLAB實(shí)用教程
- FFmpeg入門(mén)詳解:音視頻原理及應(yīng)用
- 全棧自動(dòng)化測(cè)試實(shí)戰(zhàn):基于TestNG、HttpClient、Selenium和Appium
- 第一行代碼 C語(yǔ)言(視頻講解版)
- 微服務(wù)架構(gòu)深度解析:原理、實(shí)踐與進(jìn)階
- INSTANT Silverlight 5 Animation
- Clojure for Machine Learning
- Geospatial Development By Example with Python
- HikariCP數(shù)據(jù)庫(kù)連接池實(shí)戰(zhàn)