Library / Code, Git & Developer Tools
Code, Git & Developer Tools
Set Up Qdrant Medoids for Anomaly Detection
When you run it, Qdrant cluster distances are computed and medoid vectors are selected for use in crop image anomaly detection.
What it does
Here we're extracting and gathering all the information about crop clusters, so we can call Qdrant distance matrix API for each cluster. We're propagating the biggest cluster size (of labeled data, in our case all data is labeled; for real use cases don't call distance matrix API if your labeled data is more than a couple of hundreds), the number of unique crop values and unique crop values themselves. We will run the algorithm once per unique crop cluster (to find it's center and threshold).
The steps
- When clicking ‘Test workflow’
- Total Points in Collection
- Cluster Distance Matrix
- Scipy Sparse Matrix
- Set medoid id
- Get Medoid Vector
- Prepare for Searching Threshold
- Searching Score
- Threshold Score
- Set medoid threshold score
- Split Out1
- Merge
- Textual (visual) crop descriptions
- Embed text
26 steps in total.
Similar automations