Lecture #2 - ML Basics Flashcards
Describe the differences between AI/ML/DL in your own words.
AI:
- Sims to create intelligent machines capable of performing tasks that typically require human intelligence.
- Focuses on developing systems that can exhibit intelligent behaviour and adapt to different stituations.
Machine Learning:
- Subset of AI; development of algo. and models that allow computers to learn and make predictions or decisions without being explicitly programmed.
Deep Learning:
- Specicialised subfield of MLthat utilises artificial neural networks inspired by the structure and functioning of the human brain.
- Learn hierarchial representations of data by building complex computational models called deep neural networks.
Describe the concept of a rule-based system
A machine learning approach that operates based on a set of predefined rules, typically created by human experts or domain knowledge.
Used to make decisions or predictions.
- Input
- Hand-designed program
- Output
Describe the concept of a hand-designed program.
A hand-designed program refers to a software program that is explicitly created and written by human programmers, specifying the precise steps and instructions to accomplish a particular task or solve a specific problem. In a hand-designed program, every aspect of the program’s behavior and functionality is carefully crafted and coded by human experts.
What’s the advantage of the rule-based system.
- Reply heavily on pre-defined rules and may struggle with handling complex or amiguous situations where the rules may not cover all possible scenarios.
Give an example of a rule-based system.
If the ambient temperature is larger than 31 degrees celsius then
If the relative humidity is larger than 65 degrees celsius then
Thunderstorms are likely.
Give the definition of classical ML in the lecture.
A computer program is said to learn from experience E with respect to some class of tasks T and performance measure P, if its performance at tasks in T, as measured by P, improves with experience E.
Talk about task T
- How should the ML system process an input/example?
We have experience from example.
- An example is a collection of features that have somehow been obtained.
- Represent the example as a vector x (which is an element of a real number), each entry x_i is a feature.
- n denotes the input dimensionality.
When talking about the task T, explain the classification tasks.
The task of classification involved assigning input data to predefined categories or classes.
e.g. classifying emails as spam or non-spam, or classifying images as containing cat or dogs.
- Specify to which class (out of k possible), x belongs to.
- Real number and there is 1 to k solutions.
When talking about the task T, explain the clustering tasks.
The goal is to find a suitable set of k classes that seperate input vectors belonging to the same or similar classes.
e..g quantizer codebook optimizaion, grouping words by similarity.
When talking about the task T, explain the regression tasks.
Regression tasks involve predicting a continuous numerical value based on input features.
- Predict a numerical value from x
e.g. estimation of position, channel estimation, house price estimation
What is the target function f
The target function f which should be implemented by the ML system is unkown.
The goal of the ML system is to learn an approximation of f hat = f from Experience E
Explain what the Experience E is.
ML algorithms experience a training dataset, i.e. a collection of examples
Explain the difference between unsupervised and supervised learning.
Supervised learning involves training a machine learning model using labeled data. Labeled data consists of input examples (features) and their corresponding correct output labels. The goal is to learn a mapping or relationship between the input features and the output labels, enabling the model to make accurate predictions or classifications on new, unseen data.
Unsupervised learning, on the other hand, deals with unlabeled data. The objective is to discover patterns, structures, or relationships within the data without the guidance of predefined output labels. The algorithm explores the inherent structure in the data to identify meaningful patterns or groupings.
Explain reinforcement learning
In reinforcement learning, the learning system is referred to as an “agent,” which interacts with an “environment.” The agent takes actions in the environment, and the environment responds by providing feedback in the form of rewards or penalties. The agent’s objective is to learn the optimal strategy or policy that maximizes the long-term cumulative reward.
Explain the Performance Measure P
The performance P measures quantitatively the performance of the ML algorithm.
- Classification: accuracy or error rate
- Regression: how well is the function approximated? MSE