- 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.
推薦閱讀
- Vue.js 3.x快速入門
- Instant Testing with CasperJS
- 數(shù)據(jù)結(jié)構(gòu)和算法基礎(chǔ)(Java語言實現(xiàn))
- Game Programming Using Qt Beginner's Guide
- Python爬蟲開發(fā)與項目實戰(zhàn)
- Wireshark Network Security
- R語言編程指南
- STM32F0實戰(zhàn):基于HAL庫開發(fā)
- Web Development with MongoDB and Node(Third Edition)
- Android應(yīng)用案例開發(fā)大全(第二版)
- Java Web開發(fā)就該這樣學(xué)
- UNIX Linux程序設(shè)計教程
- 深度學(xué)習(xí)原理與PyTorch實戰(zhàn)(第2版)
- Python:Deeper Insights into Machine Learning
- Java 9 Programming By Example