#10 Machine Learning Specialization [Course 1, Week 1, Lesson 3]
How Does Supervised Learning Work?
Introduction to Supervised Learning
- The video explores the process of supervised learning, detailing how algorithms input datasets and produce outputs.
- A training set in supervised learning consists of input features (e.g., size of a house) and output targets (e.g., price of the house).
Function Representation in Supervised Learning
- The function produced by the algorithm is denoted as f , which estimates or predicts values, represented as haty .
- In machine learning, y refers to the actual target value from the training set, while haty is an estimate that may not always match the true value.
Designing the Learning Algorithm
- A critical aspect of designing a learning algorithm is determining how to represent function f ; initially, it can be modeled as a straight line.
- The linear function can be expressed mathematically as f_W,B(x) = W cdot x + b , where W and B are parameters that influence predictions.
Visualizing Predictions with Linear Functions
- When plotted on a graph, input feature x is on the horizontal axis and output targets y on the vertical axis; this generates a best-fit line representing predictions.
- The choice of using linear functions simplifies calculations and serves as a foundation for more complex models later.
Understanding Linear Regression
- This model is specifically referred to as linear regression with one variable (univariate linear regression), focusing solely on one input feature (size of the house).
- Future discussions will include variations in regression that consider multiple features beyond just size, such as number of bedrooms.
Practical Application and Cost Function
- An optional lab accompanies this video for practical experience in defining straight-line functions in Python without needing to write code.
- Constructing a cost function is essential for effective machine learning; it plays a crucial role in both linear regression and advanced AI models.