Define the ML Problem

Schedule the pump inspections

BOTIE

Build a calculation that multiplies each inspection decision by its duration and adds the assigned minutes. Test all shifts.
Ready to test
0 passed · 0 failed · 2 not run

An empty floor. Start with the information your machine needs.

Received result

Your answer will arrive here.

Examples, experiments and workspace controls
Live values

Connect a tool's inputs to see what it produces. You can try a branch before connecting it to Result.

Try your own inputs

Use a copy of the example to try your own data. Keep the problem's assumptions in mind, and predict the effect of a change before checking the output. You can also add another branch to compare two ways of doing the calculation.

Start at an output arrow, then click or drag to an input. Drag empty space to pan. Delete removes a selection. Ctrl/Cmd+Z undoes a change.
Context for this challenge

Build a calculation that multiplies each inspection decision by its duration and adds the assigned minutes. Test all shifts.

Botie's pressure alerts are useful only if they lead to workable inspection decisions. The team first needs the minutes those decisions require.

Pair each pump's binary decision with its duration, keep only assigned time through multiplication, and total the minutes.

Examples and results
Inspection decisions, 1 = inspect
  1. 01
  2. 10
  3. 21
Inspection duration per pump (minutes)
  1. 020
  2. 140
  3. 230
Required result
50
Inspection decisions, 1 = inspect
  1. 00
  2. 10
  3. 20
Inspection duration per pump (minutes)
  1. 020
  2. 140
  3. 230
Required result
0
Try a fresh construction

This clears this draft, including its undo history. Earlier successful attempts stay recorded. Build again without opening hints to record an independent attempt.

Stuck? Inspect a worked construction

The tools below form one possible solution. You can assemble it, follow its signals, and undo that change to return to your own construction.

Assumptions and test precision

This checks workload, not whether an inspection prevents a fault. Durations are invented fixed estimates. Numerical tests allow a difference of 0.001. Lists and structures must also have the right shape.

Two inspections require very different amounts of time

This check uses the pieces from “Turn pump decisions into inspection minutes”.

BOTIE

Botie has selected the second and fourth machines for inspection. Their estimated inspection durations are in minutes, aligned with the decision flags. Calculate the total staff time required by that decision list.
Inspection decisions, 1 = inspect
  1. 00
  2. 11
  3. 20
  4. 31
Inspection duration per pump (minutes)
  1. 010
  2. 145
  3. 220
  4. 315

Use a number, text, or an array matching the requested result. For a matrix, put each row in brackets. Saving your prediction runs your current construction on these inputs and checks the earlier examples too.

Build a construction in the workspace above first. This case will test those pieces.

What other evidence would be needed before calling this inspection list useful to the team?

A prediction system needs an action, its consequences, and available human capacity. Minutes alone do not show prevented faults.

This checks workload, not whether an inspection prevents a fault. Durations are invented fixed estimates.

Work through the Python challenges →
Continue the courseDo We Need a Learned Model Yet? →
← The journey map