Serial Entrepreneur ยท Product Builder ยท Munaaseb CTO (PropTech)
โ Use arrow keys or scroll to navigate โ
From ML fundamentals to autonomous agents โ a 30-minute introduction
What is machine learning? Types, core concepts, and why it matters.
Agents, tools, harnesses โ how an agent reasons, acts, and observes.
Where ML meets the agentic loop โ what makes an agent truly autonomous.
Key takeaways, open questions, and discussion.
The core idea: teaching computers to learn from experience, not rules.
Classic programming: Rules + Data โ Answers
Machine learning: Data + Answers โ Rules (the model learns the rules itself)
Learn from labelled examples (input โ output pairs). Like studying with answer keys.
Regression ยท ClassificationFind hidden patterns in unlabeled data. Clustering, dimensionality reduction.
Clustering ยท Anomaly DetectionLearn by trial and error โ agent takes actions, gets rewards, improves policy.
Games ยท Robotics ยท ControlKey ingredients: Data (representative, clean) ยท Model (the learnable function) ยท Loss (measure of error) ยท Optimization (minimising the loss)
Training = the process of adjusting a model to reduce error on data.
Split into training (the textbook), validation (practice exams), and test (final exam) sets. The model never sees the test set during training.
Overfitting: memorising the data, failing on new inputs.
Underfitting: too simple to capture real patterns. Balance is everything.
A mathematical measure of "how wrong the model is." Training = minimizing this number across all examples.
The engine of learning โ take small steps downhill on the loss surface. Each step adjusts model parameters slightly.
Key insight: ML models don't "understand" โ they approximate statistical patterns. An LLM is a very large function that predicts the next token based on trillions of observed examples.
What separates an "agent" from a plain LLM? The loop: Perceive โ Reason โ Act โ Observe.
The model decides what to do next โ write an answer, call a tool, ask for clarification. It's not just generating text; it's reasoning about actions.
Functions the agent can call: search the web, read files, run code, send messages. Tools give the agent agency over the real world.
The runtime that orchestrates the loop: parse the LLM's tool request โ execute โ return result โ let LLM continue. This loop is what makes it an agent.
Definition: An agent = LLM + Tools + Loop. Without the loop and tools, you just have a chatbot.
Bridging ML fundamentals and the agentic loop โ a system that acts independently toward goals.
Given a high-level goal, the agent decomposes it into sub-tasks and executes them autonomously โ deciding tool calls, order, and when to stop.
Persistent memory (from ML's learned representations) + session context (from the agentic loop) = the agent remembers across turns, sessions, and restarts.
Reusable workflows (skills) and diverse tools (file I/O, web, code execution, API calling) let the agent operate across domains without human hand-holding.
When a tool call fails or returns unexpected data, the agent re-evaluates and tries a different approach โ closed-loop feedback, just like gradient descent in ML.
The synthesis: ML gave us models that can learn patterns from data. The agentic loop gave us action and feedback. An autonomous agent is both โ it learns from its environment and acts upon it, independently.
What happens when you give a trained LLM the keys to its own toolset?
Trained on vast data (ML step). Generates reasoning and decides next action.
PlanningEvery tool is described to the LLM as a function with name, inputs, outputs.
APIsThe harness that runs the loop: parse โ execute โ observe โ loop/respond.
RuntimeFacts, user preferences, learned skills โ persists across sessions.
PersistenceProcedural knowledge โ reusable instructions for the agent to follow.
ReusabilityCron jobs, watchdogs โ the agent acts without being asked.
ProactivitySpeaks over Telegram, WhatsApp, Discord, Slack, email โ meets users where they are.
ConnectivitySpawns sub-agents for parallel work โ coordination at scale.
ScaleQuestions & Discussion