Define the ML Problem
Keep future records out of the inspection decision
BOTIE
Examples, experiments and workspace controls
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.
Context for this challenge
Use two threshold comparisons and combine their masks. Output 1 only when both event and availability timestamps are at or before the decision time.
A pressure reading can occur before an inspection decision yet reach Botie's service too late to use. Both timestamps matter.
Compare decision time against event times and availability times separately, then multiply the aligned binary masks.
Examples and results
- Event time per reading
- 08
- 18
- 211
- Availability time per reading
- 09
- 112
- 211
- Decision time
10
- Required result
- 01
- 10
- 20
- Event time per reading
- 02
- 13
- Availability time per reading
- 04
- 15
- Decision time
1
- Required result
- 00
- 10
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 assumes a common clock and trustworthy timestamp history. Freshness, permissions, and measurement quality need additional checks. Numerical tests allow a difference of 0.001. Lists and structures must also have the right shape.
An on-time event arrives after the decision
This check uses the pieces from “Require the reading to exist and be available”.
BOTIE
- Event time per reading
- 07
- 110
- 29
- 311
- Availability time per reading
- 011
- 110
- 29
- 312
- Decision time
10
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.
Why would an offline table sorted by event time still overstate what the service knew?
Preserve availability history as well as measurement time when replaying decisions.
This assumes a common clock and trustworthy timestamp history. Freshness, permissions, and measurement quality need additional checks.
Work through the Python challenges →