Machine Learning

✅ Machine Learning (Scikit-Learn)

  • Supervised Learning (Regression, Classification)
  • Unsupervised Learning (Clustering)
  • Model evaluation and validation

Example:

from sklearn.linear_model import LinearRegression
import numpy as np

X = np.array([[1], [2], [3], [4]])
y = np.array([2, 4, 6, 8])

model = LinearRegression()
model.fit(X, y)
prediction = model.predict([[5]])
print(prediction)