IT 3040
Machine Learning
AI - Human Intelligence exhibited by machine
Machine Learning - A method to achieve AI through algorithms that can learn from experience to find patterns in a set of data
Neural Networks - A subset of ML techniques inpired by bio systyms, Collectuons of connected units, organized iun layers
Deep learning - A subset of neural networks with more layers and connectuons. Examples include..
Generative AI - A collection of deep learning algorithms that can generate human like content
Overview
Machine Learning
A field of study that gives computers the ability to learn without beign explicity programmed.
Arthur Samuel (1959)
Question
IF the checkers program had been allowed to play only 10 games instead of 10s of thousands against it self, how would the performance be affectied?
It wouldve made it worse
Machine Learning Algorithms
Supervised Learning
Rapid advancements. Used in most real world applications
Have the data and the answer
Unsupervised Learning
Have the data but no answer
Recommender Systems
How reccomendations are made to you online based on history, what you bought, ect. Used in streaming, online shopping
Reinforcement learning
Will create a policy that allows the system to operate in some fashion. Think self driving cars. requires a testing enviorment
Practical Advice for applying learning systems
Supervised learning
Learns from being given the right answer
Applications include spam detection, speech to text. translations, online advertising
Regression - Predicts an infinite possibilitys
Unsuoervised Learning
Data only comes with input x, but not input y. Algorithim has to find structure in the data
Clustering: Group similar data points together
Dimensionality reductuon. Compress data
Supervised Learning
Elements of a machine learning Model
The model: Makes predictions
A cost function: The cost function provides a way to quantify how well the ML model is performing. (how accurate it is)
An optimizer algorithm: The optimizer is used to update the algorithm to reduce the error and improve performance
Terminology
Training Set: Data used to train the model
x = input var or feature
y = output var or target
m = total number of training examples
(x, y) = a single training example
(x^i, y^i) = the ith training example
x^(2) ≠ x²
Process
Training set → learning algorithim → function
features go into the model, and prediction is made (estimated y)
How do we represent f (function)?
With linear regression, F is going to be an equation
fwb(x) = wx +b
Cost Function
w, b: parameters, coefficients, weights
what do w, b do?
8/28/2025
Elements of Gradient Descent
Have a cost func
Want Min w,b j(w,b)
Outline
Start with some w, b
Kepp changing to reduce j(w, b)
Until we settle at or near a minimum