ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalCOMP2121Learning From Examples
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    COMP2121

    Artificial Intelligence

    Progress0 / 19 done
    Topics19
    1An Introduction to Artificial Intelligence and its applications towards Knowledge Based Systems2Introduction to Reasoning and Knowledge Representation
    3Informed searching4Uninformed searching5Heuristics in Problem Solving6Local searching algorithms7Minimax algorithm8Alpha-beta pruning9Game-playing in AI
    10General Problem Solver11ELIZA12Student13Macsyma14Learning from examples15Artificial Neural Networks (ANN)16Natural Language Processing17Recent trends and applications of AI algorithms18Python programming for AI19Implementation of AI techniques in Python
    2 min read
    Topic 14 of 19
    Topic Study Note Illustration
    14

    Learning from examples

    Learning from examples refers to the process by which AI systems learn patterns or make decisions by analyzing data (examples) instead of being explicitly programmed with rules.

    📘 Learning from Examples


    1. What Does "Learning from Examples" Mean?

    Learning from examples refers to the process by which AI systems learn patterns or make decisions by analyzing data (examples) instead of being explicitly programmed with rules.

    🎯 The goal is for the system to generalize from given examples to perform well on new, unseen data.


    2. Why Is It Important?

    • Efficient: No need to hard-code rules.
    • Scalable: Works for complex problems where rule-writing is impractical.
    • Flexible: Can adapt to new situations by training on updated data.

    3. Examples of Learning from Examples

    Domain Example
    Email Filtering Spam vs. not spam (learned from labeled emails)
    Medical Diagnosis Disease prediction based on patient records
    Image Recognition Identifying objects in photos from labeled images
    Speech Recognition Learning how to recognize spoken words from audio data

    4. Types of Learning

    Type Description Example
    Supervised Learning Learns from labeled examples (input + correct output) Classifying emails, predicting house prices
    Unsupervised Learning Learns patterns in data without labels Clustering users, market segmentation
    Reinforcement Learning Learns by trial and error using rewards and penalties Teaching a robot to walk or play a game

    5. Steps in Learning from Examples (Supervised Learning)

    1. Collect data (examples).
    2. Label the data (give correct outputs).
    3. Train a model using an algorithm (e.g., decision tree, neural network).
    4. Test the model on new data.
    5. Evaluate performance (accuracy, precision, recall, etc.).

    6. Common Algorithms

    Algorithm Purpose
    Decision Trees Simple models that split data based on features
    Naive Bayes Based on probability and Bayes’ Theorem
    k-Nearest Neighbors (k-NN) Classifies based on closest examples
    Neural Networks Mimics the brain to learn complex patterns
    Support Vector Machines (SVM) Finds optimal boundary between classes

    7. Challenges

    Challenge Description
    Overfitting Model memorizes training data, performs poorly on new data
    Underfitting Model is too simple to capture underlying patterns
    Data quality Bad or insufficient data leads to poor learning
    Bias Learning can reflect biases in training examples

    ✅ Summary

    Topic Key Point
    Learning from Examples AI learns to make predictions from data, not rules
    Main Type Supervised learning (uses labeled data)
    Goal Generalize from examples to unseen situations
    Common Models Decision Trees, k-NN, Naive Bayes, Neural Networks
    Applications Spam detection, medical diagnosis, image and speech recognition

    ← Previous topic 13
    Case Study: Macsyma
    Next topic 15 →
    Artificial Neural Networks (ANN)

    Past Papers

    Open this section to view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    2mremaining
    371words
    Beginnerlevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Artificial Intelligence