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 & sitesCase studies and references
Labs for this module
These activities connect each laboratory to the lesson. Integration suggestions are adaptations for your own project.
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.
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.
Reinforcement Engine
Compare Q-Learning and SARSA in the same scenario and separate exploration from evaluation of the learned policy.
What to check: Report observed rewards and episodes and explain why a reward is not a probability of correctness.
05 / EXERCISES
Exercises
- 01
Configuration
Objective: Separate public parameters from secrets.
Completion criteria: Document a test run without committing credentials.
- 02
An adapter
Objective: Replace the service with a test double.
Completion criteria: Test the interface workflow without a real service call.
- 03
External failure
Objective: Handle an unavailable service.
Completion criteria: Report the failure without presenting a simulated response as a real one.
- 04
Limits
Objective: Explain the integration output.
Completion criteria: Distinguish the response, confidence when available and cases outside the scope.
- 05
Evidence
Objective: Record a reproducible run.
Completion criteria: Identify the synthetic input, execution mode, result and observed limitations.