protocol
feature_dataset_protocol
Protocol for datasets used with feature selection algorithms. Generalizes classification_protocols::dataset_protocol to also support regression targets and unsupervised use (no target at all), reusing the same attribute_values/2 predicate for familiarity.
logtalk_load(feature_selection_protocols(loader))staticPublic predicates
attribute_values/2
Enumerates by backtracking the candidate features and their possible values. Each atomic feature name must be declared once. For discrete features, Values is a list of possible values. For continuous (numeric) features, Values is the atom continuous. Never includes the target.
staticattribute_values(Feature,Values)attribute_values(?atomic,-list(atomic)) - zero_or_moreattribute_values(?atomic,-atom) - zero_or_moreexample_count/1
Returns the number of examples. The declared count must match the number of examples enumerated by example/3.
staticexample_count(Count)example_count(-positive_integer) - oneexample/3
Enumerates by backtracking the examples in the dataset. Each example has an Id, a list of Feature-Value pairs with distinct declared feature names, and a Target value. A missing feature is omitted or has an unbound value. Target is an atom for classification, a number for regression, or an unbound variable when unknown.
staticexample(Id,Features,Target)example(-integer,-list(pair),?term) - zero_or_moreProtected predicates
(none)
Private predicates
(none)
Operators
(none)