From bc93163be6aec1d7296405b56718bfd358f6e07d Mon Sep 17 00:00:00 2001 From: Juan Sugg Date: Tue, 10 Nov 2026 03:19:01 -0300 Subject: [PATCH] chore(deps): bump scikit-learn to 1.9 and surface version skew Requires scikit-learn >=1.9.0,<1.10.0 (locks 1.9.1; adds narwhals). - Quality gate logs a WARNING with requested folds, speaker and sample counts when grouped CV falls back to a single grouped holdout. The fallback and the reported fold_strategy are unchanged. - Artifact metadata records the scikit-learn version at save time. - The pickle loader no longer drops InconsistentVersionWarning silently: it logs one WARNING per artifact with re-train or re-save guidance. Other unpickling warnings stay suppressed, as before. - CHANGELOG notes the one-time CV metric shift from the 1.8 StratifiedGroupKFold shuffle fix. --- CHANGELOG.md | 13 +++ pyproject.toml | 2 +- ser/_internal/models/artifact_envelope.py | 4 +- ser/_internal/models/artifact_loading.py | 50 +++++++++++- ser/_internal/models/artifact_metadata.py | 10 +++ ser/_internal/runtime/profile_quality_gate.py | 14 +++- .../runtime/test_profile_quality_gate.py | 18 ++++- .../unit/models/test_artifact_loading.py | 81 +++++++++++++++++++ .../unit/models/test_artifact_upgrade_path.py | 31 +++++++ uv.lock | 43 +++++----- 10 files changed, 239 insertions(+), 27 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 463cf6e..ded6cf9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -54,6 +54,19 @@ after its first published distribution. failures continue to exit `1` with a traceback. - `ser doctor` and the training preflight now include training readiness checks. - README Python API guidance now directs workflow users to `ser.api`. +- scikit-learn is now required at `>=1.9.0,<1.10.0`. scikit-learn 1.8 fixed how + `StratifiedGroupKFold(shuffle=True)` assigns groups to folds, so grouped + cross-validation folds, and the quality-gate metrics computed from them, + shift once relative to earlier runs with the same seed. Compare gate results + across this upgrade as a new baseline rather than as a regression. +- When grouped cross-validation is infeasible (more folds than speakers), the + quality gate now logs a WARNING with the requested fold count and the speaker + and sample counts before falling back to a single grouped holdout. The + fallback behavior and the reported `fold_strategy` are unchanged. +- Model artifacts now record the scikit-learn version they were saved with. + Loading an artifact pickled under a different scikit-learn version logs one + WARNING with re-train or re-save guidance instead of silently suppressing the + version warning; other unpickling warnings stay suppressed. ### Fixed diff --git a/pyproject.toml b/pyproject.toml index faf72e9..ac1a0cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ dependencies = [ "numpy>=2.0.0,<3.0.0; python_version >= '3.13'", "openai-whisper>=20250625,<20260000; python_version < '3.13' or (sys_platform != 'darwin' or platform_machine != 'x86_64')", "ffmpeg-python>=0.2.0,<0.3.0", - "scikit-learn>=1.3.2,<1.8.0", + "scikit-learn>=1.9.0,<1.10.0", "soundfile>=0.14.0,<1.0.0", "python-dotenv>=1.2.2,<2.0.0", "PyYAML>=6.0,<7.0", diff --git a/ser/_internal/models/artifact_envelope.py b/ser/_internal/models/artifact_envelope.py index f87cec3..27629e5 100644 --- a/ser/_internal/models/artifact_envelope.py +++ b/ser/_internal/models/artifact_envelope.py @@ -4,6 +4,7 @@ from typing import NamedTuple, cast +import sklearn from sklearn.neural_network import MLPClassifier from sklearn.pipeline import Pipeline @@ -71,7 +72,7 @@ def build_model_artifact_metadata( seed: int | None = None, evaluation_summary: dict[str, object] | None = None, ) -> dict[str, object]: - """Builds normalized artifact metadata for persisted model envelopes.""" + """Builds normalized artifact metadata, stamping the scikit-learn version used to save.""" return build_v3_artifact_metadata( artifact_version=MODEL_ARTIFACT_VERSION, artifact_schema_version=ARTIFACT_SCHEMA_VERSION, @@ -95,6 +96,7 @@ def build_model_artifact_metadata( sampling_policy=sampling_policy, seed=seed, evaluation_summary=evaluation_summary, + sklearn_version=sklearn.__version__, ) diff --git a/ser/_internal/models/artifact_loading.py b/ser/_internal/models/artifact_loading.py index a6d76bc..57f36df 100644 --- a/ser/_internal/models/artifact_loading.py +++ b/ser/_internal/models/artifact_loading.py @@ -5,13 +5,19 @@ import logging import pickle import warnings -from collections.abc import Callable +from collections.abc import Callable, Sequence from importlib import import_module from pathlib import Path from typing import Literal, Protocol, TypeVar, cast +from sklearn.exceptions import InconsistentVersionWarning + type ArtifactFormat = Literal["pickle", "skops"] +_LOGGER = logging.getLogger(__name__) +# (artifact path, saved version, running version) already reported in this process. +_REPORTED_VERSION_MISMATCHES: set[tuple[str, str, str]] = set() + class ModelCandidateLike(Protocol): """Structural contract for model artifact candidates.""" @@ -160,16 +166,52 @@ def load_secure_model_artifact( return loaded_model_factory(payload, feature_size) +def report_sklearn_version_mismatch( + candidate_path: Path, + caught: Sequence[warnings.WarningMessage], + *, + logger: logging.Logger, +) -> None: + """Logs one WARNING when an artifact was pickled under another scikit-learn version.""" + mismatches = [ + cast(InconsistentVersionWarning, record.message) + for record in caught + if isinstance(record.message, InconsistentVersionWarning) + ] + if not mismatches: + return + saved_version = mismatches[0].original_sklearn_version + running_version = mismatches[0].current_sklearn_version + key = (str(candidate_path), saved_version, running_version) + if key in _REPORTED_VERSION_MISMATCHES: + return + _REPORTED_VERSION_MISMATCHES.add(key) + estimators = sorted({mismatch.estimator_name for mismatch in mismatches}) + logger.warning( + "Model artifact %s was saved with scikit-learn %s and is loaded with %s " + "(estimators: %s). Predictions are not guaranteed to match; re-train with " + "`ser --train` or re-save the artifact under scikit-learn %s to remove this warning.", + candidate_path, + saved_version, + running_version, + ", ".join(estimators), + running_version, + ) + + def load_pickle_model_artifact( *, candidate_path: Path, deserialize_payload: Callable[[object], PickleLoadedModelT], + logger: logging.Logger | None = None, ) -> PickleLoadedModelT: - """Loads and deserializes one compatibility pickle artifact.""" - with warnings.catch_warnings(): - warnings.filterwarnings("ignore") + """Loads one compatibility pickle artifact, surfacing only version-skew warnings.""" + # Recording keeps unpickling noise out of user output; version skew is reported explicitly. + with warnings.catch_warnings(record=True) as caught: + warnings.simplefilter("always") with candidate_path.open("rb") as model_fh: payload = pickle.load(model_fh) + report_sklearn_version_mismatch(candidate_path, caught, logger=logger or _LOGGER) return deserialize_payload(payload) diff --git a/ser/_internal/models/artifact_metadata.py b/ser/_internal/models/artifact_metadata.py index 4e0d36c..4660fa7 100644 --- a/ser/_internal/models/artifact_metadata.py +++ b/ser/_internal/models/artifact_metadata.py @@ -139,6 +139,11 @@ def normalize_v2_artifact_metadata( if not isinstance(torch_dtype, str) or not torch_dtype.strip(): raise ValueError("Model artifact metadata contains invalid 'torch_dtype' value.") normalized["torch_dtype"] = torch_dtype.strip().lower() + sklearn_version = metadata.get("sklearn_version") + if sklearn_version is not None: + if not isinstance(sklearn_version, str) or not sklearn_version.strip(): + raise ValueError("Model artifact metadata contains invalid 'sklearn_version' value.") + normalized["sklearn_version"] = sklearn_version.strip() return normalized @@ -159,6 +164,7 @@ def build_v2_artifact_metadata( torch_device: str | None, torch_dtype: str | None, provenance: dict[str, object] | None, + sklearn_version: str | None = None, ) -> dict[str, object]: """Builds normalized v2 artifact metadata for persisted model envelopes.""" resolved_feature_dim = feature_vector_size if feature_dim is None else feature_dim @@ -193,6 +199,8 @@ def build_v2_artifact_metadata( if not resolved_torch_dtype: raise ValueError("Model artifact metadata contains invalid 'torch_dtype' value.") payload["torch_dtype"] = resolved_torch_dtype + if sklearn_version is not None: + payload["sklearn_version"] = sklearn_version return normalize_v2_artifact_metadata( payload, artifact_version=artifact_version, @@ -280,6 +288,7 @@ def build_v3_artifact_metadata( sampling_policy: dict[str, object] | None, seed: int | None, evaluation_summary: dict[str, object] | None, + sklearn_version: str | None = None, ) -> dict[str, object]: """Builds v3 metadata with reproducible dataset and training provenance.""" payload = build_v2_artifact_metadata( @@ -298,6 +307,7 @@ def build_v3_artifact_metadata( torch_device=torch_device, torch_dtype=torch_dtype, provenance=provenance, + sklearn_version=sklearn_version, ) optional_fields: dict[str, object | None] = { "recipe_digest": recipe_digest, diff --git a/ser/_internal/runtime/profile_quality_gate.py b/ser/_internal/runtime/profile_quality_gate.py index 19638d2..b50cef5 100644 --- a/ser/_internal/runtime/profile_quality_gate.py +++ b/ser/_internal/runtime/profile_quality_gate.py @@ -69,10 +69,13 @@ ) from ser._internal.train.eval import grouped_train_test_split, speaker_independent_cv from ser._internal.train.metrics import compute_ser_metrics +from ser._internal.utils.logger import get_logger from ser._internal.utils.segment_canonicalization import canonicalize_segments from ser.config import AppConfig, reload_settings from ser.runtime.contracts import InferenceRequest +logger = get_logger(__name__) + type IndexArray = NDArray[np.int64] type FoldIndices = tuple[IndexArray, IndexArray] type LabeledAudioSample = tuple[str, str] @@ -262,7 +265,16 @@ def _build_grouped_folds( random_state=random_state, ) return "stratified_group_kfold", folds - except ValueError: + except ValueError as error: + logger.warning( + "Grouped CV fell back to a single grouped holdout: requested n_splits=%d, " + "distinct speakers=%d, samples=%d, holdout test_size=%.2f, folds=1 (%s).", + n_splits, + len(set(speaker_ids)), + len(labels), + fallback_test_size, + error, + ) grouped_split = grouped_train_test_split( features, labels, diff --git a/tests/suites/integration/runtime/test_profile_quality_gate.py b/tests/suites/integration/runtime/test_profile_quality_gate.py index 1ddf2f7..6231d5a 100644 --- a/tests/suites/integration/runtime/test_profile_quality_gate.py +++ b/tests/suites/integration/runtime/test_profile_quality_gate.py @@ -2,6 +2,7 @@ from __future__ import annotations +import logging from collections.abc import Sequence from dataclasses import replace from pathlib import Path @@ -144,9 +145,12 @@ def test_profile_quality_gate_raises_when_speaker_metadata_is_missing() -> None: ) -def test_profile_quality_gate_falls_back_to_grouped_holdout() -> None: - """Infeasible fold count should fall back to deterministic grouped holdout.""" +def test_profile_quality_gate_falls_back_to_grouped_holdout( + caplog: pytest.LogCaptureFixture, +) -> None: + """Infeasible fold count should fall back to grouped holdout and say so loudly.""" samples = _build_samples() + caplog.set_level(logging.WARNING, logger=gate_module.__name__) report = evaluate_profile_quality_gate( samples=samples, @@ -161,6 +165,16 @@ def test_profile_quality_gate_falls_back_to_grouped_holdout() -> None: assert report.fold_strategy == "group_shuffle_holdout" assert report.folds_evaluated == 1 assert report.grouped_evaluation.fold_speaker_overlap_counts == (0,) + fallback_warnings = [ + record.getMessage() + for record in caplog.records + if record.levelno == logging.WARNING and "single grouped holdout" in record.getMessage() + ] + assert len(fallback_warnings) == 1 + speaker_count = len(set(gate_module._resolve_speaker_ids(samples))) + assert "requested n_splits=8" in fallback_warnings[0] + assert f"distinct speakers={speaker_count}" in fallback_warnings[0] + assert "folds=1" in fallback_warnings[0] def test_enforce_quality_gate_noop_when_not_required() -> None: diff --git a/tests/suites/unit/models/test_artifact_loading.py b/tests/suites/unit/models/test_artifact_loading.py index 28ade1e..4f44db8 100644 --- a/tests/suites/unit/models/test_artifact_loading.py +++ b/tests/suites/unit/models/test_artifact_loading.py @@ -4,12 +4,18 @@ import logging import pickle +import warnings from dataclasses import dataclass from pathlib import Path from typing import Literal +import numpy as np import pytest +import sklearn +import sklearn.base +from sklearn.preprocessing import StandardScaler +import ser._internal.models.artifact_loading as artifact_loading from ser._internal.models.artifact_loading import ( load_model_with_resolution, load_pickle_model_artifact, @@ -238,3 +244,78 @@ def _load_secure( assert resolved_model is expected assert captured["candidate"] == resolved_candidate assert captured["settings"] is settings + + +class _NoisyPayload: + """Unpickles with an unrelated warning, standing in for third-party load noise.""" + + def __setstate__(self, state: dict[str, object]) -> None: + warnings.warn("unrelated unpickling noise", UserWarning, stacklevel=1) + self.__dict__.update(state) + + +def _scaler_from_payload(payload: object) -> StandardScaler: + if not isinstance(payload, dict) or not isinstance(payload.get("model"), StandardScaler): + raise AssertionError("Expected a pickled StandardScaler payload.") + return payload["model"] + + +def _write_skewed_scaler(path: Path, monkeypatch: pytest.MonkeyPatch, version: str) -> None: + scaler = StandardScaler().fit(np.arange(6, dtype=np.float64).reshape(3, 2)) + with monkeypatch.context() as patch: + patch.setattr(sklearn.base, "__version__", version) + path.write_bytes(pickle.dumps({"model": scaler}, protocol=pickle.HIGHEST_PROTOCOL)) + + +def test_pickle_loader_reports_sklearn_version_skew_once( + tmp_path: Path, monkeypatch: pytest.MonkeyPatch, caplog: pytest.LogCaptureFixture +) -> None: + """Version skew is logged once per artifact with re-save guidance.""" + monkeypatch.setattr(artifact_loading, "_REPORTED_VERSION_MISMATCHES", set()) + candidate_path = tmp_path / "ser_model.pkl" + _write_skewed_scaler(candidate_path, monkeypatch, "0.0.1") + logger = logging.getLogger("tests.artifact_loading.version_skew") + caplog.set_level(logging.WARNING, logger=logger.name) + + loads = [ + load_pickle_model_artifact( + candidate_path=candidate_path, + deserialize_payload=_scaler_from_payload, + logger=logger, + ) + for _ in range(2) + ] + + assert all(isinstance(loaded, StandardScaler) for loaded in loads) + messages = [record.getMessage() for record in caplog.records] + assert len(messages) == 1 + assert f"saved with scikit-learn 0.0.1 and is loaded with {sklearn.__version__}" in ( + messages[0] + ) + assert "StandardScaler" in messages[0] + assert "re-save the artifact" in messages[0] + + +def test_pickle_loader_keeps_matching_versions_and_other_warnings_quiet( + tmp_path: Path, monkeypatch: pytest.MonkeyPatch, caplog: pytest.LogCaptureFixture +) -> None: + """Same-version artifacts log nothing and unrelated unpickling warnings stay contained.""" + monkeypatch.setattr(artifact_loading, "_REPORTED_VERSION_MISMATCHES", set()) + matching_path = tmp_path / "matching.pkl" + _write_skewed_scaler(matching_path, monkeypatch, sklearn.__version__) + noisy_path = tmp_path / "noisy.pkl" + noisy_path.write_bytes(pickle.dumps(_NoisyPayload(), protocol=pickle.HIGHEST_PROTOCOL)) + logger = logging.getLogger("tests.artifact_loading.quiet") + caplog.set_level(logging.DEBUG, logger=logger.name) + + with warnings.catch_warnings(record=True) as escaped: + warnings.simplefilter("always") + for path in (matching_path, noisy_path): + load_pickle_model_artifact( + candidate_path=path, + deserialize_payload=lambda payload: payload, + logger=logger, + ) + + assert caplog.records == [] + assert escaped == [] diff --git a/tests/suites/unit/models/test_artifact_upgrade_path.py b/tests/suites/unit/models/test_artifact_upgrade_path.py index 6684e94..f73ad09 100644 --- a/tests/suites/unit/models/test_artifact_upgrade_path.py +++ b/tests/suites/unit/models/test_artifact_upgrade_path.py @@ -3,6 +3,7 @@ from __future__ import annotations import pytest +import sklearn from sklearn.neural_network import MLPClassifier import ser._internal.models.artifact_envelope as artifact_envelope @@ -229,3 +230,33 @@ def test_deserialize_rejects_legacy_raw_model_object() -> None: match="versioned dictionary envelope", ): artifact_envelope.deserialize_model_artifact(_build_classifier()) + + +def test_new_artifacts_record_the_saving_sklearn_version() -> None: + """Save time stamps the scikit-learn version so later loads can explain skew.""" + artifact = artifact_envelope.build_model_artifact( + model=_build_classifier(), + feature_vector_size=193, + training_samples=32, + labels=["happy", "sad"], + ) + + loaded = artifact_envelope.deserialize_model_artifact(artifact) + + assert loaded.artifact_metadata is not None + assert loaded.artifact_metadata["sklearn_version"] == sklearn.__version__ + + +def test_deserialize_rejects_blank_sklearn_version() -> None: + artifact = artifact_envelope.build_model_artifact( + model=_build_classifier(), + feature_vector_size=193, + training_samples=32, + labels=["happy", "sad"], + ) + metadata = artifact["metadata"] + assert isinstance(metadata, dict) + metadata["sklearn_version"] = " " + + with pytest.raises(ValueError, match="sklearn_version"): + artifact_envelope.deserialize_model_artifact(artifact) diff --git a/uv.lock b/uv.lock index 2144e2f..fbe2a80 100644 --- a/uv.lock +++ b/uv.lock @@ -1222,6 +1222,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/79/7b/2c79738432f5c924bef5071f933bcc9efd0473bac3b4aa584a6f7c1c8df8/mypy_extensions-1.1.0-py3-none-any.whl", hash = "sha256:1be4cccdb0f2482337c4743e60421de3a356cd97508abadd57d47403e94f5505", size = 4963, upload-time = "2025-04-22T14:54:22.983Z" }, ] +[[package]] +name = "narwhals" +version = "2.28.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/67/43/e11d75a7fb635c6f63dd6e176cb3e050ec2fee35f2f2267b332a6ad351ec/narwhals-2.28.0.tar.gz", hash = "sha256:2d9860c80d6610820826e94c6e42ce4b1d92d89cdd479586e652a8d211dab345", size = 754977, upload-time = "2026-10-27T12:19:33.777Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/cf/82/8ef9c7e0f50493307a49c09cfa7f00c5a778b6d1921f7b2dabe1d3a5809e/narwhals-2.28.0-py3-none-any.whl", hash = "sha256:1f69d6385ec30e2fa6e1fdeb37c562ecabd0f713f6f3e3b58a668c5c9df9567f", size = 490591, upload-time = "2026-10-27T12:19:31.649Z" }, +] + [[package]] name = "networkx" version = "3.6.1" @@ -2048,32 +2057,30 @@ wheels = [ [[package]] name = "scikit-learn" -version = "1.7.2" +version = "1.9.1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "joblib" }, + { name = "narwhals" }, { name = "numpy", version = "1.26.4", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.13'" }, { name = "numpy", version = "2.3.5", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.13'" }, { name = "scipy" }, { name = "threadpoolctl" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/98/c2/a7855e41c9d285dfe86dc50b250978105dce513d6e459ea66a6aeb0e1e0c/scikit_learn-1.7.2.tar.gz", hash = "sha256:20e9e49ecd130598f1ca38a1d85090e1a600147b9c02fa6f15d69cb53d968fda", size = 7193136, upload-time = "2025-09-09T08:21:29.075Z" } +sdist = { url = "https://files.pythonhosted.org/packages/d2/eb/eaf5e07fcc0da7149b0e084f24e54edd7441b9a89ce7e034032ae97fe3a0/scikit_learn-1.9.1.tar.gz", hash = "sha256:629cada3e33e2b9bf376cdc7614a47a4140b8aedc1d836579e359736fbd82977", size = 7786908, upload-time = "2026-09-10T18:34:04.679Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/a7/aa/3996e2196075689afb9fce0410ebdb4a09099d7964d061d7213700204409/scikit_learn-1.7.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:8d91a97fa2b706943822398ab943cde71858a50245e31bc71dba62aab1d60a96", size = 9259818, upload-time = "2025-09-09T08:20:43.19Z" }, - { url = "https://files.pythonhosted.org/packages/43/5d/779320063e88af9c4a7c2cf463ff11c21ac9c8bd730c4a294b0000b666c9/scikit_learn-1.7.2-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:acbc0f5fd2edd3432a22c69bed78e837c70cf896cd7993d71d51ba6708507476", size = 8636997, upload-time = "2025-09-09T08:20:45.468Z" }, - { url = "https://files.pythonhosted.org/packages/5c/d0/0c577d9325b05594fdd33aa970bf53fb673f051a45496842caee13cfd7fe/scikit_learn-1.7.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:e5bf3d930aee75a65478df91ac1225ff89cd28e9ac7bd1196853a9229b6adb0b", size = 9478381, upload-time = "2025-09-09T08:20:47.982Z" }, - { url = "https://files.pythonhosted.org/packages/82/70/8bf44b933837ba8494ca0fc9a9ab60f1c13b062ad0197f60a56e2fc4c43e/scikit_learn-1.7.2-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b4d6e9deed1a47aca9fe2f267ab8e8fe82ee20b4526b2c0cd9e135cea10feb44", size = 9300296, upload-time = "2025-09-09T08:20:50.366Z" }, - { url = "https://files.pythonhosted.org/packages/c6/99/ed35197a158f1fdc2fe7c3680e9c70d0128f662e1fee4ed495f4b5e13db0/scikit_learn-1.7.2-cp312-cp312-win_amd64.whl", hash = "sha256:6088aa475f0785e01bcf8529f55280a3d7d298679f50c0bb70a2364a82d0b290", size = 8731256, upload-time = "2025-09-09T08:20:52.627Z" }, - { url = "https://files.pythonhosted.org/packages/ae/93/a3038cb0293037fd335f77f31fe053b89c72f17b1c8908c576c29d953e84/scikit_learn-1.7.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:0b7dacaa05e5d76759fb071558a8b5130f4845166d88654a0f9bdf3eb57851b7", size = 9212382, upload-time = "2025-09-09T08:20:54.731Z" }, - { url = "https://files.pythonhosted.org/packages/40/dd/9a88879b0c1104259136146e4742026b52df8540c39fec21a6383f8292c7/scikit_learn-1.7.2-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:abebbd61ad9e1deed54cca45caea8ad5f79e1b93173dece40bb8e0c658dbe6fe", size = 8592042, upload-time = "2025-09-09T08:20:57.313Z" }, - { url = "https://files.pythonhosted.org/packages/46/af/c5e286471b7d10871b811b72ae794ac5fe2989c0a2df07f0ec723030f5f5/scikit_learn-1.7.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:502c18e39849c0ea1a5d681af1dbcf15f6cce601aebb657aabbfe84133c1907f", size = 9434180, upload-time = "2025-09-09T08:20:59.671Z" }, - { url = "https://files.pythonhosted.org/packages/f1/fd/df59faa53312d585023b2da27e866524ffb8faf87a68516c23896c718320/scikit_learn-1.7.2-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7a4c328a71785382fe3fe676a9ecf2c86189249beff90bf85e22bdb7efaf9ae0", size = 9283660, upload-time = "2025-09-09T08:21:01.71Z" }, - { url = "https://files.pythonhosted.org/packages/a7/c7/03000262759d7b6f38c836ff9d512f438a70d8a8ddae68ee80de72dcfb63/scikit_learn-1.7.2-cp313-cp313-win_amd64.whl", hash = "sha256:63a9afd6f7b229aad94618c01c252ce9e6fa97918c5ca19c9a17a087d819440c", size = 8702057, upload-time = "2025-09-09T08:21:04.234Z" }, - { url = "https://files.pythonhosted.org/packages/55/87/ef5eb1f267084532c8e4aef98a28b6ffe7425acbfd64b5e2f2e066bc29b3/scikit_learn-1.7.2-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:9acb6c5e867447b4e1390930e3944a005e2cb115922e693c08a323421a6966e8", size = 9558731, upload-time = "2025-09-09T08:21:06.381Z" }, - { url = "https://files.pythonhosted.org/packages/93/f8/6c1e3fc14b10118068d7938878a9f3f4e6d7b74a8ddb1e5bed65159ccda8/scikit_learn-1.7.2-cp313-cp313t-macosx_12_0_arm64.whl", hash = "sha256:2a41e2a0ef45063e654152ec9d8bcfc39f7afce35b08902bfe290c2498a67a6a", size = 9038852, upload-time = "2025-09-09T08:21:08.628Z" }, - { url = "https://files.pythonhosted.org/packages/83/87/066cafc896ee540c34becf95d30375fe5cbe93c3b75a0ee9aa852cd60021/scikit_learn-1.7.2-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:98335fb98509b73385b3ab2bd0639b1f610541d3988ee675c670371d6a87aa7c", size = 9527094, upload-time = "2025-09-09T08:21:11.486Z" }, - { url = "https://files.pythonhosted.org/packages/9c/2b/4903e1ccafa1f6453b1ab78413938c8800633988c838aa0be386cbb33072/scikit_learn-1.7.2-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:191e5550980d45449126e23ed1d5e9e24b2c68329ee1f691a3987476e115e09c", size = 9367436, upload-time = "2025-09-09T08:21:13.602Z" }, - { url = "https://files.pythonhosted.org/packages/b5/aa/8444be3cfb10451617ff9d177b3c190288f4563e6c50ff02728be67ad094/scikit_learn-1.7.2-cp313-cp313t-win_amd64.whl", hash = "sha256:57dc4deb1d3762c75d685507fbd0bc17160144b2f2ba4ccea5dc285ab0d0e973", size = 9275749, upload-time = "2025-09-09T08:21:15.96Z" }, + { url = "https://files.pythonhosted.org/packages/df/a7/25f0a43d2fde306e8ef45f45121192f687b79beaf4bae8c21607c46c5e63/scikit_learn-1.9.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:0c0f8b5d09b44101cea2767f300680bada1ea27f976fe4b48b83950a4f55a49a", size = 8775209, upload-time = "2026-09-10T18:32:42.804Z" }, + { url = "https://files.pythonhosted.org/packages/60/ea/57e57539ce175d774fc291ed091b0a6d756854b92cd92554c6bb4d0ae498/scikit_learn-1.9.1-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:8c14ce41d561f7749f990b41d6703fe02c4669fbc485e598e069e0a1967b488e", size = 8295541, upload-time = "2026-09-10T18:32:45.069Z" }, + { url = "https://files.pythonhosted.org/packages/78/2b/5721a174406bfba49bce20ae997b3b64cf355c3f623a2638284ab6a82156/scikit_learn-1.9.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e4c20a6c017d820faa7ac8c783e3d0c6a9a2e297bf9f55332ca17cdf7fd4d04d", size = 8871592, upload-time = "2026-09-10T18:32:46.999Z" }, + { url = "https://files.pythonhosted.org/packages/8e/57/a50162f3d29feb979ab6347c6debda506dfb525bcff3c50dd17606651c7e/scikit_learn-1.9.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e5d7b18a5b9dca241a74695f3275fa4c895a9dadc72b3d8df5fa9d1083c9b83e", size = 9166043, upload-time = "2026-09-10T18:32:49.343Z" }, + { url = "https://files.pythonhosted.org/packages/72/8d/27c054166bac671770d1ea0ef7716134fe8119c0df224a58c89fd735a61c/scikit_learn-1.9.1-cp312-cp312-win_amd64.whl", hash = "sha256:4b59abb30618121cc46b45972d6bf53a7128b4df4cd346c6ca6f4d5f9031e49c", size = 8262238, upload-time = "2026-09-10T18:32:51.679Z" }, + { url = "https://files.pythonhosted.org/packages/9d/d6/493086006ea0c68ad62c40a8dece1961b61bf503f45400f133d47f56e5be/scikit_learn-1.9.1-cp312-cp312-win_arm64.whl", hash = "sha256:d5945a2908be62350e2978344e62b56c1552c2ca4f844ebf6277c94944d647dd", size = 7902102, upload-time = "2026-09-10T18:32:53.67Z" }, + { url = "https://files.pythonhosted.org/packages/bb/8d/b60d5e7354ff0ff5cc9400e60273696589d87a30b8b2235886a76d80d062/scikit_learn-1.9.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:2c2b312fd8c02951a364fa120ea08c1cec10d863466bf1701b013152d7537835", size = 8739300, upload-time = "2026-09-10T18:32:55.483Z" }, + { url = "https://files.pythonhosted.org/packages/2f/81/3c6392c03665d2899457a76e535a9a6f597dddddf3220fd2e1d790da88c5/scikit_learn-1.9.1-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:61cd968ab831a76d0ecbaf0347ab2270268716da28f94fd022497e3d6f205f13", size = 8262364, upload-time = "2026-09-10T18:32:57.966Z" }, + { url = "https://files.pythonhosted.org/packages/0f/35/a15b8653499692879821301d48059376d6e68e8b65cd0f22d19b6ee83cd9/scikit_learn-1.9.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5990f9c69e431bfaddcde1a6d7c5355243e026bc9b9e560c13893b90dab53fb4", size = 8823698, upload-time = "2026-09-10T18:33:00.632Z" }, + { url = "https://files.pythonhosted.org/packages/23/e5/688703d357e5393f708d98eb189fd415ae69e39f6de03c6bd4005aef6118/scikit_learn-1.9.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:55e79d6e9b0923f1a978179822bd43d7f5543f45e970a00fe861f43486380aba", size = 9121732, upload-time = "2026-09-10T18:33:02.825Z" }, + { url = "https://files.pythonhosted.org/packages/96/45/a10add34c08184d373be9384660c75758128ca881ed27b503b6f6a742478/scikit_learn-1.9.1-cp313-cp313-win_amd64.whl", hash = "sha256:2070f271e5375dc42c6bb93b461ab1c0aa5841d4009267e0cfd95a39dca94a43", size = 8237244, upload-time = "2026-09-10T18:33:05.26Z" }, + { url = "https://files.pythonhosted.org/packages/9e/08/7a89bcdadd1fff0d464d01056417b646c9abcbc54f7297a0a1203bba5ebb/scikit_learn-1.9.1-cp313-cp313-win_arm64.whl", hash = "sha256:613f0a783ca05aa844a4e1ac42d48425058f2c52be73f40f8cd98b7cd111acd6", size = 7875398, upload-time = "2026-09-10T18:33:07.506Z" }, ] [[package]] @@ -2235,7 +2242,7 @@ requires-dist = [ { name = "pyupgrade", marker = "extra == 'dev'", specifier = ">=3.21.2,<4.0.0" }, { name = "pyyaml", specifier = ">=6.0,<7.0" }, { name = "ruff", marker = "extra == 'dev'", specifier = ">=0.9.0,<1.0.0" }, - { name = "scikit-learn", specifier = ">=1.3.2,<1.8.0" }, + { name = "scikit-learn", specifier = ">=1.9.0,<1.10.0" }, { name = "soundfile", specifier = ">=0.14.0,<1.0.0" }, { name = "stable-ts", marker = "python_full_version < '3.13' or platform_machine != 'x86_64' or sys_platform != 'darwin'", specifier = ">=2.19.1,<3.0.0" }, { name = "torch", marker = "python_full_version < '3.13' and platform_machine == 'x86_64' and sys_platform == 'darwin'", specifier = ">=2.2,<=2.2.2" },