Skip to content

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

Fixed

  • Correct the native component-selection example and documentation of native versus legacy data orientation and new-row projection.
  • State the exact wheel architectures published for 0.5 and add the version-specific Zenodo DOI to the copyable citation metadata.

[0.5.0] - 2026-10-23

This release changes the public estimator and selection layout to samples x features and makes modern observations the native default. Existing 0.4 applications should follow the migration guide or import the explicit legacy adapter. Python 3.11-3.14 and scikit-learn >=1.8 are required.

Added

  • Add a synthetic mixed-data notebook and execute maintained quickstart, dense PCA and preprocessing tutorial blocks directly from their documentation.

  • Execute six native gallery examples during strict documentation builds, publishing their outputs, source downloads, candidate tables and fitted-state plots. Execute public API docstrings and the actual quickstart/migration blocks. Add installed-wheel documentation checks on minimum/current sklearn, explicit plot/table dependencies and failures for broken examples or stale rendered sources/results/figures. Include documentation build inputs in the source archive and replace retired contributor commands.

  • Document strict-legacy versus modern observation, epsilon and update-order policies, their defaults at each entry point, and an executed migration example. Clarify prior-variance versus observation-noise ordering.

  • Complete the executed mixed-data Pipeline example with independent new rows, inverse decoding through the fitted model/encoder portion, row validation, GridSearchCV and default/pandas/Polars output. Document mask routing and rowwise scoring; verify fold-specific scaling and reconstruction in input units.

  • Add get_feature_names_out and native sklearn pandas/Polars output wrapping for VBPCA and all ten preprocessing transformers. Preserve pandas indices, row order and zero-column dense outputs; refuse sparse table conversion without densification. Add an optional Polars 2.x extra and an executed masked Pipeline example. Normalize Polars input nulls to missing observations; keep raw object masking in pandas mode before Polars numerical output.

  • Add native ObservationMasker to consume Boolean original-variable masks before learned preprocessing. Route its dedicated observation_mask alias through Pipeline fit/transform/scoring and CV/GridSearchCV row splits. Preserve stored and mask-requested sparse zeros without densification, reject malformed sparse buffers before conversion, and keep no training mask/data payload. Include a runnable mixed-input Pipeline example.

  • Add EncodingSchema.validate(..., strict_numeric=True) to require usable single-column continuous/ordinal affine metadata. Apply the same checks in numeric decoding and before raw-cell CV fits. Wholly missing numeric training support cannot supply a finite fitted offset. Default categorical-only schema validation retains its existing numeric-metadata compatibility.

  • Frozen, slotted PCAOptions at the numerical solver boundary, with owned stopping-policy containers and legacy keyword import/export. Separate execution caches and tuning metadata from public requested settings.

  • String-compatible enums for solver algorithms, numerical policies, runtime modes and stopping-rule names, with explicit parsing and executable examples. Existing string normalizers and numerical defaults remain unchanged. Initialization continues to accept warm-start mappings and MAT filenames.

