vertebrae.config

Public configuration objects for vertebrae.

Classes

OverlapScoringConfig

Configuration for MiniBatchKMeans-backed OverlapIndex scoring.

ContinuousOverlapScoringConfig

Configuration for MiniBatchKMeans-backed ContinuousOverlapIndex scoring.

RetrievalConfig

Configuration for exact, training-free query--gallery retrieval scoring.

ZeroShotConfig

Configuration for exact, training-free zero-shot semantic alignment.

SeparatixConfig

Configuration for optional Separatix complexity diagnostics.

StabilityConfig

Configuration for prototype or subsample stability analysis.

LabelViewConfig

Configuration for optional hierarchical label-view benchmarking.

TargetViewConfig

Configuration for optional named target-view benchmarking.

CacheConfig

Artifact cache settings.

EmbeddingConfig

Configuration for embedding generation and materialization.

ExecutionConfig

Artifact-backed benchmark execution settings.

SegmentationConfig

Configuration for dense spatial segmentation evaluation.

EmbeddingCompressionConfig

Configuration for optional embedding compression.

MemoryConfig

Memory budget and admission-control settings.

ResourceProfilingConfig

Opt-in measurement of extraction cost and representation footprint.

Functions

overlap_scoring_config_recipe(config)

Serialize overlap configuration with semantic classification keys.

Module Contents

class vertebrae.config.OverlapScoringConfig[source]

Configuration for MiniBatchKMeans-backed OverlapIndex scoring.

k[source]

Global k, class-to-k mapping, or “auto” for per-class resolution.

min_k[source]

Lower target used by automatic k resolution.

max_k[source]

Maximum k allowed for any class.

min_samples_per_cluster[source]

Minimum class samples expected per prototype.

kmeans_kwargs[source]

Extra keyword arguments passed to MiniBatchKMeans.

offline_chunk_size[source]

Chunk size forwarded to OverlapIndex.fit_offline.

normalize_embeddings[source]

Whether to L2-normalize embeddings before scoring.

max_dense_bytes[source]

Fallback dense-operation limit for downstream diagnostics.

exclude_classes[source]

Reporting-only classes omitted from global aggregation.

class vertebrae.config.ContinuousOverlapScoringConfig[source]

Configuration for MiniBatchKMeans-backed ContinuousOverlapIndex scoring.

vertebrae.config.overlap_scoring_config_recipe(config)[source]

Serialize overlap configuration with semantic classification keys.

Typed class labels are valid configuration values but are not ordinary JSON scalars. Recipes use their canonical semantic keys so local and distributed scoring protocols share one portable representation.

Parameters:

config (Any)

Return type:

Optional[Dict[str, Any]]

class vertebrae.config.RetrievalConfig[source]

Configuration for exact, training-free query–gallery retrieval scoring.

class vertebrae.config.ZeroShotConfig[source]

Configuration for exact, training-free zero-shot semantic alignment.

Zero-shot evaluation compares frozen sample embeddings with frozen text prompt prototypes. It intentionally has no learned calibration, prompt search, or fitted classification head. sample_batch_size bounds the exact sample-to-class score block, while max_dense_bytes caps the estimated scorer working set.

class vertebrae.config.SeparatixConfig[source]

Configuration for optional Separatix complexity diagnostics.

enabled[source]

Whether Separatix diagnostics should run.

overlap_threshold[source]

Minimum classification overlap score required to run.

regression_overlap_threshold[source]

Minimum regression overlap score required to run.

random_state[source]

Seed forwarded to Separatix.

budget[source]

Optional Separatix diagnostic budget.

max_samples[source]

Optional Separatix sample cap.

densify_policy[source]

Behavior when a dense-only diagnostic receives sparse data.

max_dense_bytes[source]

Optional sparse densification memory limit in bytes.

n_jobs[source]

Optional parallelism hint forwarded to Separatix.

mlp_probes[source]

Whether conditional Separatix MLP probes should be enabled.

mlp_device[source]

Requested Separatix MLP execution device.

mlp_trigger_skill_threshold[source]

Skill threshold that suppresses MLP execution.

mlp_min_improvement[source]

Minimum improvement required for an MLP override.

mlp_max_parameters[source]

Optional hard cap for MLP parameter count.

class vertebrae.config.StabilityConfig[source]

Configuration for prototype or subsample stability analysis.

enabled[source]

Whether stability analysis should run.

mode[source]

Stability mode: “prototype”, “subsample”, or “none”.

