scikit tutorial
1. What is scikit-learn? scikit-learn is a popular Python library for Machine Learning . It gives you ready-made tools for: Classification (spam vs not-spam) Regression (predicting house prices) Clustering (grouping customers) Dimensionality reduction (PCA) Model selection & evaluation Preprocessing (scaling, encoding, etc.) It’s built on top of NumPy , SciPy , and Matplotlib . 2. Install & Basic Setup Installation pip install scikit-learn In Google Colab , you usually already have it. If not: !pip install scikit-learn Basic Imports import numpy as np import pandas as pd from sklearn.model_selection import train_test_split from sklearn.metrics import accuracy_score 3. Core Concepts in scikit-learn If you understand these 4 things, you understand 80% of sklearn: X and y X → Features (inputs), usually 2D array: shape (n_samples, n_features) y → Target (output labels), 1D array: shape (n_samples,) Estimator API (fit / predict / transform) Models (like LinearRegression , Random...