Slide 1

Slide 1 text

Intro to Machine Learning Wesley Kambale @weskambale kambale.dev

Slide 2

Slide 2 text

• Machine Learning Engineer with 3 years of experience • Community Builder for 3 years • Explore ML Facilitator with Crowdsource by Google for 2 years • Google Dev Library Author Profile Interests Experience • Research in TinyML, TTS & LLM

Slide 3

Slide 3 text

What You Need to Know/Have? - Knowledge of Python, R, Java, etc - Basic mathematical knowledge (probability and statistics) - Notebook (Google Colab or Jupyter) - Basic data analytics knowledge (MS Excel, Power BI) Pre-requisites

Slide 4

Slide 4 text

Machine Learning… What is Machine Learning? Machine learning (ML) is a subfield of artificial intelligence (AI) that enables computers to learn from data to make predictions and identify patterns. Computers traditionally rely on explicit programming. Machine learning is programming computers to optimize a performance criterion using example data or past experience

Slide 5

Slide 5 text

Traditional Programming Machine Learning Computer Data Program Output Computer Data Output Program

Slide 6

Slide 6 text

Machine Learning… Types of Machine Learning? • Supervised learning – Training data + desired outputs (labels) • Unsupervised learning – Training data (without desired outputs) • Semi-supervised learning – Training data + a few desired outputs • Reinforcement learning – Rewards from sequence of actions

Slide 7

Slide 7 text

Supervised learning What is Supervised Machine Learning? Used when the training data includes labeled examples. The algorithm attempts to find the relationship between the input features (independent variables) and the output (dependent variable), which is known as the "ground truth". Common examples of supervised learning include classification (determining the class of an object based on its features) and regression (predicting a continuous value).

Slide 8

Slide 8 text

SL: Regression Given (x1, y1), (x2, y2), ..., (xn, yn) Learn a function f(x) to predict y given x – y is real-valued == regression

Slide 9

Slide 9 text

SL: Classification Given (x1, y1), (x2, y2), ..., (xn, yn) Learn a function f(x) to predict y given x – y is categorical == classification

Slide 10

Slide 10 text

Unsupervised learning What is Unsupervised Machine Learning? Used when the training data is unlabeled. The algorithm must identify patterns and structure in the data on its own. Common examples of unsupervised learning include clustering (grouping similar data points) and dimensionality reduction (reducing the number of features in the data).

Slide 11

Slide 11 text

Unsupervised Learning Given x1, x2, ..., xn (without labels) Output hidden structure behind the x’s – E.g., clustering

Slide 12

Slide 12 text

Unsupervised Learning

Slide 13

Slide 13 text

Semi-supervised learning What is semi-supervised Machine Learning? It uses a combination of labeled and unlabeled data: The labeled data provides the grounding for the model, teaching it basic concepts and the structure of the problem. The unlabeled data adds additional information and helps the model learn more complex relationships and patterns.

Slide 14

Slide 14 text

Reinforcement learning What is reinforcement Machine Learning? An agent learns through trial and error in an environment. The agent takes actions, observes the outcome, receives a reward (positive or negative), and uses this feedback to improve its future choices. This allows the agent to learn without explicit instructions and adapt to changing environments.

Slide 15

Slide 15 text

Take an example For humans, it is hard to know which is 2

Slide 16

Slide 16 text

Getting Started Shall we?

Slide 17

Slide 17 text

The libraries you need What next? Pandas NumPy Matplotlib & Seaborn Sci-Kit Learn & TensorFlow

Slide 18

Slide 18 text

ML in a Nutshell In a simple way… - Tens of thousands of machine learning algorithms - Hundreds new every year - Every ML algorithm has three components: Representation Optimization Evaluation

Slide 19

Slide 19 text

Representation Numerical functions: Linear regression, neural networks, support vector machines Symbolic functions: Decision trees Instance-based functions: Nearest-neighbor, case-based Probabilistic Graphical Models: Naïve Bayes, Bayesian networks, Hidden-Markov Models Markov networks

Slide 20

Slide 20 text

Search/Optimization Gradient descent: Perceptron, Backpropagation Dynamic Programming: HMM Learning Divide and Conquer: Decision tree induction, Rule learning Evolutionary Computation: Genetic Algorithms (GAs) Genetic Programming (GP) Neuro-evolution

Slide 21

Slide 21 text

Evaluation Accuracy Precision and recall Squared error Likelihood Cost / Utility Margin Entropy

Slide 22

Slide 22 text

ML in Practice Understand domain, prior knowledge, and goals Data integration, selection, cleaning, pre-processing, etc. Learn models Interpret results Consolidate and deploy discovered knowledge

Slide 23

Slide 23 text

Machine learning is the future - Robert John, GDE - ML & Google Cloud

Slide 24

Slide 24 text

Thank you! Wesley Kambale @weskambale kambale.dev