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
  • Method Details

    • inferAnomalyScoresAsync

      <ID> PgxFuture<PgxFrame> inferAnomalyScoresAsync(PgxGraph graph, Iterable<PgxVertex<ID>> vertices)
      Infers the anomaly scores for the specified vertices.
      Parameters:
      graph - the input graph
      vertices - the vertices to find anomaly scores for
      Returns:
      PgxFrame containing the scores for each vertex.
      Since:
      23.2
    • inferAnomalyScores

      <ID> PgxFrame inferAnomalyScores(PgxGraph graph, Iterable<PgxVertex<ID>> vertices)
      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 graph
      vertices - the vertices used to find the threshold
      contaminationFactor - 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)
      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 graph
      vertices - the vertices to produce labels to
      threshold - the decision threshold
      Returns:
      PgxFrame containing the labels for each vertex.
      Since:
      23.2
    • inferAnomalyLabels

      <ID> PgxFrame inferAnomalyLabels(PgxGraph graph, Iterable<PgxVertex<ID>> vertices, float threshold)
      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 graph
      vertices - the vertices to produce labels to
      vertexAnomalyPropertyName - the name of the vertex containing the ground truth anomaly labels
      anomalyPropertyValue - the value representing anomalies in vertexAnomalyPropertyName property
      threshold - 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)
      Returns:
      PgxFrame containing the evaluation results.
      Since:
      23.2