ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Artificial Intelligence
    COMP2121
    Progress0 / 19 topics
    Topics
    1. An Introduction to Artificial Intelligence and its applications towards Knowledge Based Systems2. Introduction to Reasoning and Knowledge Representation3. Problem Solving by Searching: Informed searching4. Problem Solving by Searching: Uninformed searching5. Heuristics in Problem Solving6. Local searching algorithms7. Minimax algorithm8. Alpha-beta pruning9. Game-playing in AI10. Case Study: General Problem Solver11. Case Study: ELIZA12. Case Study: Student13. Case Study: Macsyma14. Learning from examples15. Artificial Neural Networks (ANN)16. Natural Language Processing17. Recent trends and applications of AI algorithms18. Python programming for AI19. Implementation of AI techniques in Python
    COMP2121›Learning from examples
    Artificial IntelligenceTopic 14 of 19Regular Notes

    Learning from examples

    2 minread
    371words
    Beginnerlevel

    📘 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 load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time2 min
      Word count371
      Code examples0
      DifficultyBeginner