protocol
feature_selector_protocol
Protocol for feature selection models.
logtalk_load(feature_selection_protocols(loader))staticPublic predicates
learn/3
Learns a feature selector from the given dataset object using the specified options.
staticlearn(Dataset,Selector,Options)learn(+object_identifier,-compound,+list(compound)) - one_or_errorOptions is a variable:instantiation_errorOptions is neither a variable nor a list:type_error(list,Options)Option of the list Options is a variable:instantiation_errorOption of the list Options is neither a variable nor a compound term:type_error(compound,Option)Option of the list Options is a compound term but not a valid option:domain_error(option,Option)domain_error(chi_square_expected_count,Feature-expected(ObservedMinimum,RequiredMinimum))evaluation_error(float_overflow)domain_error(feature_type,Feature-Declaration)type_error(number,Value)type_error(atomic,Target)instantiation_errortype_error(atomic,Feature)type_error(list,Features)type_error(pair,Entry)type_error(integer,DeclaredCount)domain_error(positive_integer,DeclaredCount)domain_error(duplicate_feature,Feature)domain_error(unknown_feature,Feature)domain_error(non_empty_examples,Dataset)consistency_error(example_count,DeclaredCount,ObservedCount)learn/2
Learns a feature selector from the given dataset object using default options.
staticlearn(Dataset,Selector)learn(+object_identifier,-compound) - one_or_errordomain_error(feature_type,Feature-Declaration)type_error(number,Value)type_error(atomic,Target)instantiation_errortype_error(atomic,Feature)type_error(list,Features)type_error(pair,Entry)type_error(integer,DeclaredCount)domain_error(positive_integer,DeclaredCount)domain_error(duplicate_feature,Feature)domain_error(unknown_feature,Feature)domain_error(non_empty_examples,Dataset)consistency_error(example_count,DeclaredCount,ObservedCount)selected_features/2
Returns the features selected by the learned selector.
staticselected_features(Selector,Features)selected_features(+compound,-list(atomic)) - onefeature_scores/2
Returns every candidate feature with its relevance score, as a list of Feature-Score pairs sorted by decreasing score (not just the selected ones; see selected_features/2). Shared filter implementations preserve declaration order for numeric ties.
staticfeature_scores(Selector,FeatureScores)feature_scores(+compound,-list(pair)) - onecheck_selector/1
Checks that a learned selector term is structurally valid for the receiving implementation. Throws an exception when the term is not a valid selector representation.
staticcheck_selector(Selector)check_selector(@compound) - one_or_errorSelector is a variable:instantiation_errorSelector is neither a variable nor a valid selector:domain_error(selector,Selector)valid_selector/1
True when a learned selector term is structurally valid for the receiving implementation. Succeeds iff check_selector/1 succeeds without throwing an exception.
staticvalid_selector(Selector)valid_selector(@compound) - zero_or_onediagnostics/2
Returns diagnostics metadata for a learned selector.
staticdiagnostics(Selector,Diagnostics)diagnostics(+compound,-list(compound)) - onediagnostic/2
Enumerates individual diagnostics metadata terms for a learned selector.
staticdiagnostic(Selector,Diagnostic)diagnostic(+compound,?compound) - zero_or_moreselector_options/2
Returns the effective training options recorded in a learned selector diagnostics metadata.
staticselector_options(Selector,Options)selector_options(+compound,-list(compound)) - oneexport_to_clauses/4
Converts a selector into a list of predicate clauses. Functor is the functor for the generated predicate clauses.
staticexport_to_clauses(Dataset,Selector,Functor,Clauses)export_to_clauses(+object_identifier,+compound,+atom,-list(clause)) - oneexport_to_file/4
Exports a selector to a file. Functor is the functor for the generated predicate clauses.
staticexport_to_file(Dataset,Selector,Functor,File)export_to_file(+object_identifier,+compound,+atom,+atom) - oneprint_selector/1
Prints a selector to the current output stream in a human-readable format.
staticprint_selector(Selector)print_selector(+compound) - oneProtected predicates
(none)
Private predicates
(none)
Operators
(none)