MODULES / 06 · DART & FLUTTER

External services and machine learning

Prerequisites

Module 4 and an understanding of asynchronous operations.

Learning objectives

Separate the interface from the integration. Communicate configuration requirements, failures and prediction limits.

Suggested activity

Run a case study in its documented mode and identify real integration, fixtures and demonstration mode.

OCR/ML Kit remains a historical topic without a linked tutorial in this course. A classifier does not by itself establish use of a particular service or model. Use the current version of the chosen repository, synthetic data and its documented validation steps. Record the environment and distinguish real execution, emulation and a local demonstration. These activities are proposals for your own study repository.

Suggested reading

O Último Sprint da Humanidade: discuss who validates results and code produced with automation.

Agência Holística · Volume III — A Conta Que Ficou: Discuss model drift and input validation when comparing the results of an integration or classifier.

Books & sites

Case studies and references

Labs for this module

These activities connect each laboratory to the lesson. Integration suggestions are adaptations for your own project.

Explore in the browser

ML Engine

Compare a regression, classification and clustering experiment in the lab. Observe the data and outputs used by each task.

What to check: Explain a numeric target, a class and a cluster without treating a cluster index as a known label.

Explore in the browser

Neural Engine

Train an available MLP preset and observe the loss curve. Compare the effect of one configuration change while keeping the same data.

What to check: Record configuration, data and result; distinguish decreasing training error from demonstrating generalization.

Explore the laboratories

05 / EXERCISES

Exercises

  1. 01

    Configuration

    Objective: Separate public parameters from secrets.

    Completion criteria: Document a test run without committing credentials.

  2. 02

    An adapter

    Objective: Replace the service with a test double.

    Completion criteria: Test the interface workflow without a real service call.

  3. 03

    External failure

    Objective: Handle an unavailable service.

    Completion criteria: Report the failure without presenting a simulated response as a real one.

  4. 04

    Limits

    Objective: Explain the integration output.

    Completion criteria: Distinguish the response, confidence when available and cases outside the scope.

  5. 05

    Evidence

    Objective: Record a reproducible run.

    Completion criteria: Identify the synthetic input, execution mode, result and observed limitations.