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:
staticRemarks:
(none)
Inherited public predicates:
check_option/1 check_options/1 check_selector/1 default_option/1 default_options/1 diagnostic/2 diagnostics/2 export_to_clauses/4 export_to_file/4 feature_scores/2 learn/2 learn/3 option/2 option/3 print_selector/1 selected_features/2 selector_options/2 valid_option/1 valid_options/1 valid_selector/1
Public predicates
(no local declarations; see entity ancestors if any)
Protected predicates
relief_model/1
Returns the receiving selector model functor.
Compilation flags:
staticTemplate:
relief_model(Model)Mode and number of proofs:
relief_model(-atom) - onerelief_variant/1
Returns binary, multiclass, or regression.
Compilation flags:
staticTemplate:
relief_variant(Variant)Mode and number of proofs:
relief_variant(-atom) - oneanchors/4
Processes all rows or samples anchors while restoring RNG state on every exit path.
Compilation flags:
staticTemplate:
anchors(Size,Seed,Rows,Anchors)Mode and number of proofs:
anchors(+term,+positive_integer,+list(compound),-list(compound)) - zero_or_one_or_errorExceptions:
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:
staticTemplate:
declarations(Features,Dataset,Declarations)Mode and number of proofs:
declarations(+list(atomic),+object_identifier,-list(pair)) - one_or_errorExceptions:
A declaration is unsupported:
domain_error(feature_type,Feature-Declaration)check_target/2
Checks the target type required by the algorithm variant.
Compilation flags:
staticTemplate:
check_target(Variant,Target)Mode and number of proofs:
check_target(+atom,+nonvar) - one_or_errorExceptions:
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:
staticTemplate:
row_values(Declarations,Dictionary,Values,Complete)Mode and number of proofs:
row_values(+list(pair),+compound,-list,-boolean) - one_or_errorExceptions:
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:
staticTemplate:
population(Variant,Rows,Classes,TargetScale)Mode and number of proofs:
population(+atom,+list(compound),-list(pair),-term) - one_or_errorExceptions:
The eligible population does not satisfy the variant minimum:
domain_error(relief_population,Variant-Counts)Operators
(none)