Generative AI and Prompt Safety: Interactive Workshops for Kids in Larnaca
Larnaca classes pair model demos with safety rules. Avenvera.com offers broader child development insights. Enquire WhatsApp +92 322 4217059. Supervised platforms only.
AI courses for kids in Larnaca emphasise digital safety—never sharing personal data—and guided practice training image and text classification models on child-safe platforms.

Part 1 covered bootstrapping and bagging. Part 2 focuses on how trees use different feature subsets and how their predictions are combined into a stronger result.
Random feature selection: each tree sees only a random subset of features (e.g. Tree 1: Income + Age; Tree 2: Credit Score + Debt). Across a forest of ~50 trees, no single feature can dominate every split, which reduces feature bias.
Combining many weak trees trained on different data and feature subsets yields one robust strong classifier.
from sklearn.datasets import load_breast_cancer
from sklearn.model_selection import train_test_split
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import accuracy_score, confusion_matrix, classification_report
data = load_breast_cancer()
X, y = data.data, data.target
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.3, random_state=42
)
rf = RandomForestClassifier(
n_estimators=100,
max_depth=None,
bootstrap=True,
criterion='entropy',
random_state=42
)
rf.fit(X_train, y_train)
y_pred = rf.predict(X_test)
acc = accuracy_score(y_test, y_pred)
print(f"Overall Test Accuracy: {acc * 100:.1f}%")
Typical result on this split: about 94.2% test accuracy.
Example confusion matrix (171 test samples):
| Pred. Class 1 | Pred. Class 2 | |
|---|---|---|
| Actual Class 1 | 58 | 6 |
| Actual Class 2 | 4 | 103 |
Approximate metrics: precision ~94% both classes; recall ~91% / 96%; F1 ~92% / 95%. Top feature importances often include Worst Concave Points (~0.16) and Worst Area (~0.14).
Each tree is limited to a random subset of features. In a single tree one feature can dominate every split; across many trees with different subsets, preference is shared and no single feature controls the whole forest.
Classification uses majority vote so the class with the most tree votes wins. Regression takes the mean of all tree predictions (e.g. four house-price votes averaged to one final value), smoothing individual mistakes.
With n_estimators=100 and criterion='entropy', test accuracy was about 94.2% on 171 samples. The confusion matrix showed 58+103 correct and 6+4 errors. Precision ~94%, with solid recall and F1; top features included Worst Concave Points and Worst Area.
ChatGPT for Kids on Udemy.
Disclosure: This page contains affiliate links. We may earn from qualifying purchases at no extra cost to you. Links are intended for parents and educators, not as marketing directed at young children.
Larnaca classes pair model demos with safety rules. Avenvera.com offers broader child development insights. Enquire WhatsApp +92 322 4217059. Supervised platforms only.
We teach kids never to share personal data or passwords online and to evaluate AI answers critically.
Students train image and text classification models using guided, child-safe platforms.
Professional guidance on child development and learning is available at Avenvera.com.