siamese_from_correlation_matrix

Community

Train siamese metrics from correlation structure.

Authorthistleknot
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Derives training signals for siamese or metric-learning models directly from an embedding correlation matrix, eliminating the need for external labels.

Core Features & Use Cases

  • Correlation-to-training target generation: Converts an N×N correlation matrix (e.g., cosine/dot-product structure) into regression-style targets for pairwise similarity learning.
  • Structure-aware hybrid supervision: Augments correlation regression with cluster membership signals (e.g., GMM/HDBSCAN) and decorrelation-based boundary/ordinal guidance.
  • Model refinement and interpretability: Produces a refined embedding space and supports integrated visualization (sorted correlation heatmaps, embedding clouds, and distribution plots) to verify learned structure.

Quick Start

Use siamese_from_correlation_matrix to train a contrastive/metric-learning model from a pre-computed embedding correlation matrix you already have, and generate a refined embedding model that preserves correlation and cluster structure.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: siamese_from_correlation_matrix
Download link: https://github.com/thistleknot/skills/archive/main.zip#siamese-from-correlation-matrix

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.