Changed

  • Preserve unselected stored zeros in modern sparse automatic probes and materialize legacy modern mask-requested zeros without sparse addition or epsilon substitution. The public make_xprobe_mask helper defaults to modern splitting, excludes stored NaNs from sampling and accepts an explicit compat_mode="strict_legacy" for historical subtraction/sampling. Legacy automatic fits and component selection pass their configured mode; the native estimator's dedicated sparse split is unchanged.

  • Preserve finite near-zero training/probe values in modern dense explicit-mask fits, matching the equivalent NaN-observation fit. Keep historical epsilon replacement in strict-legacy mode.

  • Reject raw observed sparse infinity at native fit/projection/scoring and component-selection boundaries before conversion can combine duplicates into missing NaNs. Validate sparse data/mask buffers before conversion; preserve explicit exclusions, stored zeros and mask-requested observed zeros.

  • Move public component-selection inputs, masks and probes to samples x features, default to modern observation semantics and return native positive-rank selected estimators without refitting. Preserve the existing cellwise metrics, rank-zero None model result and low-level warm-start axes. Export explicit feature-first helpers from vbpca_py.legacy; keep historical engineering/study scripts on that boundary. Prepared raw-CV training/probe arrays and numeric prediction inputs now use samples x encoded features; version their pickle layout and require old prepared folds to be rebuilt. Reject invalid native capacities instead of truncating or dropping them. Qualify grouped, weighted multi-metric sklearn CV/GridSearchCV with raw mask routing and dense output containers. Masked inference after search uses its fitted best_estimator_ because search transform does not route metadata. Preserve Polars 2 input names and reject changed/reordered columns on the sklearn 1.8 dependency floor, including preprocessors, maskers and probes, without requiring pandas.

  • Name outputs from fitted categories, reference drops and original-variable plans; unnamed encoders use x0, x1, ... and generated collisions receive stable suffixes. Keep fitted display metadata consistent during transform. Reject duplicate table columns even when their labels are not strings. Default numerical transforms and NumPy/SciPy outputs are unchanged.

  • Validate all nine preprocessors at their public boundaries: nonempty 2-D input, numeric/category dtypes, feature counts/names, inverse output width, masks and observed finite values. Declare tested sparse/NaN/category tags. Generalize sparse one-hot encoding to independent blocks for multiple input columns, retaining observed zeros, absent-entry missingness and the existing flat category metadata. Accept dense numeric categorical input as well. Reject sparse masks instead of silently ignoring them, and drop stored NaNs from sparse observation structure. Mixed inverse masks describe original variables and are applied after decoding. Pipeline mask routing and output containers use the native contracts described above.

  • Store only constructor parameters in all nine preprocessors. Create learned fields during fitting, clear previous/partial state on refit failures or cancellation, and raise scikit-learn's NotFittedError before inference. Validate log offsets and winsorization quantiles during fit so invalid requested settings remain cloneable. Numerical transforms are unchanged.

  • Refuse low-level and legacy fits when training-axis removal would discard observed probe entries, including stored zeros. This applies in both compatibility modes and prevents silently incomplete PRMS diagnostics. Unobserved axes without probe entries retain their existing handling.

  • Introduce the native samples-by-features VBPCA estimator with components (q,p), joint training scores (n,q) and a flat feature mean. Default native fits to modern observation semantics, as approved for 0.5. Retain the explicit vbpca_py.legacy.VBPCA feature-first adapter and its historical default.

  • Add conditional transform(X_new) and transform_posterior, preserving full VB loading second moments and latent priors for empty new rows. Keep joint training means distinct from fit_transform projections. Add plug-in row Gaussian scoring with scoring-only row weights and rank-sized solves.
  • Require scikit-learn >=1.8 at runtime and remove optional/no-op estimator bases. Use native validation, transactional fitted-state cleanup and explicit parameter signatures. Preprocessing accepts unsupervised y and keyword-only masks. Qualify estimator and preprocessor contracts on sklearn 1.8.0 and 1.9.1, including selection, Pipeline and cross-validation composition.
  • Version native serialized layouts and explicitly reject unmarked pre-0.5 estimator pickles. Preserve old feature-first characterization tests and versioned engineering runners through explicit legacy imports. See the migration guide for axes, observations, scoring and serialization.

  • Propagate numerical dtype contracts through solver state, covariance helpers, bindings, encoding, preprocessing and selection. Keep raw inputs and dynamic encoder dtypes distinct from float64 working parameters; preserve Boolean observations and signed sparse indices. Slot state records while retaining mutable training payloads. Snapshot immutable encoding metadata and retain owned read-only noise coordinates through serialization; document borrowed descriptors and covariance views. Split omitted-mean initialization from initial centering without changing its arithmetic or update order.

  • Expose every VBPCA solver control as an explicit constructor parameter and use native sklearn parameter introspection, cloning and grid-search plumbing. Store constructor inputs unchanged and validate at configuration/fit time. Replace mutable .opts writes with set_params; get_options() exports fresh public requests and retains num_cpu=None for inheritance. Pass probe data to fit(x, xprobe=...). Unknown names now fail clearly, including the previously ignored MATLAB autosave. Low-level recognized keyword calls remain supported; options=PCAOptions cannot be mixed with solver keyword overrides. See the solver options guide for ownership, thread precedence and migration examples.

Performance

  • Evaluate marginal variance with bounded covariance matrix products and avoid full-shape scratch arrays. Reuse sparse CSR/CSC views and remove observed-cell native heap allocations.

  • Permit explicit endpoint-only cost diagnostics for PRMS selection while retaining historical full cost traces by default. Endpoint mode refuses requests that require cost history; it does not change stopping rules.

  • Use screened complete-minus-missing full-covariance noise statistics for eligible dense, nearly complete inputs at rank 8 or above. Preserve observed zeros and all covariance cross terms, and fall back to observed accumulation for ineligible or poorly scaled cases. Expose explicit execution modes and plan/call metadata without changing priors, residuals or variance floors.

