custom-distance-metrics

PassAudited by ClawScan on Apr 14, 2026.

Overview

This is an instruction-only skill that provides examples for writing custom distance/similarity functions for sklearn/scipy and does not request credentials, install anything, or perform unrelated actions.

This skill is purely documentation and examples for authoring custom distance functions and appears internally consistent. You can safely review and reuse the example code. As a general precaution, avoid executing untrusted metric code in production or with data that must remain private, and consider vectorizing or using compiled implementations for large datasets to avoid performance issues.