Importing libraries in Python
What is a library? Library is a tool that is used to make specific jobs # Importing the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd Meaning of " import numpy as np" import is the import keyword numpy is the name of the library as np says: np is used as a shortcut for numpy numpy is a mathematical tool. Since ML is based on mathematics, this is a very useful and commonly used library. matplotlib.pyplot is a sub library of matplotlib library. The pyplot sub lib is used to plotting in Python. pandas is useful for import data set and manage data set. Above three libraries are commonly used in ML.

Comments
Post a Comment