Fixed

  • Return correctly shaped empty score/loading factors and requested covariance outputs at rank zero without a native decomposition solve. This avoids a floating-point signal in Eigen 3.3's empty matrix solve on manylinux wheels. Preserve noise, shape, covariance-bank and sparse-coordinate validation.

  • Slice warm-start feature means/variances with retained loadings, and select diagonal versus stacked score covariances on their declared sample axes. Resolve source covariance-bank indices separately from destination pattern sharing, preserving full covariance cross terms and rejecting malformed layouts/indices. Normalize supported MAT and struct inputs before removing empty axes, while retaining caller ownership and the mean-only model.

  • Preserve standard and min-max normalization of small nonconstant columns after positive changes of measurement units. Remove absolute near-zero cutoffs, detect exact constants before moment reduction and compute sparse variances from centered observations. Retain stored zeros, missing-column metadata and inverse-transform behavior without densifying sparse inputs.

  • Copy initialization payloads before preparation and numerical updates. Fitting now accepts read-only warm-start arrays, retains caller-owned mappings and nested covariance arrays, and starts repeated fits from the values the caller supplied.

  • Detect modern sparse empty axes from observations, retaining stored zeros and observed constant-zero features while excluding stored NaNs. Boolean masks now determine empty axes from their values in both compatibility modes. Keep historical unmasked sparse sum-based handling explicit. Correct and execute the sparse-construction documentation example.

  • Return a valid empty eigensystem for rank-zero native rotation instead of calling an unsupported Eigen decomposition and crashing the Python process. Retain shape and normalizer validation and positive-rank calculations.

  • Stop enabling relative cost-change and composite stopping in coarse recommend_config() profiles, following the registered downstream audit. Priors, probes, caps, angle and RMS controls remain as recommended. Explicit fitter cost rules and independent cost recording remain available. This scoped correction does not certify general posterior stability or migrate pinned scientific policies.

  • Fail Octave parity checks on interpreter evaluation errors, retaining exit status, stdout and stderr. Interpreter absence remains an explicit local skip. The selected CI parity job now propagates failures.

  • Remove unconditional MATLAB covariance debug exports and restore the reference covariance-pattern helper, including covariance-free paths.

Runtime

  • Measure actual covariance/layout/statistics workloads with bounded cold/warm probes and retain chosen counts through subsequent tuning stages. Deduplicate covariance-writeback aliases and skip unrelated shared-pattern probes.
  • Version opt-in execution profiles with machine/allocation/build/BLAS and workload fingerprints, atomic replacement, bounded concurrent merge locks and rule deduplication. Reject incompatible profiles without overwriting them.
  • Report requested/effective native pools independently of loaded BLAS pools; include discoverable cgroup quotas in allocation caps.
  • Qualify sequential first-minimum execution as a separate component-selection rule. It is distinct from exhaustive global-minimum and one-standard-error selection; early execution is only available for the first-minimum rule.
  • Add advisory interleaved performance CI with machine, build, allocation and provenance metadata. Timing checks remain separate from numerical parity.
  • Qualify installed source archives and all advertised platform wheels before publishing. Include fixed MATLAB test fixtures in source archives and refuse qualification when they are missing. Wheel-test dependencies include the pandas and Polars containers exercised by the native contract suite; manual builds do not upload packages.

[0.4.12] - 2026-10-21

Fixed

  • Enforce max_dense_bytes before fit diagnostics, selected-model diagnostics and inverse reconstruction. Fit diagnostics count all three persistent full-shape float64 outputs together using the original shape. Suppressed diagnostics and explicit None retain their opt-out behavior. Byte estimates use Python integers to avoid overflow; the limit excludes temporary storage, factors, covariance stores and peak process memory.

  • Retain boolean masks through dense updates and RMS calculations, skip ineligible fully observed checks, and mask newly owned residuals in place. Remove a duplicate preparation copy while retaining C layout, caller input ownership, numeric-mask behavior and probe isolation.

[0.4.11] - 2026-10-21

Added

  • Typed result and learning-curve mappings, float64/index array aliases and executable docstring examples. Existing result keys and array ownership are retained; learning-curve annotations now distinguish histories from metadata.

