Package oracle.pgx.api.mllib
Interface VertexAnomalyDetectionModel
- All Known Implementing Classes:
UnsupervisedAnomalyDetectionGraphWiseModel
public interface VertexAnomalyDetectionModel
This interface specifies which methods an object should implement in order to perform vertex anomaly detection.
- Since:
- 23.2
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum -
Method Summary
Modifier and TypeMethodDescription<ID> PgxFrameevaluateAnomalyLabels(PgxGraph graph, Iterable<PgxVertex<ID>> vertices, String vertexAnomalyPropertyName, Object anomalyPropertyValue, float threshold) Blocking version ofevaluateAnomalyLabelsAsync(PgxGraph, Iterable, String, Object, float).evaluateAnomalyLabelsAsync(PgxGraph graph, Iterable<PgxVertex<ID>> vertices, String vertexAnomalyPropertyName, Object anomalyPropertyValue, float threshold) Evaluates anomaly detection performance statistics for the specified vertices.<ID> DoublefindAnomalyThreshold(PgxGraph graph, Iterable<PgxVertex<ID>> vertices, float contaminationFactor) Blocking version offindAnomalyThresholdAsync(PgxGraph, Iterable, float).findAnomalyThresholdAsync(PgxGraph graph, Iterable<PgxVertex<ID>> vertices, float contaminationFactor) Finds an appropriate anomaly threshold for labeling the input vertices as anomalies, respecting the proportion given by the contamination factor<ID> PgxFrameinferAnomalyLabels(PgxGraph graph, Iterable<PgxVertex<ID>> vertices, float threshold) Blocking version ofinferAnomalyLabelsAsync(PgxGraph, Iterable, float).inferAnomalyLabelsAsync(PgxGraph graph, Iterable<PgxVertex<ID>> vertices, float threshold) Infers the anomaly labels for the specified vertices.<ID> PgxFrameinferAnomalyScores(PgxGraph graph, Iterable<PgxVertex<ID>> vertices) Blocking version ofinferAnomalyScoresAsync(PgxGraph, Iterable).inferAnomalyScoresAsync(PgxGraph graph, Iterable<PgxVertex<ID>> vertices) Infers the anomaly scores for the specified vertices.
-
Method Details
-
inferAnomalyScoresAsync
Infers the anomaly scores for the specified vertices.- Parameters:
graph- the input graphvertices- the vertices to find anomaly scores for- Returns:
- PgxFrame containing the scores for each vertex.
- Since:
- 23.2
-
inferAnomalyScores
Blocking version ofinferAnomalyScoresAsync(PgxGraph, Iterable).- Returns:
- PgxFrame containing the scores for each vertex.
- Since:
- 23.2
-
findAnomalyThresholdAsync
<ID> PgxFuture<Double> findAnomalyThresholdAsync(PgxGraph graph, Iterable<PgxVertex<ID>> vertices, float contaminationFactor) Finds an appropriate anomaly threshold for labeling the input vertices as anomalies, respecting the proportion given by the contamination factor- Parameters:
graph- the input graphvertices- the vertices used to find the thresholdcontaminationFactor- the expected proportion of vertices that should be labeled as anomalies- Returns:
- the threshold
- Since:
- 23.2
-
findAnomalyThreshold
<ID> Double findAnomalyThreshold(PgxGraph graph, Iterable<PgxVertex<ID>> vertices, float contaminationFactor) Blocking version offindAnomalyThresholdAsync(PgxGraph, Iterable, float).- Returns:
- the threshold
- Since:
- 23.2
-
inferAnomalyLabelsAsync
<ID> PgxFuture<PgxFrame> inferAnomalyLabelsAsync(PgxGraph graph, Iterable<PgxVertex<ID>> vertices, float threshold) Infers the anomaly labels for the specified vertices.- Parameters:
graph- the input graphvertices- the vertices to produce labels tothreshold- the decision threshold- Returns:
- PgxFrame containing the labels for each vertex.
- Since:
- 23.2
-
inferAnomalyLabels
Blocking version ofinferAnomalyLabelsAsync(PgxGraph, Iterable, float).- Returns:
- PgxFrame containing the labels for each vertex.
- Since:
- 23.2
-
evaluateAnomalyLabelsAsync
<ID> PgxFuture<PgxFrame> evaluateAnomalyLabelsAsync(PgxGraph graph, Iterable<PgxVertex<ID>> vertices, String vertexAnomalyPropertyName, Object anomalyPropertyValue, float threshold) Evaluates anomaly detection performance statistics for the specified vertices.- Parameters:
graph- the input graphvertices- the vertices to produce labels tovertexAnomalyPropertyName- the name of the vertex containing the ground truth anomaly labelsanomalyPropertyValue- the value representing anomalies in vertexAnomalyPropertyName propertythreshold- the decision threshold- Returns:
- PgxFrame containing the evaluation results.
- Since:
- 23.2
-
evaluateAnomalyLabels
<ID> PgxFrame evaluateAnomalyLabels(PgxGraph graph, Iterable<PgxVertex<ID>> vertices, String vertexAnomalyPropertyName, Object anomalyPropertyValue, float threshold) Blocking version ofevaluateAnomalyLabelsAsync(PgxGraph, Iterable, String, Object, float).- Returns:
- PgxFrame containing the evaluation results.
- Since:
- 23.2
-