Machine Learning for Physical Systems · Lecture 3

Be the tree

Shortcut: P

A decision tree predicts the strength of concrete by asking yes-or-no questions about the mix.

    Eight concrete mixes and the threshold of the question
    The question and the two groups it makes

    Entropy is the average surprise: a pure group has 0 bits, half and half 1 bit.

    Eight real mixes from the data set, tested after 28 days. Strong: at least 30 MPa.
    1. Find a question that leaves two pure groups.
    2. Try every input: is there a second one?
    3. Why is water alone a poor question?

    The question asks about

    Before the question1 bit
    After the question (weighted average)
    Information gain

    More options

    These options change steps 2 and 3.

    New recipes
    Split 1

    A random quarter of the recipes is kept aside; the tree never sees their tests.

    Forest
    Resamples 1

    Single trees change a lot; the forest hardly changes.

    Table: every question about the eight mixes
    QuestionYes groupNo groupInformation gain
    Table: the eight mixes
    Cement [kg/m³]Water [kg/m³]Fly ash [kg/m³]Water / cementStrength [MPa]Class
    Table: typical error for every depth
    DepthLeavesTraining mixes [MPa]New recipes [MPa]

    Data source: I-C. Yeh (1998), Cement and Concrete Research 28, 1797-1808; 1030 tests of 428 concrete recipes from several laboratories (UCI Machine Learning Repository). Steps 2 and 3 use the 425 mixes tested after 28 days, which come from 417 recipes. The eight mixes of step 1 come from these, rounded to whole kg/m³ and 0.1 MPa as in the lecture.

    How it is computed