Fixed

  • Normalize dense and sparse observation index types independently for NumPy 2.4 static checking, with a pinned cross-platform typing regression check.
  • Retain explicitly stored observed zeros in modern sparse noise-update coordinates, probe exclusion and NaN cleanup. Dense and sparse observations now use the same mask-defined set; strict-legacy handling is retained.
  • Group sparse covariance patterns by sample column. Shared-pattern fits now update each sample in its assigned group and pass complete column groups to rotation, preserving sparse storage and observed zeros.

Documentation

  • Correct the scope of max_dense_bytes, describe dense diagnostic outputs, and distinguish native and BLAS thread limits. Document the current tuning probe, profile and covariance-writeback limitations.
  • Add a backend review with reproducible diagnostic probes, independent numerical comparisons, and scoped Lean/SymPy algebra checks. The prototypes are analysis tools; solver updates, defaults and publication pins are unchanged.

[0.4.10] - 2026-10-20

Added

  • Guarded offline convergence-policy replay from complete retained version 2 screen artifacts (#283). Verify input/source identities and selected stored baselines, preserve named aliases and per-policy denominators, and write a separate exploratory report without refitting or changing frozen results.

Fixed

  • Close replay report temporary files before publication and cleanup on Windows (#287). Keep atomic refusal to overwrite, clean failed writes, record unavailable Git metadata explicitly, and hash actual loaded core modules.
  • Include analysis Python modules and fixed manifests needed by source-archive tests (#286); check collection from the extracted archive and run Windows replay and stopping-option regressions in PR CI.
  • Remove inaccessible external audit citations from the convergence guides and keep their examples scoped to public evidence.
  • Disable the unavailable live slowing_down criterion in recommendations and resolved fit options (#193). Explicit requests warn without mutating the caller's dictionary. Record its unavailable event stream in learning-curve diagnostics; no backtracking counter or new stopping policy is enabled. Removing this already inert flag preserves fitted endpoints and supported numerical thresholds.
  • Reject nonboolean convergence flags before fitting (#281). A string such as "False" previously enabled its criterion through Python truthiness. Normalize supported NumPy boolean scalars into a separate mapping; valid boolean controls retain their meaning and caller-owned inputs remain unchanged.

[0.4.9] - 2026-10-20

Withdrawn before PyPI publication after Windows report-writer validation failed. Superseded by 0.4.10.

[0.4.8] - 2026-10-20

Withdrawn before PyPI publication. Superseded by 0.4.9.

[0.4.7] - 2026-10-20

This patch repairs native failure handling and strengthens numerical reference checks. Valid-input update equations, numerical defaults and preprocessing/CV policies are unchanged from 0.4.6. Existing scientific studies retain their registered software pins until a separately recorded adoption decision.

Fixed

  • Dense worker factorization errors propagate as Python exceptions after all workers join, including safe unwinding after a thread-launch failure (#265). Dense and sparse update kernels reject nonfinite/nonpositive noise variances.
  • Sparse score/loading updates reject negative, out-of-range and descending compressed pointers before reading data (#277).

Testing

  • Require bounded independent dense/sparse update and noise-moment references in local CI and every pull request. Fail unavailable/skipped references and retain explicit modern/legacy comparison scopes (#268).
  • Correct complement-update tests to forward their requested modes and check the native path used by the trajectory fit (#275).
  • Run Python cost-formula and validation tests without Octave; apply optional Octave markers only to the three tests that need that runtime (#276).

Documentation

  • Replace issue and pull-request breadcrumbs in guides and API docstrings with current behavior, named interfaces and explicit limitations.

[0.4.6] - 2026-10-10

The numerical fitting implementation and recommended options for fixed encoded matrices are unchanged from 0.4.5. Encoding-aware scoring and training-only preprocessing intentionally change the CV methodology for mixed encodings.

Added

  • Fitted EncodingSchema / EncodedVariable metadata for dense encoders and CVConfig.encoding_schema for categorical scoring (#266, PR #271). Scores restore centering, weights, dropped references and single-binary levels, while keeping continuous/ordinal columns out of nominal metrics.
  • Raw-table variable-cell component CV (#267): cross_validate_raw_components holds out original cells before learning preprocessing, fits one fresh AutoEncoder per fold, and reuses its schema across candidate capacities. prepare_raw_cv_folds and PreprocessedFold expose masks and fitted metadata for audit. Numeric errors are reported in continuous input or ordinal-index units. External vocabularies/orders can be supplied with column_levels (categories on MissingAwareOneHotEncoder); unknown held-out levels raise.
  • A reproducible fitting-identity gate and release validation instructions in docs/releases/0.4.6.md for the pp-eigentest #195 adoption decision.

Fixed

  • Dense one-hot transforms retain training-fitted means when centering new observations (#266). Schema-free categorical selection rejects ambiguous single-indicator and transformed targets with an actionable error.
  • Trade-study installation recipes use the sibling checkout or the configurable TRADE_STUDY_PATH instead of a workstation-specific absolute path (#269, PR #270).
  • Source distributions include release metadata, validation scripts and these release instructions.

[0.4.5] - 2026-10-02

Preprocessing and diagnostics only: model fitting is unchanged from 0.4.4.

Added

  • check_data reports missingness and scale (#249): DataReport.missingness gives the overall and per-row missing fractions, complete rows, the number of missingness patterns and the rows above missing_fraction_warn (which are also flagged). Continuous features whose standard deviations differ by more than tenfold, or whose median is far from one (VBPCA's default priors assume unit scale), are flagged. check_data(..., mcar_test=True) adds a Bonferroni-corrected Welch screen for missingness that depends on observed values. The one-hot block message now points to drop="first".
  • One-hot encoders can drop a reference level and weight variable blocks (#249). MissingAwareOneHotEncoder and AutoEncoder accept drop="first", which drops each variable's first level so a complete block no longer sums to one, and block_weighting="equal_variance", which scales each variable's block to unit total variance on the fitting data (weights in block_weights_) so variables with many levels do not dominate. feature_groups_ and inverse_transform account for both.
  • Ordinal column type (#249): MissingAwareOrdinalEncoder codes ordered categories as equally spaced scores (sorted, or in a given levels order), scaled like a continuous column, and rounds back to the nearest level in inverse_transform. AutoEncoder(column_types=[..., "ordinal", ...]) routes listed columns to it and reports them as "ordinal" in feature_kinds_.

[0.4.4] - 2026-10-02

Added

  • check_data detects categorical encodings (#250): runs of 0/1 columns with shared missingness whose rows sum to one are reported as one-hot blocks, and DataReport.suggested_feature_groups gives the labels to pass to CVConfig(feature_groups=...). Rare levels, binary variables coded as one indicator, and integer codes that look ordinal are flagged.
  • Categorical held-out scores (#250): with CVConfig(feature_groups=...), cross-validation results report the Brier score, log score and accuracy of held-out (variable, sample) cells, reading the reconstructed block as level probabilities, and CVConfig(metric="brier" | "log_score") selects on them.
  • Variable-cell cross-validation (#250): CVConfig(feature_groups=...) folds over (variable, sample) cells so every indicator of a one-hot encoded variable is held out together. CVConfig(selection_rule="first_minimum") selects the smallest capacity whose successor does not improve the mean held-out metric by more than its standard error, and early_stop=True stops the sweep as soon as that rule triggers (#248).
  • One-hot encoders report their variable structure: feature_groups_ (the input column of every output column) and feature_kinds_ (the kind of every input column) on MissingAwareOneHotEncoder, MissingAwareSparseOneHotEncoder and AutoEncoder, so model selection can hold out whole variables. MissingAwareOneHotEncoder and AutoEncoder accept binary="single" | "both": "both" codes two-level variables with one indicator per level, as the v1/EHS analyses did; "single" (default, unchanged) keeps one indicator for the second level (#250).
  • variance_update_order={"auto", "legacy", "post_rotation"} controls when the ARD prior variances are updated relative to the per-iteration PCA rotation. post_rotation re-estimates Va/Vmu after the rotation and once more from the returned loadings, so Va matches the returned components; legacy keeps the MATLAB order. auto resolves to legacy under compat_mode="strict_legacy" and to post_rotation under compat_mode="modern"; the resolved order is in the runtime report (#253).
  • VBPCA exposes its automatic relevance determination state: prior_variances_, bias_prior_variance_, component_relevance_, effective_rank(threshold=0.01), and a per-iteration prior_trace_ when fitted with record_prior_trace=True (#251).

Fixed

  • The ARD documentation described \(V_a\) as precisions; it is a prior variance, and small values prune. The hp_va, hp_vb, hp_v, niter_broadprior and va_init docstrings now state how each enters the updates (#251).
  • Release wheels for CPython 3.14: the publish workflow pinned a wheel builder that silently skipped the advertised 3.14 builds, so no release so far has shipped 3.14 wheels. It now uses cibuildwheel 4.2.1, and publishing is blocked unless the source distribution and a wheel for every advertised CPython version on Linux x86_64, macOS arm64 and Windows amd64 are present (#177).

[0.4.3] - 2026-09-28

Added

  • Dense masked score and loading updates can use exact complete-minus-missing sufficient statistics. A conservative density- and rank-aware policy selects the formulation automatically and records the resolved modes in the runtime report (#210).
  • bias_update_order selects the MATLAB-compatible mean-first iteration or a post-factor mean update that evaluates mean, RMS, and noise from one current factor state. Modern mode selects the post-factor order automatically (#222).
  • Fitted estimators expose the resolved runtime policy through runtime_policy_report_, including worker limits and dense-kernel choices used by the fit (#211).
  • check_data() accepts an explicit observation mask, so preprocessing diagnostics use the same missing-data contract as model fitting (#213).
  • New genomics-dosage and sparse-CSR tutorials document missing-value semantics, filtering, scaling, and memory-aware workflows (#181, #213).

Changed

  • recommend_config() now selects post-factor mean/RMS ordering after the registered modern-defaults study found equal or lower rank error with effectively unchanged prediction and calibration. The estimator's strict-legacy default remains unchanged (#214, #226, #237).
  • Explained-variance diagnostics use fitted low-rank factors instead of forming a dense reconstruction, reducing peak memory and work while preserving the reported quantity (#212).
  • Runtime tuning respects scheduler CPU allocations and reuses one resolved policy across compatible component candidates, avoiding oversubscription and repeated calibration during rank sweeps (#211).
  • Dense masked updates reuse compact masks and workspaces, write covariance results directly into NumPy buffers, and select exact complete-minus-missing sufficient statistics when density and rank make that formulation favorable (#208, #209, #210).

Fixed

  • Bias and centered-data state now persist across iterations, absent means are initialized from observed row means, and explicit dense masks exclude masked values from that initialization (#222).
  • Native extension worker limits now follow the resolved scheduler allocation consistently across dense, sparse, rotation, noise, and subtraction kernels (#211).
  • Registered study manifests retain LF line endings on every platform, keeping their byte-level provenance hashes stable in Windows wheel builds (#241).
  • CPU-allocation tests isolate every host CPU-count source, including os.process_cpu_count(), so wheel validation is portable across runners (#243).
  • RMS autotune threshold tests now isolate the effective CPU-count helper so host process limits cannot alter their synthetic cap (#245).

[0.4.2] - 2026-09-27

Fixed

  • Dense masked runtime autotuning now falls back to the already resolved thread policy when an optional benchmark probe encounters a numerical factorization failure. The fit continues, the runtime report records the fallback, and no failed profile rule is saved (#203).

[0.4.1] - 2026-09-27

Added

  • The package exports RANK_ZERO_SELECTION_SUPPORTED so downstream tools can require the explicit mean-only model-selection contract without inspecting private APIs (#201).
  • Component sweeps and entry-wise cross-validation accept an explicit rank-zero candidate, evaluated as a dense mean-only model with held-out predictive RMS. Existing defaults remain positive-rank only; variational-cost selection rejects rank zero because the objectives are not comparable (#199).
  • Convergence-validation manifests now include the exact policy resolved by recommend_config() and leave-one-criterion-out ablations, while shards retain compact versioned learning curves for offline policy replay. Legacy version 1 manifests remain readable (#192).

Fixed

  • Entry-wise component cross-validation now reserves a minimum bipartite edge cover as permanent training support, then partitions the remaining entries across folds. This guarantees that every non-empty row and column remains estimable even for large masks with many degree-two samples, where random retry-based fold assignment could fail deterministically. Entries in the support backbone are not used as validation targets (#187).

[0.4.0] - 2026-09-25

Added

  • random_state constructor kwarg on VBPCA: seeds parameter initialization and any auto-generated xprobe mask (int, np.random.Generator, or None, following the sklearn convention). Surfaced via get_params()/set_params()/get_options() (#109).
  • cross_validate_components() results now retain per-fold iteration counts, convergence flags/reasons, and candidate-level convergence summaries so callers can audit CV fit quality and iteration-budget saturation (#159).

Fixed

  • Convergence-margin confidence intervals now use a paired, regime-stratified bootstrap that preserves the fixed validation design instead of allowing pooled bootstrap draws to change the regime composition (#172).
  • Dense probe generation now copies an explicit observation mask before intersecting it with finite data, so caller-owned and read-only masks are preserved (#157).
  • Recommendation routing now evaluates both aspect-ratio directions before the absolute feature-count guard, so large-but-tall matrices no longer receive a wide-data configuration. Large balanced matrices have a distinct large_scale routing label tied to the single-cell validation regime (#142).
  • Warmup/cap warnings now use resolved options, so an explicit maxiters that is no larger than the default niter_broadprior can no longer fail silently (#133).
  • Convergence plateaus and relative-change rules now reject worsening RMS or variational-free-energy trajectories. Curvature stopping additionally requires a small first-order slope, so constant steep improvement cannot be mistaken for convergence (#141).
  • Probe early stopping now restores the model state with the lowest observed probe RMS and exposes its iteration and metric. Cost plateau, relative, and curvature rules also record separate diagnostic traces (#141).
  • Cross-validation now seeds both fold assignment and candidate fits, rejects folds that would empty a training row or column, validates small observation counts, and refuses to densify sparse inputs silently (#144).
  • Component selection now evaluates the requested metric exactly, records cost without silently enabling cost-based convergence, and stops after exactly the configured number of consecutive non-improving candidates (#140).
  • Probe holdouts now remain excluded from training when callers provide an explicit observation mask. Sparse probe matrices are accepted without densification, and mask-aware probe generation preserves explicitly observed zero values (#145).
  • select_n_components() now respects a caller-supplied xprobe_fraction when auto-generating a held-out probe set for the "prms"/"cost" selection metrics. Previously _ensure_metric_opts ignored it entirely and always used a hardcoded 10% probe fraction, regardless of what xprobe_fraction (e.g. from recommend_config()) was passed in — silently training every model-selection candidate on less data than the caller configured (#122).
  • select_n_components() no longer invents a 10% probe holdout for "cost" or "rms" selection when the caller supplied neither xprobe nor a positive xprobe_fraction. Explicit probe settings are still honored for convergence diagnostics, while "prms" retains its historical 10% fallback (#125).
  • Convergence-angle logging now handles complete ARD pruning without reducing an empty principal-angle array. Stable empty subspaces have angle zero; a transition to or from an empty subspace uses the maximal angle so it cannot trigger premature angle convergence (#128).
  • select_n_components() now passes its prepared probe mask explicitly into each candidate fit and seeds that mask from the caller's random_state. This prevents a second, differently seeded holdout inside VBPCA.fit() and makes a one-candidate sweep match the corresponding direct fit (#130).

Changed

  • Four coarse recommend_config() buckets now use validated convergence margins instead of suppressing every convergence stop through their full iteration budget: wide_moderate uses zero warmup/1600 iterations, tall_moderate zero/400, tall_extreme zero/800, and large_scale zero/400. Across 120 preregistered paired fits, exact rank recovery improved from 82.5% to 90.0%, rank MAE from 1.058 to 0.183, and selected-fit budget hits fell from 100% to 5%; difficult wide and tall-extreme MNAR fits can still reach the cap (#133, #166, #168).
  • cross_validate_components() now accepts held-out probe RMS ("prms") as its sole selection objective. Variational cost remains available in returned diagnostics but is no longer mislabeled as a held-out CV metric (#144).
  • The inert VBPCA(tol=...) compatibility parameter is deprecated and warns on fit(). Configure rmsstop, cfstop_rel, or minangle explicitly instead (#140).
  • Behavior change: the default (random_state=None) now draws fresh entropy on every fit() call. Previously, default initialization was silently seeded with a fixed value regardless of configuration, so repeated fits produced identical results without any way to request a different draw. Pass random_state=<int> for reproducible runs (#109).
  • recommend_config()'s missingness parameter now warns (UserWarning) when passed anything other than the default "auto", instead of silently ignoring it. Recommendations currently use matrix shape, not missingness; the trade-study design is too sparse within missingness-by-shape cells to branch on responsibly (#110, see also #111).
  • defaults.py's docstring corrected the unsupported "hp_va is the dominant lever" claim (the trade study's own marginal sensitivity data doesn't support it) and now documents a real validation: replicated (n_reps=8, seeded) rank_mae for the shipped bucket configs is 28-58% lower than the library default across all three p-buckets, at a 0.4-3.8% cost in holdout RMSE (#111).
  • recommend_config() now warns when a requested matrix shape falls outside the dense Option A validation grid instead of silently extrapolating a feature-count bucket (#116).
  • recommend_config() now routes out-of-grid shapes to five coarse buckets: wide_moderate, wide_extreme, tall_moderate, tall_extreme, and large_scale. Each is derived from adaptive search at one representative regime, so the function warns that these are coarser than the replicated smallp/trans/large recommendations (#120, #142).

[0.3.0] - 2026-08-17

Added

  • recommend_config(n, p, missingness="auto", priority="balanced"): regime-aware VBPCA configurations distilled from the Option A regime-surrogate trade study. Exposed as vbpca_py.recommend_config.
  • predictive_variance_ fitted attribute: reconstruction variance including observation noise (variance_ + noise_variance_). Prediction intervals built from variance_ alone under-covered noisy held-out entries (~48-65% at nominal 95%); predictive_variance_ restores coverage to ~94-96% (#104).
  • scikit-learn estimator compatibility for VBPCA (get_params/set_params, cloning) (#103, closes #34).
  • Configurable convergence-criterion ordering and per-criterion enable/disable via criterion_order and convergence_criteria constructor kwargs (#102, closes #101).
  • Convergence diagnostics exposed as fitted attributes: n_iter_, convergence_reason_, learning_curve_ on VBPCA, plus per-trial n_iter/convergence_reason in select_n_components traces (#100, closes #99).
  • Public documentation site (MkDocs + GitHub Pages).

Changed

  • scikit-learn is now an optional dependency rather than a hard import (#105).

Fixed

  • mypy 2.3.0 strict-mode compatibility.

[0.2.0] - 2026-04-15

Added

  • Convergence overhaul: relative ELBO stopping, curvature stopping, composite convergence criteria, and configurable patience windows (#95).
  • K-fold cross-validated model selection via cross_validate_components and CVConfig (#79).
  • Preprocessing transforms: MissingAwareLogTransformer, MissingAwarePowerTransformer, MissingAwareWinsorizer (#82).
  • Preflight data diagnostics via DataReport and check_data() (#82).
  • Expose prior hyperparameters hp_va, hp_vb, hp_v as VBPCA constructor parameters (#87).
  • Expose niter_broadprior on VBPCA constructor (#96).
  • Expose va_init (initial broad prior value) on VBPCA constructor (#97).
  • Expose xprobe_fraction for auto-generated holdout probe masks, and make_xprobe_mask utility (#98).
  • Expose xprobe parameter in VBPCA.fit() for explicit probe data (#86).
  • Store subspace angle in learning curves (lc["angle"]) (#90).
  • GitHub issue templates for bugs, features, and documentation (#83).

Fixed

  • ARD stability with missing data: clamp per-iteration Va shrinkage rate and scale ARD denominator by observed-entry fraction (#86).
  • _marginal_variance crash when rmempty drops columns (#74).
  • variance_ attribute now available on best model returned by select_n_components (#85).
  • 'rms' added to _Metric type hint in model selection (#57).

Changed

  • Skip octave-parity CI job when only irrelevant files changed (#88).
  • Document RMS oscillation workaround (center data before fitting) in Known Limitations.

[0.1.1] - 2026-04-02

Added

  • Python 3.14 wheels and CI coverage.

Fixed

  • Package __version__ is now read from distribution metadata instead of a separately maintained constant.

[0.1.0] - 2026-03-31

Added

  • Core VBPCA estimator with sklearn-like fit/transform/inverse_transform API.
  • Support for dense and sparse (CSR/CSC) data with explicit missing-entry masks.
  • Optional bias estimation and orthogonal post-rotation to PCA basis.
  • Posterior covariances for scores and loadings; probe-set RMS for held-out validation.
  • C++ extensions via pybind11/Eigen for performance-critical dense, sparse, noise, and rotate kernels.
  • Runtime autotuning: thread counts, buffered accessors, and covariance writeback mode selection.
  • select_n_components model selection with configurable metric, patience, and early stopping.
  • SelectionConfig dataclass for sweep control.
  • Missing-aware preprocessing: AutoEncoder, MissingAwareOneHotEncoder, MissingAwareStandardScaler, MissingAwareMinMaxScaler.
  • MissingAwareSparseOneHotEncoder for sparse categorical encoding preserving CSR structure.
  • Optional plotting utilities (vbpca_py.plotting): scree_plot, loadings_barplot, variance_explained_plot.
  • Property-based tests (hypothesis), integration round-trip tests, and missing-data edge-case tests.
  • GitHub Actions CI: lint, format check, mypy --strict, pytest with coverage across Python 3.11–3.13.
  • justfile command runner with recipes for dev, test, benchmark, and CI workflows.
  • CITATION.cff for machine-readable citation metadata.
  • CONTRIBUTING.md with developer guidelines.