From 3cbb0e4edffe3e8eb280e5152a0e1c6db1bfb155 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 12 Jun 2026 07:22:01 +0000 Subject: [PATCH 1/3] plan: fix suggest_transform docstring to match POWER fallback logic From c70abbb3c5a624a5758aaf4afdf02a1002e5eecc Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 12 Jun 2026 07:22:31 +0000 Subject: [PATCH 2/3] Fix suggest_transform docstring: POWER fallback, not milder skew The previous docstring said the POWER branch fires for 'milder skew', but both LOG and POWER branches use the same skewness > 1.0 threshold. POWER is reached when the variable is strongly skewed but is not strictly positive or lacks a wide dynamic range. Update the docstring to describe the actual rule. --- src/scorepilot/core/profiling.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/scorepilot/core/profiling.py b/src/scorepilot/core/profiling.py index 74f0540..17d5974 100644 --- a/src/scorepilot/core/profiling.py +++ b/src/scorepilot/core/profiling.py @@ -142,9 +142,11 @@ def sequence(series: pd.Series) -> list[float | None]: def suggest_transform(summary: VariableSummary) -> TransformKind: """Suggest a transform from a variable's shape. - A strongly right-skewed, strictly positive variable with a wide dynamic range - is a candidate for a log transform; a milder skew suggests a signed power - (root). Otherwise no transform is suggested. + A strongly right-skewed (skewness > 1.0), strictly positive variable with a + wide dynamic range (min/max ratio > 20) is a candidate for a log transform. + A strongly right-skewed variable that is not strictly positive or lacks a + wide dynamic range falls back to a signed power (root). Otherwise no + transform is suggested. """ if summary.column_type is not ColumnType.QUANTITATIVE or summary.skewness is None: return TransformKind.NONE From 1cf2216ed950dfa37547c1e5a0144c599cf5cfa2 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 12 Jun 2026 07:22:41 +0000 Subject: [PATCH 3/3] Bump version to 0.22.1 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8e22790..9ccca90 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "scorepilot" -version = "0.22.0" +version = "0.22.1" description = "Web-based tool for PCA/PLS model analysis in chemometrics." readme = "README.md" requires-python = ">=3.12"