Machine Learning
- Parent field
- Artificial Intelligence
- Key concept
- Learning from data
- Main paradigms
- Supervised, Unsupervised, Reinforcement
- Languages
- Python, R, Julia
- Frameworks
- TensorFlow, PyTorch, scikit-learn
Machine Learning
- Parent field
- Artificial Intelligence
- Key concept
- Learning from data
- Main paradigms
- Supervised, Unsupervised, Reinforcement
- Languages
- Python, R, Julia
- Frameworks
- TensorFlow, PyTorch, scikit-learn
Learning Paradigms
Supervised Learning
The system is trained on labelled examples — input-output pairs — and learns a mapping function. Common tasks include:- Classification — assigning inputs to discrete categories (e.g., spam/not spam, tumour/benign)
- Regression — predicting continuous values (e.g., house prices, demand forecasting)
Unsupervised Learning
The system discovers hidden structure in unlabelled data.- Clustering — grouping similar data points (k-means, DBSCAN, hierarchical clustering)
- Dimensionality reduction — finding compact representations (PCA, t-SNE, UMAP)
- Anomaly detection — identifying outliers
Reinforcement Learning (RL)
An agent learns by interacting with an environment, receiving rewards or penalties for actions. RL produced landmark results including AlphaGo (2016) and AlphaStar (2019), and underlies modern RLHF (Reinforcement Learning from Human Feedback) used to align LLMs.Self-supervised / Foundation Models
A modern paradigm where models are pre-trained on massive unlabelled corpora using proxy tasks (e.g., predicting masked tokens). The resulting representations transfer well to downstream tasks. Large language models such as GPT-4, Claude, and Gemini are trained this way.The ML Pipeline
A typical production ML system involves:Common Pitfalls
- Overfitting — model memorises training data but fails to generalise
- Data leakage — information from the test set contaminates training
- Class imbalance — biased predictions when one class heavily dominates
- Distribution shift — training and deployment data differ in important ways
- Spurious correlations — model relies on coincidental patterns rather than causal features
- Financial services: Maybank, CIMB, and RHB deploy ML for credit scoring, fraud detection, and algorithmic trading. Bank Negara Malaysia's (BNM) AI/ML guidelines require explainability for credit decisions.
- Telecommunications: Telekom Malaysia (TM) and Maxis use ML for network optimisation and churn prediction.
- Retail/e-commerce: Shopee and Lazada Malaysia employ recommendation systems and demand forecasting.
- Plantation/agriculture: ML is used for oil palm disease detection and yield prediction — partnering with MPOB and Sime Darby.
Evaluation Metrics
| Task | Primary Metrics | |------|----------------| | Classification (balanced) | Accuracy, F1-score, AUC-ROC | | Classification (imbalanced) | Precision-Recall AUC, MCC | | Regression | RMSE, MAE, R² | | Ranking | NDCG, MAP | | Clustering | Silhouette score, Davies-Bouldin |Key Libraries and Frameworks
- scikit-learn — gold standard for classical ML in Python
- XGBoost / LightGBM / CatBoost — gradient boosting; dominant in tabular-data competitions
- TensorFlow / Keras — Google's deep learning framework
- PyTorch — Facebook's deep learning framework; preferred in research
- Hugging Face Transformers — pre-trained transformer models for NLP
- Samuel, A.L. (1959). "Some Studies in Machine Learning Using the Game of Checkers." IBM Journal of Research and Development, 3(3), 210–229.
- Mitchell, T.M. (1997). Machine Learning. McGraw-Hill.
- MDEC (2023). State of AI in Malaysia 2023. Malaysia Digital Economy Corporation.