1/15
Looks like no tags are added yet.
machine learning
improving performance on a task over time through experience(data)
Training data vs. testing data
training data → learning alg adjusts model parameters → trained model
testing data →trained model →prediction/decision
Supervised vs. unsupervised learning?
Supervised: learns from labeled data
unsupervised: discovers patterns without labels
Supervised: classification vs. regression
classification predicts discrete categories
regression predicts continous numerical values
features: why combine multiple features
features are input attributes. combining informative features can improve class separation

ex. with salmon and bass
combine features using weighted sum where z=wixi
where xi is the feature value, wi is feature weight, and t=classificaiton threshold wixi>t
this creates a linear decision boundary
Objective function in ML
J(D, theta) measurs model performance and guides the search for better parameters, error metric using labeled data because we need to know whether the predictions are correct
accuracy is misleading
A model can predict the majority class and achieve high accuracy without learning meaningful patterns.
model parameters theta
with more featurse, the decision boundary becomes a plane or hyperplane. the goal is for the boundary to work well on data outside the training set. adjustable values learned during training that determine the model’s behavior or decision boundary.
sometimes no straight line can separate the 2 classes: the choice of model must be appropriate for the domain and data.

key assumption of ML
training and test data are drawn from the same or similar distributions
underfitting vs. overfitting

underfitting misses patterns
overfitting memorizes training examples instead of generalizing
basic ml algorithm framework
similar to searching through a state space

how to calculate the size of the instance space
multiply the number of values of each feature. for n boolean feature, there are 2^n instances
ex:

Instance vs. concept vs. hypthesis and their space sizes
Instance = feature assignment; 2^n
concept = subset of instances; 2^(2^n)
hypothesis = subset of concepts.2^(2^(2^n))
Inductive bias
prior assumptions that constrain the search space, making learning tractable and supporting generalization
Accuracy, precision, recall


inherent trade off between precision and recall: making a classifier more conservative about predicting positives can improve precision but reduce recall and vice versa
a metric to combine them is the F1 harmonic mean:

training, dev, and test sets?
train larns parameters, dev tunes the model, test evaluates final generalization for appropriate inductive bias to prevent overfitting because we want to build a model that performs well on previously unseen inputs