category

# `probabilistic_classifier_common`

Shared predicates for probabilistic classifiers.

Availability:
`logtalk_load(classification_protocols(loader))`
Author: Paulo Moura
Version: 1:0:0
Date: 2026-05-11
Compilation flags:
`static`
Implements:
`public` probabilistic_classifier_protocol
Extends:
`public` classifier_common
Remarks:
(none)
Inherited public predicates:
check_classifier/1 check_option/1 check_options/1 classifier_options/2 default_option/1 default_options/1 diagnostic/2 diagnostics/2 export_to_clauses/4 export_to_file/4 learn/2 learn/3 option/2 option/3 predict/3 predict_probabilities/3 print_classifier/1 valid_classifier/1 valid_option/1 valid_options/1

## Public predicates

(no local declarations; see entity ancestors if any)

## Protected predicates

### `predict_from_probabilities/3`

Predicts the class label for a new instance by selecting the maximum-probability class returned by `predict_probabilities/3`.

Compilation flags:
`static`
Template:
`predict_from_probabilities(Classifier,Instance,Class)`
Mode and number of proofs:
`predict_from_probabilities(+compound,+list,-atom)` - `one`

### `max_probability/3`

Selects the class-probability pair with maximum probability from a non-empty list of `Class-Probability` pairs.

Compilation flags:
`static`
Template:
`max_probability(Probabilities,Class,Probability)`
Mode and number of proofs:
`max_probability(+list(pair),-atom,-float)` - `one`

## Private predicates

(no local declarations; see entity ancestors if any)

## Operators

(none)