protocol
classifier_protocol
Protocol for machine learning classifiers.
logtalk_load(classification_protocols(loader))staticPublic predicates
learn/3
Learns a classifier from the given dataset object using the specified options.
staticlearn(Dataset,Classifier,Options)learn(+object_identifier,-compound,+list(compound)) - onelearn/2
Learns a classifier from the given dataset object using default options.
staticlearn(Dataset,Classifier)learn(+object_identifier,-compound) - onepredict/3
Predicts the class label for a new instance using the learned classifier. The instance is a list of Attribute-Value pairs.
staticpredict(Classifier,Instance,Class)predict(+compound,+list,-atom) - onecheck_classifier/1
Checks that a learned classifier term is structurally valid for the receiving implementation. Throws an exception when the term is not a valid classifier representation.
staticcheck_classifier(Classifier)check_classifier(@compound) - one_or_errorClassifier is a variable:instantiation_errorClassifier is neither a variable nor a valid classifier:domain_error(classifier,Classifier)valid_classifier/1
True when a learned classifier term is structurally valid for the receiving implementation. Succeeds iff check_classifier/1 succeeds without throwing an exception.
staticvalid_classifier(Classifier)valid_classifier(@compound) - zero_or_onediagnostics/2
Returns diagnostics and metadata associated with a learned classifier in a representation-independent way.
staticdiagnostics(Classifier,Diagnostics)diagnostics(+compound,-list(compound)) - onediagnostic/2
Tests or enumerates individual diagnostics metadata terms for a learned classifier.
staticdiagnostic(Classifier,Diagnostic)diagnostic(+compound,?compound) - zero_or_moreclassifier_options/2
Returns the effective training options recorded in a learned classifier diagnostics list.
staticclassifier_options(Classifier,Options)classifier_options(+compound,-list(compound)) - zero_or_oneexport_to_clauses/4
Converts a classifier into a list of predicate clauses. Functor is the functor for the generated predicate clauses. When exporting a serialized classifier term, a noun such as classifier or model is usually clearer than a verb such as classify.
staticexport_to_clauses(Dataset,Classifier,Functor,Clauses)export_to_clauses(+object_identifier,+compound,+callable,-list(clause)) - oneexport_to_file/4
Exports a classifier to a file. Functor is the functor for the generated predicate clauses. When exporting a serialized classifier term, a noun such as classifier or model is usually clearer than a verb such as classify.
staticexport_to_file(Dataset,Classifier,Functor,File)export_to_file(+object_identifier,+compound,+callable,+atom) - oneprint_classifier/1
Prints a classifier to the current output stream in a human-readable format.
staticprint_classifier(Classifier)print_classifier(+compound) - oneProtected predicates
(none)
Private predicates
(none)
Operators
(none)
See also
adaptive_boosting_classifier, c45_classifier, gradient_boosting_classifier, isolation_forest_anomaly_detector, kernel_svm_classifier, knn_classifier, lda_classifier, linear_svm_classifier, logistic_regression_classifier, naive_bayes_classifier, nearest_centroid_classifier, qda_classifier, random_forest_classifier, sgd_classifier