WorkflowOtherOpen

[2/3] Set up medoids (2 types) for anomaly detection (crops dataset)

Triggered manually or by an app event. Connects Code, HTTP request, Split Out. Setting Up Medoids for Anomaly Detection Preparatory workflow to set cluster centres and cluster threshold scores, so anomalies can be detected based on these thresholds Here, we're using two approaches to set up these centres: the upper branch is the "distance matrix approach", and the lower is the "multimodal embeddin

Front matter
name: [2/3] Set up medoids (2 types) for anomaly detection (crops dataset)
description: Triggered manually or by an app event. Connects Code, HTTP request, Split Out. ## Setting Up Medoids for Anomaly Detection ### Preparatory workflow to set cluster centres and cluster threshold scores, so anomalies can be detected based on these thresholds Here, we're using two approaches to set up these centres: the upper branch is the *"distance matrix approach"*, and the lower is the *"multimodal embedding model approach"*. Once again, variables for Qdrant: cluster URL and a collection we're working with Which point in the cluster we're using to draw threshold on: the fu
category: Automation
kind: Workflow
software: Code|HTTP request|Split Out

[2/3] Set up medoids (2 types) for anomaly detection (crops dataset)

Triggered manually or by an app event. Connects Code, HTTP request, Split Out. ## Setting Up Medoids for Anomaly Detection

Preparatory workflow to set cluster centres and cluster threshold scores, so anomalies can be detected based on these thresholds

Here, we're using two approaches to set up these centres: the upper branch is the "distance matrix approach", and the lower is the "multimodal embedding model approach". Once again, variables for Qdrant: cluster URL and a collection we're working with Which point in the cluster we're using to draw threshold on: the fu

Steps

  • When clicking ‘Test workflow’ (manualTrigger)
  • Total Points in Collection (httpRequest)
  • Cluster Distance Matrix (httpRequest)
  • Scipy Sparse Matrix (code)
  • Set medoid id (httpRequest)
  • Get Medoid Vector (httpRequest)
  • Prepare for Searching Threshold (set)
  • Searching Score (httpRequest)
  • Threshold Score (set)
  • Set medoid threshold score (httpRequest)
  • Split Out1 (splitOut)
  • Merge (merge)
  • Textual (visual) crop descriptions (set)
  • Embed text (httpRequest)
  • Get Medoid by Text (httpRequest)
  • Set text medoid id (httpRequest)
  • Prepare for Searching Threshold1 (set)
  • Threshold Score1 (set)
  • Searching Text Medoid Score (httpRequest)
  • Medoids Variables (set)
  • Text Medoids Variables (set)
  • Qdrant cluster variables (set)
  • Info About Crop Clusters (set)
  • Crop Counts (httpRequest)
  • Sticky Note (stickyNote)
  • Sticky Note1 (stickyNote)
  • Sticky Note2 (stickyNote)
  • Sticky Note3 (stickyNote)
  • Sticky Note4 (stickyNote)
  • Sticky Note5 (stickyNote)
  • Sticky Note6 (stickyNote)
  • Sticky Note8 (stickyNote)
  • Sticky Note9 (stickyNote)
  • Split Out (splitOut)
  • Sticky Note10 (stickyNote)
  • Sticky Note11 (stickyNote)
  • Sticky Note12 (stickyNote)
  • Sticky Note13 (stickyNote)
  • Sticky Note14 (stickyNote)
  • Set text medoid threshold score (httpRequest)

Import

Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).

Source: https://github.com/Zie619/n8n-workflows/blob/main/Splitout/1731_Splitout_Code_Automation_Webhook.md

Author: Zie619, n8n workflow collection. License: MIT.

Shown here with formatting for the web. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.