category
classifier_common
Shared predicates for classifier diagnostics, dataset validation, mixed-feature distance calculations, and export.
logtalk_load(classification_protocols(loader))staticPublic predicates
(no local declarations; see entity ancestors if any)
Protected predicates
classifier_diagnostics_data/2
Hook predicate that importing classifier implementations must define in order to expose diagnostics metadata.
staticclassifier_diagnostics_data(Classifier,Diagnostics)classifier_diagnostics_data(+compound,-list(compound)) - oneclassifier_export_template/4
Hook predicate that importing classifier implementations must define in order to expose the exported classifier template for a given functor.
staticclassifier_export_template(Dataset,Classifier,Functor,Template)classifier_export_template(+object_identifier,+compound,+atom,-callable) - oneclassifier_term_template/2
Hook predicate that importing classifier implementations must define in order to expose the learned classifier term template used by pretty-printing helpers.
staticclassifier_term_template(Classifier,Template)classifier_term_template(+compound,-callable) - oneprint_classifier_template/1
Pretty-printing helper predicate used by importing classifier implementations to show the learned classifier term template.
staticprint_classifier_template(Classifier)print_classifier_template(+compound) - onevalid_attribute_names/1
True when a list of attribute names is a proper list of distinct atoms.
staticvalid_attribute_names(AttributeNames)valid_attribute_names(+list(atom)) - zero_or_onevalid_class_values/1
True when a list of class values is a non-empty proper list of distinct atoms.
staticvalid_class_values(ClassValues)valid_class_values(+list(atom)) - zero_or_onevalid_feature_types/2
True when a list of feature type tags is non-empty and each tag belongs to the given allowed set.
staticvalid_feature_types(FeatureTypes,AllowedTypes)valid_feature_types(+list,+list) - zero_or_onevalid_discrete_values/1
True when a list of categorical values is non-empty, contains only nonvar terms, and has no duplicates.
staticvalid_discrete_values(Values)valid_discrete_values(+list) - zero_or_onevalid_linear_encoders/1
True when a list of encoders only contains valid continuous/3 or categorical/2 encoder terms with distinct attributes.
staticvalid_linear_encoders(Encoders)valid_linear_encoders(+list(compound)) - zero_or_onedataset_attributes/2
Collects the declared dataset attributes and their value domains.
staticdataset_attributes(Dataset,Attributes)dataset_attributes(+object_identifier,-list(pair)) - onedataset_examples/2
Collects the dataset training examples as Id-Class-AttributeValues terms.
staticdataset_examples(Dataset,Examples)dataset_examples(+object_identifier,-list(compound)) - onecheck_examples_non_empty/2
Checks that a training example collection is not empty.
staticcheck_examples_non_empty(Dataset,Examples)check_examples_non_empty(+object_identifier,+list) - onecheck_examples/2
Checks that a training dataset is non-empty, that all example classes belong to the declared class values, and that provided attribute bindings use declared attributes with values matching the declared domains. Missing attribute bindings are allowed.
staticcheck_examples(Dataset,Examples)check_examples(+object_identifier,+list) - one_or_errorcheck_complete_examples/2
Checks that a training dataset is non-empty, that all example classes belong to the declared class values, and that each example contains every declared attribute exactly once with values matching the declared domains. Missing values represented using variables are allowed.
staticcheck_complete_examples(Dataset,Examples)check_complete_examples(+object_identifier,+list) - one_or_errorcheck_complete_examples_nonvar/2
Checks that a training dataset is non-empty, that all example classes belong to the declared class values, and that each example contains every declared attribute exactly once with non-variable values matching the declared domains.
staticcheck_complete_examples_nonvar(Dataset,Examples)check_complete_examples_nonvar(+object_identifier,+list) - one_or_errorbuild_linear_encoders/4
Builds linear-model encoders for continuous and categorical attributes. Continuous encoders optionally standardize features when FeatureScaling is true.
staticbuild_linear_encoders(Attributes,Examples,FeatureScaling,Encoders)build_linear_encoders(+list(pair),+list(compound),+boolean,-list(compound)) - oneexamples_to_linear_rows/3
Encodes examples into Features-Class rows using the given linear encoders.
staticexamples_to_linear_rows(Examples,Encoders,Rows)examples_to_linear_rows(+list(compound),+list(compound),-list(pair)) - oneencode_linear_instance/3
Encodes an instance into a numeric feature vector using the given linear encoders.
staticencode_linear_instance(Encoders,Instance,Features)encode_linear_instance(+list(compound),+list(pair),-list(float)) - onelinear_encoders_feature_count/2
Computes the number of numeric features produced by a set of linear encoders.
staticlinear_encoders_feature_count(Encoders,Count)linear_encoders_feature_count(+list(compound),-integer) - onevalid_classifier_metadata/2
True when diagnostics metadata contains the expected model term.
staticvalid_classifier_metadata(Model,Diagnostics)valid_classifier_metadata(+atom,+list(compound)) - zero_or_onevalid_classifier_metadata/3
True when diagnostics metadata contains the expected model term and records the given effective options.
staticvalid_classifier_metadata(Model,Options,Diagnostics)valid_classifier_metadata(+atom,+list(compound),+list(compound)) - zero_or_onemixed_feature_distance/5
Computes a distance between two mixed-feature vectors using the given feature types and one of the supported metrics euclidean, manhattan, chebyshev, cosine, or minkowski(Order).
staticmixed_feature_distance(Metric,FeatureTypes,Values1,Values2,Distance)mixed_feature_distance(+term,+list,+list,+list,-float) - one_or_errorPrivate predicates
(no local declarations; see entity ancestors if any)
Operators
(none)