Model and Tool API Contracts
Convert the request before using fitted state
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
Connect readings and the declared unit to both conversion components. Return Celsius values before applying fitted state.
Botie’s fitted Celsius model receives temperatures from a device that may report Fahrenheit.
Inspect the component calculation
Add(
First contribution: Multiply(
Value: Incoming temperatures
Multiplier: Read the temperature conversion scale(
Declared unit: C or F: Declared temperature unit
)
)
Second contribution: Read the temperature conversion offset(
Declared unit: C or F: Declared temperature unit
)
)Examples and results
- Incoming temperatures
- 020
- 130
- Declared temperature unit
C
- Required result
- 020
- 130
- Incoming temperatures
- 010
- 120
- Declared temperature unit
C
- Required result
- 010
- 120
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
The scores come from a supplied linear rule and have no calibrated probability meaning. This exercise checks conversion and calculation order; sensor calibration and predictive quality require other evidence. Numerical tests allow a difference of 0.001. Lists and structures must also have the right shape.
Your last tested pieces can start the full construction. An existing draft there keeps its own pieces.
A different Fahrenheit batch and fitted coefficient
This check uses the pieces from “Keep fitted state in its training representation”.
BOTIE
- Incoming temperatures
- 032
- 177
- Declared temperature unit
F
- Saved training centre in Celsius
10
- Coefficient per centred Celsius degree
0.5
Use a number, text, or an array matching the requested result. A named result uses field names, such as {"count": 2}. 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 would a Celsius-to-Fahrenheit change do if the model subtracted its center before conversion?
Save canonical units and preprocessing order with the fitted artifact.
The scores come from a supplied linear rule and have no calibrated probability meaning. This exercise checks conversion and calculation order; sensor calibration and predictive quality require other evidence.