04 - machine learning basics

y^=f(x;θ)

where, x is the input, y is the actual output, y^ is the prediction, and θ are model parameters

feaures

  • input variables used by a model to make a prediction

labels

  • the fi anal output or target values that the model tries to learn and predict

x=(x1,x2,,xn)

regression and classification

learning

y^=f(x;θ) L=(yy^) y^=w1x1+w2x2+w3x3+b θ=(w1,w2,w3,b) θ=(w1,w2,,w109)

parameters and hyperparameters

model = RandomForestClassifier(
	n_estimators=200, 
	max_depth=10
)

model.fit(X_train, y_train)

supervised and unsupervised learning

overfitting