Skip to learning content

DATA SCIENCE PYTHON PLAYGROUND

Machine Learning · Learn / Refresh

← Classification lessonsQUESTIONS · MODELS · EVIDENCE
Class distributions · ML-C-R3 · 15–20 MIN

Trees and distributions retrieval

Retrieval 1

Exercises within this concept

  1. Retrieval 1Retrieve and applyCurrent exercise
  2. Retrieval 2Retrieve and apply
  3. Retrieval 3Retrieve and apply
Retrieval 1 · LINE24

A proposed Naive Bayes scenario contains a temperature, a yes/no flag and a named service category in one undifferentiated input block.

Does the production recipe support that mixed likelihood?

Retrieve earlier concepts before combining them.

This practice: Retrieve earlier concepts before combining them. Next: Retrieval 2 · Trees and distributions retrieval.

Supporting concepts: Classification trees → · Match Naive Bayes to feature types → · QDA allows class-specific shapes →

Remember the idea

Use the inputs and evidence to recover the method. Hints and explained solutions remain collapsed; exact phrasing is not graded.

Retrieve earlier concepts before combining them.Candidate ACandidate BFitValidateCostCompare matching evidence; smaller error can cost more.
Schematic · Retrieve earlier concepts before combining them.Scroll the diagram horizontally if needed.
Hint 1 — Think

Recall that one likelihood assumption does not automatically fit every input meaning.

Hint 2 — Tools

Gaussian, Bernoulli and encoded categorical paths.

Hint 3 — Approach

Match each feature type to its required handling and inspect what the proposed recipe omits.

Explained solution

The production NB scenarios are pure-type paths. A valid mixed-likelihood design would require additional modelling work beyond the current workflow.

The production NB scenarios are pure-type paths. A valid mixed-likelihood design would require additional modelling work beyond the current workflow.

Helpful prior knowledge: Classification trees · Match Naive Bayes to feature types · QDA allows class-specific shapes These links are guidance, not locks.

Sources and API context

Examples run with this Playground’s scikit-learn 1.4.2 / Pyodide 0.26.4 runtime.

A proposed Naive Bayes scenario contains a temperature, a yes/no flag and a named service category in one undifferentiated input block. Does the production recipe support that mixed likelihood?