Machine Learning Notes From AWS
Machine Learning Notes From AWS
Machine Learning Notes From AWS
Summary
-
- e.g., If you write a program to see if a cat is in a image, the traditional way would require
attention to detail such as;
o lighting conditions
o types of cats
o various poses
- In ML, the problem solver abstracts away part of their solution as a flexible component called a
model
- They use a program called a model training algorithm to adjust that model to real word data
- The result if a trained model that can be used to predict outcomes that are not part of the
dataset used to train it.
- Therefore, ML automates the statistical reasoning and pattern-matching the problem solver
would traditionally do and save a lot of time and effort
-
- This is a new field created at the intersection of statistics, applied math, and computer science.
- These fields, have slightly different formal definitions of the same terms
Terminology
- Machine Learning: Modern software development technique that enables computers to solve
problems by using examples of real-world data
- Supervised learning: Every training sample from the dataset has a corresponding label or output
value associated with it. Therefore, the algorithm learns to predict labels or output values.
- Unsupervised Learning: no labels for the training data. A machine learning algorithm tries to
learn the underlying patterns or distributions that govern the data.
- Reinforcement Learning: Algorithm figures which actions to take in a situation to maximize a
reward on the way to reaching a specific goal.
Components of ML
Examples
- Imagine you own a snow cone cart, and you have some data about the average number of snow
cones sold per day based on the high temperature. You want to better understand this
relationship to make sure you have enough inventory on hand for those high sales days.
- In the graph above, you can see one example of a model, a linear regression model (indicated by
the solid line). You can see that, based on the data provided, the model predicts that as the high
temperate for the day increases so do the average number of snow cones sold. Sweet!
-
- Let's look at a different example that uses the same linear regression model, but with different
data and to answer completely different questions.
- Imagine that you work in higher education, and you want to better understand the relationship
between the cost of enrollment and the number of students attending college. In this example,
our model predicts that as the cost of tuition increases the number of people attending college
is likely to decrease.
- Using the same linear regression model (indicated by the solid line), you can see that the
number of people attending college does go down as the cost increases.
- Both examples showcase that a model is a generic program made specific by the data used to
train it.
Terminology
A model is an extremely generic program, made specific by the data used to train it.
Model training algorithms work through an interactive process where the current model iteration is
analyzed to determine what changes can be made to get closer to the goal. Those changes are made and
the iteration continues until the model is evaluated to meet the goals.
These steps are iterative. In practice, that means that at each step along the process,
you review how the process is going. Are things operating as you expected? If not,
go back and revisit your current step or previous steps to try and identify the
breakdown.
Supervised learning
Unsupervised learning