repeats[source]

Number of repeated scoring runs.

interval_level[source]

Percentile interval level reported in summaries.

subsample_fraction[source]

Fraction sampled for subsample stability.

random_state[source]

Seed used to generate repeat seeds and subsamples.

class vertebrae.config.LabelViewConfig[source]

Configuration for optional hierarchical label-view benchmarking.

enabled[source]

Whether hierarchy-derived label views should be evaluated.

hierarchy_levels[source]

Sequence of hierarchy levels to evaluate. Each level may be an integer index or a named level present in dataset metadata.

output_levels[source]

Mapping from extractor output names to hierarchy levels.

skip_invalid_levels[source]

Whether invalid or unavailable levels should be skipped with a warning instead of raising.

class vertebrae.config.TargetViewConfig[source]

Configuration for optional named target-view benchmarking.

enabled[source]

Whether named target views should be evaluated.

views[source]

Explicit target-view names to evaluate. When empty and enabled, all registered target views are evaluated.

output_views[source]

Mapping from extractor output names to target-view names.

skip_invalid_views[source]

Whether unavailable views should be skipped with a warning instead of raising.

class vertebrae.config.CacheConfig[source]

Artifact cache settings.

enabled[source]

Whether embedding artifacts should be cached.

cache_dir[source]

Local cache directory or artifact-store URI.

force_recompute[source]

Whether to ignore cache hits and recompute embeddings.

storage_options[source]

Provider-specific store options such as S3 endpoint URLs.

metadata[source]

Additional user metadata to preserve with cache settings.

class vertebrae.config.EmbeddingConfig[source]

Configuration for embedding generation and materialization.

batch_size[source]

Number of samples to pass to streaming-safe extractors.

streaming_enabled[source]

Whether streaming-safe extractors should be embedded batch-by-batch instead of in one full transform call.

class vertebrae.config.ExecutionConfig[source]

Artifact-backed benchmark execution settings.

Parameters:
  • total_shards – Requested number of deterministic embedding shards.

  • dispatch_stages – Stages submitted through the configured backend. Omitted stages use the same artifact jobs synchronously on the driver.

  • retain_intermediate_artifacts – Whether to retain shard and run-scoped artifacts after result construction.

class vertebrae.config.SegmentationConfig[source]

Configuration for dense spatial segmentation evaluation.

class vertebrae.config.EmbeddingCompressionConfig[source]

Configuration for optional embedding compression.

enabled[source]

Whether compression should run.

method[source]

Compression method name.

n_components[source]

Target dimension for projection-based compressors.

preserve_variance[source]

PCA variance target in (0, 1).

precision[source]

Quantization precision such as “float16” or “int8”.

assume_matryoshka[source]

Whether prefix truncation should be treated as a matryoshka-style dimension shortening workflow.

random_state[source]

Seed for stochastic compressors.

whiten[source]

Whether PCA outputs should be whitened.

dtype[source]

Optional real floating-point output dtype such as “float32”.

algorithm_kwargs[source]

Extra method-specific keyword arguments.

class vertebrae.config.MemoryConfig[source]

Memory budget and admission-control settings.

max_memory_bytes[source]

Explicit process memory budget. When None, the budget is derived from current available memory using psutil.

reserve_system_bytes[source]

Memory to leave available for the OS and other processes. When None, a conservative reserve is selected.

max_fraction[source]

Maximum fraction of currently available memory to use.

allow_disk_spill[source]

Whether large embedding artifacts may be streamed to disk.

fail_fast[source]

Whether to raise before expensive work when estimates exceed the configured budget.

probe_batch_size[source]

Number of samples used to infer unknown embedding shape.

model_memory_bytes[source]

Optional model memory hint included in admission checks.

raw_batch_memory_bytes[source]

Optional raw batch memory hint included in checks.

subsample_rate[source]

Fraction of samples to keep before embedding and scoring. A value of 1.0 disables user-requested subsampling.

subsample_random_state[source]

Seed used for deterministic stratified subsampling.

min_subsample_samples_per_class[source]

Minimum retained samples per class when class sizes allow it.

auto_subsample_on_memory_exceeded[source]

Whether to warn and select the largest fitting stratified subsample instead of raising when a full embedding artifact would exceed memory.

class vertebrae.config.ResourceProfilingConfig[source]

Opt-in measurement of extraction cost and representation footprint.

Resource profiles are descriptive measurements for the current benchmark protocol. They do not participate in quality scoring or ranking.