Category: NumPy

  • Introduction to Numpy

    Introduction to Numpy

    Introduction to NumPy Machine Learning Zoomcamp¶ 1.7 Introduction to NumPy¶ Plan: Creating arrays Multi-dimentional array Randomly generated arrays Element-wise operations Comparison operations Logical operations Summarizing operations In [5]: import numpy as np In [6]: np Out[6]: <module 'numpy' from '/home/don/miniconda3/lib/python3.8/site-packages/numpy/__init__.py'> Creating arrays¶ In [8]: np.zeros(10) Out[8]: array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]) In [11]: np.ones(10)…