Posts

Showing posts from January, 2026

Unit - II ML Python Libraries

  Python Libraries for Machine Learning  Introduction to Machine Learning Libraries Machine Learning (ML) is a field of Artificial Intelligence that enables computers to learn patterns from data and make predictions or decisions without being explicitly programmed. Python is the most popular language for ML because it has many powerful libraries. The most important ones are: NumPy – for numerical computing Pandas – for data handling and analysis Matplotlib – for data visualization Scikit-learn (sklearn) – for building ML models 1. NumPy (Numerical Python) What is NumPy? NumPy is a Python library used for working with arrays and numerical data . It is faster and more efficient than Python lists. NumPy is mainly used for: Mathematical operations Linear algebra Handling large datasets Importing NumPy import numpy as np Creating Array: array() An array is a collection of elements of the same type. import numpy as np arr = np.array([ ...