category

relief_feature_selector_common

Shared joint nearest-neighbor feature selection for Relief, ReliefF, and RReliefF.

Availability:
logtalk_load(feature_selection_protocols(loader))
Author: Paulo Moura
Version: 1:0:0
Date: 2026-10-07
Compilation flags:
static
Remarks:
(none)

Public predicates

(no local declarations; see entity ancestors if any)

Protected predicates

relief_model/1

Returns the receiving selector model functor.

Compilation flags:
static
Template:
relief_model(Model)
Mode and number of proofs:
relief_model(-atom) - one

relief_variant/1

Returns binary, multiclass, or regression.

Compilation flags:
static
Template:
relief_variant(Variant)
Mode and number of proofs:
relief_variant(-atom) - one

anchors/4

Processes all rows or samples anchors while restoring RNG state on every exit path.

Compilation flags:
static
Template:
anchors(Size,Seed,Rows,Anchors)
Mode and number of proofs:
anchors(+term,+positive_integer,+list(compound),-list(compound)) - zero_or_one_or_error
Exceptions:
A sampling size is not evaluable:
type_error(evaluable,Size)
Sampling arithmetic exceeds backend limits:
evaluation_error(Reason)

Private predicates

declarations/3

Resolves continuous and discrete feature declarations to numeric and categorical types.

Compilation flags:
static
Template:
declarations(Features,Dataset,Declarations)
Mode and number of proofs:
declarations(+list(atomic),+object_identifier,-list(pair)) - one_or_error
Exceptions:
A declaration is unsupported:
domain_error(feature_type,Feature-Declaration)

check_target/2

Checks the target type required by the algorithm variant.

Compilation flags:
static
Template:
check_target(Variant,Target)
Mode and number of proofs:
check_target(+atom,+nonvar) - one_or_error
Exceptions:
A regression target is not numeric:
type_error(number,Target)
A classification target is not atomic:
type_error(atomic,Target)

row_values/4

Collects typed row values from an indexed feature dictionary without binding missing values.

Compilation flags:
static
Template:
row_values(Declarations,Dictionary,Values,Complete)
Mode and number of proofs:
row_values(+list(pair),+compound,-list,-boolean) - one_or_error
Exceptions:
A known numeric feature is not numeric:
type_error(number,Value)
A known categorical feature is not atomic:
type_error(atomic,Value)
A known categorical value is outside its declared domain:
domain_error(feature_value,Feature-Value)

population/4

Checks eligible class counts or regression row count and prepares target normalization.

Compilation flags:
static
Template:
population(Variant,Rows,Classes,TargetScale)
Mode and number of proofs:
population(+atom,+list(compound),-list(pair),-term) - one_or_error
Exceptions:
The eligible population does not satisfy the variant minimum:
domain_error(relief_population,Variant-Counts)

Operators

(none)