Teach Machines to Learn from Data
Machine Learning is a method where computers learn patterns from data and make predictions without being explicitly programmed.
Supervised Learning → Labeled data Unsupervised Learning → No labels Reinforcement Learning → Reward-based learning
1. Collect data 2. Clean data (Pandas) 3. Train model (Scikit-learn) 4. Evaluate model 5. Deploy model
X = [[1], [2], [3], [4]] y = [2, 4, 6, 8]
from sklearn.linear_model import LinearRegression model = LinearRegression() model.fit(X, y)
print(model.predict([[5]]))
Accuracy → classification MSE → regression Precision/Recall → advanced metrics
- Linear Regression - Logistic Regression - Decision Trees - KNN - SVM