Skip to content

Online learning

The map of online learning

Click an area to open its page, or one of its pages on the right, or the button at the top to go back to the map of the library.

The groups, the areas and every page of the tab. The number of classes in each area is the count of the catalog of the library; the pages are those of the menu; the figure is drawn by a script, so it follows the menu and the code.

What an online tool is

An online tool learns from one sample at a time, while the data arrives. There is no separate training phase: the tool is always ready to answer, and every new sample makes it a little better. This page is the map of the whole area. Each box of the figure is a section of this tab, and the pages below tell you which one to open.

1. The four groups

Group The question Where to go
Predict Given the features of a sample, what is its label or its number? Adaptive learners (with metric learning), Trees, Forests, Ensembles, Linear models, Naive Bayes, Neighbours, Multiclass, Multi-output
Detect What is strange, what has changed, what must stay out of the model? Anomaly detection, Drift detection, Protection
Decide and suggest Which action to take, which label to ask for, which item to recommend? Bandits, Active learning, Recommenders, Factorization machines
Model the stream How do the numbers move in time, and how are they distributed? Time series, Distributions, Optimizers, Clustering, Rules

All the tools of the four groups follow the same roles: learn_one to show a sample, and one question to ask afterwards (predict_one, score_one, transform_one, update). A tool of one group can be swapped for another of the same role without changing the code around it.

2. Around the learners

The same tab holds the sections that feed and judge the learners:

3. Where to start

  1. The first learned model, in five lines: the smallest example.
  2. The first protected model, in five lines: the same model with a shield against corrupted samples.
  3. Roles: the short list of methods that every tool follows, and how to write a new one.

Details

  • The interactive map is drawn by docs/assets/maps/make_online_map.py from the menu of mkdocs.yml and from the catalog, so a page that is added to the tab appears in it when the script is run again.
  • The groups are a reading order, not a hierarchy of the code: in the library every area is a folder of dense_armor/core/online/.
  • The counts are the classes of the catalog (dense_armor.usable.catalog) for each folder of dense_armor/core/online/. The script docs/assets/online/make_overview_figure.py stops if a folder is not placed in a group, so a new area cannot be forgotten.