Ids Ashber
Ids Ashber
Activity 3
Ashber ur Rehman Khan
20211-30975
Q1: What do you know about machine learning?
Ans: Machine learning (ML) is a subfield of artificial intelligence (AI) that focuses on developing
algorithms and models that enable computers to learn from data and make predictions or decisions
without being explicitly programmed. The goal of machine learning is to create systems that can
automatically improve their performance on a specific task over time through experience.
Q2: What are the main differences between traditional and machine learning?
Ans: Traditional programming and machine learning represent two different approaches to solving
problems with computers. Here are the main differences between traditional programming and machine
learning:
rules and instructions for the computer to follow. The program's behavior is
determined by a set of predefined rules, and it processes input data based on these
rules.
Machine Learning: In machine learning, the program learns from data rather than
decisions.
2. Problem Solving:
rules. Developers have a good understanding of the problem and can specify the
that are difficult to express using explicit rules. Machine learning excels in tasks
3. Flexibility:
Machine Learning: More flexible. The model can adapt to new patterns in the data
4. Domain Knowledge:
the need for explicit domain knowledge. However, domain knowledge is still
5. Programming Paradigm:
specifying the desired outcome, and the algorithm determines how to achieve it
6. Applicability:
Traditional Programming: Well-suited for tasks with clear rules and logic, such as
7. Development Process:
explicit code. Changes to the rules or logic require code modification and
retesting.
Machine Learning: Development involves data preparation, model training,
evaluation, and iteration. Changes to the model's behavior may involve retraining
8. Examples:
deterministic logic.
Ans: Machine learning can be broadly categorized into three main types: supervised learning,
unsupervised learning, and reinforcement learning. Each type serves different purposes and is suitable for
1. Supervised Learning:
where the algorithm learns the mapping between input features and corresponding
output labels. The goal is to make accurate predictions on new, unseen data.
Examples:
(e.g., cats and dogs), the model learns to classify new images into
predefined categories.
Spam Email Detection: A model is trained on a dataset of emails labeled
house.
2. Unsupervised Learning:
Examples:
3. Reinforcement Learning:
Definition: Reinforcement learning involves training an agent to make sequential
Examples:
successful actions.
reach its destination safely, with rewards for following traffic rules and
These three types of machine learning can be further categorized based on their specific goals
and tasks. For example, within supervised learning, there are classification tasks (assigning
labels to input data) and regression tasks (predicting numerical values). Similarly, within
reinforcement learning, there are approaches like deep reinforcement learning, which combines
reinforcement learning with deep neural networks for more complex tasks.