AI ML Cheat Sheet Kid Friendly
AI ML Cheat Sheet Kid Friendly
Artificial Intelligence (AI) is like teaching a computer how to think and make decisions. Machine Learning (ML)
is a type of AI where the computer learns from examples, just like kids learn from practice.
Example: If you show a computer 1000 pictures of cats and dogs, it will learn to tell them apart.
- Supervised Learning: Like homework with answers. We teach the model with correct answers.
- Unsupervised Learning: Like sorting toys by color with no help. The model finds patterns on its own.
- Reinforcement Learning: Like a game. The model learns by getting rewards or punishments.
3. Real-Life Examples of ML
- Self-Driving Cars: Learns how to drive safely by seeing many driving situations.
Import tools:
Load data:
Clean data:
Train/Test Split:
Train a model:
model = LogisticRegression()
model.fit(X_train, y_train)
Check accuracy:
print(model.score(X_test, y_test))
You show it many pictures and say 'this is an apple' or 'this is an orange'.