Checking your account

You can read the lesson while its saved answers and constructions load. Learning controls will open once that work is ready.

Model and Tool API Contracts

Convert the request before using fitted state

Coding challenges

BOTIE

Connect readings and the declared unit to both conversion components. Return Celsius values before applying fitted state.
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

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
  1. 020
  2. 130
Declared temperature unit
C
Required result
  1. 020
  2. 130
Incoming temperatures
  1. 010
  2. 120
Declared temperature unit
C
Required result
  1. 010
  2. 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

The incoming readings are 32 F and 77 F. The model has a 10 C center and coefficient 0.5. Predict the two scores before testing.
Incoming temperatures
  1. 032
  2. 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.

Continue the courseShould Botie Repeat the Request, or Find Out What Happened? →