Skip to content

Take surpyval's model classes from their subpackages - #513

Merged
derrynknife merged 1 commit into
devfrom
build/surpyval-subpackage-imports
Nov 22, 2026
Merged

derrynknife merged 1 commit into
devfrom
build/surpyval-subpackage-imports

Conversation

@derrynknife

Copy link
Copy Markdown
Owner

Summary

surpyval's next release takes the classes a call returns off its top level. They still work there, but with a FutureWarning. RePyability now imports the ones it uses from their subpackages:

  • JointModel and DynamicPrediction from surpyval.univariate.joint;
  • SemiParametricRegressionModel from surpyval.univariate.regression;
  • ProportionalOddsFitter from surpyval.univariate.regression (tests only).

These imports work with surpyval 0.28 as well. surpyval.univariate.joint is on surpyval's public list now, so test_public_surpyval_api.py adds it, and DynamicPrediction leaves NO_PUBLIC_HOME. CLAUDE.md and the changelog are updated.

Tests

The joint-node, joint-importance, regression-node, small-probabilities, covariate-schedule and public-interface tests (188) pass against three surpyval versions:

  • surpyval 0.28;
  • surpyval dev;
  • the branch that moves the classes, where the public-interface test failed before this change.

🤖 Generated with Claude Code

https://claude.ai/code/session_01V339RzRHo8RS8Cz3uSbQgP

JointModel and DynamicPrediction come from surpyval.univariate.joint,
SemiParametricRegressionModel and ProportionalOddsFitter from
surpyval.univariate.regression: surpyval 0.29 keeps them off its top
level. surpyval.univariate.joint is on the public list, so
DynamicPrediction leaves NO_PUBLIC_HOME.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V339RzRHo8RS8Cz3uSbQgP
@derrynknife
derrynknife merged commit c5e5311 into dev Nov 22, 2026
@derrynknife
derrynknife deleted the build/surpyval-subpackage-imports branch November 22, 2026 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant