Posts

Machine Learning Rules :Perceptron learning rule , delta learning rule (LMS–Widrow Hoff)

  Machine Learning Learning Rules: Perceptron and Delta Rule (LMS / Widrow-Hoff) Introduction Machine Learning is fundamentally about learning from mistakes. Just like humans improve through feedback, machines update their internal parameters using learning rules. Two of the most important and foundational learning rules are: Perceptron Learning Rule Delta Learning Rule (LMS / Widrow-Hoff Rule) These rules define how a model adjusts itself when it makes correct or incorrect predictions. Real-World Analogy (Important for Marks) Imagine a student preparing for an exam: If the student answers correctly → no change needed If the student answers incorrectly → they revise and improve This is exactly how learning rules work: The model predicts Compares with actual answer Adjusts itself if wrong The Perceptron Rule behaves like a strict teacher (only corrects mistakes), while the Delta Rule behaves like a smart tutor (adjusts based on how wrong you are). Pe...

Types of environments in AI

Image
             T ypes of Environment in Artificial Intelligence Introduction Artificial Intelligence (AI) helps machines make smart decisions by interacting with their surroundings, known as the environment. The environment provides information and feedback that guide the AI ’ s actions. Understanding different types of environments is important because each one affects how an AI system learns and performs. AI environments can differ based on factors like visibility, predictability, and change. For example, a chess game is a fully observable and static environment, while a self-driving car operates in a dynamic and unpredictable one.   What is an Environment in AI? In Artificial Intelligence, the environment refers to everything an agent interacts with while performing tasks. It provides the input to the agent (through sensors) and receives the agent’s output (through actuators). The type of environme...

Logic programming using Prolog

Image
  🧠 Logic Programming & PROLOG – The Language That Thinks for You 🌍 1. Understanding Logic Programming Most programming languages tell the computer how to do something — step by step. Logic programming is different. You tell the computer what is true, and it figures out how to reach the answer. Instead of writing procedures, you describe facts and rules that define relationships. This makes it especially powerful for: Artificial Intelligence (AI) Expert systems Problem solving and reasoning 💡 2. What Is PROLOG? PROLOG stands for Programming in Logic. It’s built for reasoning and deduction rather than traditional control flow. In Prolog, you define: Facts → Things that are true Rules → Logic that connects facts Queries → Questions you ask the system ⚙️ Key Features Declarative syntax: state what should hold true Efficient knowledge representation Inference engine with backtracking Recursion instead of loops Pattern matching (unification) 🧱 3. Bu...