BeginnerAbout 18 min

    Framing ML Problems

    Read the full article on Substack

    7 min read.

    "Slow customer support is a problem, but it is not an ML problem." Turn a complaint into inputs, outputs and an objective function, then reframe an app recommender so adding a new app stops forcing a retrain.

    Think of it this way: Two ways to ask a shop assistant what you should buy. You can ask "which of these 40,000 items is for me?" — and every time the shop gets new stock, the assistant has to relearn the catalogue. Or you can hold up one item and ask "is this for me?", forty thousand times. Same information, and only one of them survives a delivery.

    the business problemcustomer support is slow→where the time actually goesrouting requests among four departmentsthe ML probleminputthe customer requestoutputone of four departmentsobjectivecross-entropy loss

    The middle step found the bottleneck. “Support is slow” has no inputs or outputs; “routing takes too long” has both: accounting, inventory, HR or IT, a four-class problem. If you cannot write down all three, you have a business complaint, not an ML problem.

    Check your understanding

    Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.

    Frame the task

    Sort

    Sort each problem into the ML task type it is.

    Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.

    Regression

    Drop items here

    Binary classification

    Drop items here

    Multiclass

    Drop items here

    Multilabel

    Drop items here
    5 pieces left to place

    Quiz

    20 questions
    Question 1 of 20
    Score: 0

    An ML problem is defined by inputs, outputs, and:

    Done with this lesson?

    Sign in free to keep your progress, streak and quiz scores.

    Keep going