protocol
anomaly_detector_protocol
Protocol for machine learning anomaly detectors.
logtalk_load(anomaly_detection_protocols(loader))staticPublic predicates
learn/2
Learns an anomaly detector from the given dataset object.
staticlearn(Dataset,AnomalyDetector)learn(+object_identifier,-compound) - onelearn/3
Learns an anomaly detector from the given dataset object using the specified options.
staticlearn(Dataset,AnomalyDetector,Options)learn(+object_identifier,-compound,+list(compound)) - onecheck_anomaly_detector/1
Checks that a learned anomaly detector term is structurally valid for the receiving implementation. Throws an exception when the term is not a valid anomaly detector representation.
staticcheck_anomaly_detector(AnomalyDetector)check_anomaly_detector(@compound) - one_or_errorAnomalyDetector is a variable:instantiation_errorAnomalyDetector is neither a variable nor a valid anomaly detector:domain_error(anomaly_detector,AnomalyDetector)valid_anomaly_detector/1
True when a learned anomaly detector term is structurally valid for the receiving implementation. Succeeds iff check_anomaly_detector/1 succeeds without throwing an exception.
staticvalid_anomaly_detector(AnomalyDetector)valid_anomaly_detector(@compound) - zero_or_onediagnostics/2
Returns diagnostics and metadata associated with a learned anomaly detector in a representation-independent way.
staticdiagnostics(AnomalyDetector,Diagnostics)diagnostics(+compound,-list(compound)) - onediagnostic/2
Tests or enumerates individual diagnostics metadata terms for a learned anomaly detector.
staticdiagnostic(AnomalyDetector,Diagnostic)diagnostic(+compound,?compound) - zero_or_moreanomaly_detector_options/2
Returns the effective training options recorded in a learned anomaly detector.
staticanomaly_detector_options(AnomalyDetector,Options)anomaly_detector_options(+compound,-list(compound)) - onepredict/3
Predicts whether a new instance is normal or anomaly using the learned detector. The instance is a list of Attribute-Value pairs.
staticpredict(AnomalyDetector,Instance,Prediction)predict(+compound,+list,-atom) - onepredict/4
Predicts whether a new instance is normal or anomaly using the learned detector and the specified options. The instance is a list of Attribute-Value pairs.
staticpredict(AnomalyDetector,Instance,Prediction,Options)predict(+compound,+list,-atom,+list(compound)) - onescore/3
Computes an anomaly score in the interval [0.0, 1.0] for a new instance. Larger scores indicate more anomalous instances.
staticscore(AnomalyDetector,Instance,Score)score(+compound,+list,-float) - onescore_all/3
Computes anomaly scores for all examples in a dataset and returns a list of Id-Class-Score triples sorted by descending score.
staticscore_all(Dataset,AnomalyDetector,Scores)score_all(+object_identifier,+compound,-list) - oneexport_to_clauses/4
Converts an anomaly detector into a list of predicate clauses. Functor is the functor for the generated predicate clauses. When exporting a serialized detector term, a noun such as detector or model is usually clearer than a verb such as detect.
staticexport_to_clauses(Dataset,AnomalyDetector,Functor,Clauses)export_to_clauses(+object_identifier,+compound,+callable,-list(clause)) - oneexport_to_file/4
Exports an anomaly detector to a file. Functor is the functor for the generated predicate clauses. When exporting a serialized detector term, a noun such as detector or model is usually clearer than a verb such as detect.
staticexport_to_file(Dataset,AnomalyDetector,Functor,File)export_to_file(+object_identifier,+compound,+callable,+atom) - oneprint_anomaly_detector/1
Prints an anomaly detector to the current output stream in a human-readable format.
staticprint_anomaly_detector(AnomalyDetector)print_anomaly_detector(+compound) - oneProtected predicates
(none)
Private predicates
(none)
Operators
(none)