The artificial intelligence subfield of machine learning enables computers to learn from data which enables them to predict outcomes or make decisions without human programming. The algorithms enhance their operational capabilities through time by gaining more experience. Machine learning consists of three main categories which are supervised learning and unsupervised learning and reinforcement learning. Real-world applications of machine learning technology include voice recognition systems and image classification and recommendation systems. Through machine learning computers gain the ability to detect patterns which enables them to select intelligent options.
ML Algorithm in Practice:
Activity 1 (3):
Live Test: Using Teachable Machine:
Two Classes were used in the test, one represents phone with cover and one represents phone without cover. Here is a Live testing video:
Result:


The trained model shows absolute certainty (100%) about the phone having a cover in Image 1 and Image 2 shows the same level of certainty (100%) that the phone does not have a cover. This illustrates how machine learning can achieve high accuracy, depending on both the quantity and quality of the training it receives.
Activity 2 (4):
Data: X (1, 1), X (1, 2), O (4, 1) || Point: (5, 2), Does the new point belong to X or O?

Activity 3 (5):
Here is copy of conversation between me and ChatGPT:
ME:
ChatGPT said:
Absolutely! Let’s break down how ChatGPT works in a way that’s clear but still gives you a solid understanding of what’s going on under the hood.
🚀 What is ChatGPT?
ChatGPT is a large language model (LLM) created by OpenAI, based on the GPT (Generative Pretrained Transformer) architecture. The version you’re chatting with is based on GPT-4.
🧠 High-Level Overview
Trained on Text:
ChatGPT is trained on a huge amount of text data from the internet—books, articles, websites, conversations, code, and more.
This training helps it understand grammar, facts, reasoning, and even a bit of common sense.
Predicts the Next Word:
At its core, ChatGPT is just a very advanced word predictor.
You give it some input, and it predicts what the next word (or token) should be, over and over, until it forms a response.
Pretraining & Fine-Tuning:
Pretraining: It learns general patterns in language using unsupervised learning (just reading tons of text).
Fine-tuning: It’s later refined using human feedback to become more helpful, safe, and aligned with how people want it to behave (this is called Reinforcement Learning from Human Feedback or RLHF).
🔧 How It Works Technically (Simplified)
Transformer Architecture:
ChatGPT is based on the Transformer, a neural network model introduced by Google in 2017.
The Transformer uses self-attention to understand context, meaning it can “pay attention” to all parts of the input when generating each word.
Tokens:
Words and characters are broken down into chunks called tokens. For example, “ChatGPT is cool” becomes tokens like
[Chat, G, PT, is, cool].
Embeddings:
Tokens are converted into vectors (numbers) via embedding layers. These numbers capture the meaning of the tokens.
Layers of Attention:
These vectors pass through multiple layers of attention and feed-forward networks—in GPT-4’s case, dozens of layers.
Output:
Finally, it generates a probability distribution over all possible next tokens and picks the most likely one (or samples from the top few).
🧪 Example
If you type:
“What is the capital of France?”
The model:
Breaks it into tokens
Understands that “capital” and “France” are important
Predicts that “Paris” is the best next word
Keeps going until it completes the answer
🔐 Important Notes
It doesn’t “know” facts like a database — it has seen patterns in training data and learned to mimic understanding.
No real-time access to the internet, unless specifically connected (like with plugins or browsing tools).
Doesn’t have consciousness or intent — it’s a very clever pattern generator.
ME:
ChatGPT said:
Alright! Let’s make it super simple, like we’re talking to a smart 5-year-old. 😊
🧸 What is ChatGPT?
ChatGPT is like a very smart robot friend that knows a lot of things because it has read a giant pile of books and stories.
📚 How Did It Get So Smart?
Imagine you read a million books—fairy tales, science stuff, and even jokes. That’s what ChatGPT did! It read so much that now it can talk like a person.
🧠 How Does It Talk?
Let’s say you ask it:
“What’s your favorite color?”
Here’s what happens:
It listens to your question.
It thinks: “Hmm… when people hear this question, they usually say something like ‘blue’ or ‘green’.”
Then it picks a good answer and says it back to you!
It doesn’t really have a favorite color—it’s just guessing what a good answer is, based on all the things it read.
🤖 Is ChatGPT Alive?
Nope! It’s not a person. It doesn’t have feelings. It can talk like a person, but it’s really just a big computer that’s super good at playing the “word game” — where it guesses the next best word to say.
🏗️ So What Does It Do?
You can:
Ask questions – it tries to answer.
Tell it to write stories – it makes one up!
Ask it to solve a puzzle – it gives it a go!
Think of it like a magical talking book that can answer you back! 📖✨
Conclusion
First answer is bit hard to understand for begginers, but the 2nd answer is very easy to understand. It shows that, fine tuning a AI can make it more curated and powerful. Fine tuning a AI is one of the things that comanies do to make niche based AI for specific tasks. As an example, Snapchat AI acts as our friend while ChatGPT at first will act like bot but little bit of tuning will make it our friend as well!
References
- GeeksforGeeks. (2024, December 18). Machine learning algorithms. GeeksforGeeks. https://www.geeksforgeeks.org/machine-learning-algorithms/
- Sarker, I. H. (2021). Machine learning: algorithms, Real-World applications and research directions. SN Computer Science, 2(3). https://doi.org/10.1007/s42979-021-00592-x
- Tavasoli, S. (2025, April 14). The Machine Learning Algorithms List: Types and use cases. Simplilearn.com. https://www.simplilearn.com/10-algorithms-machine-learning-engineers-need-to-know-article
- Teachable machine. (n.d.). https://teachablemachine.withgoogle.com/
- Sameer, K. (2025). Artificial intelligence & machine learning [Lecture slides]. CST1160, Middlesex University Dubai.