Repository navigation
A joint model's unit as a block of a non-repairable diagram; surpyval 0.25 - #364
Merged
Merged
Conversation
A unit of a surpyval joint model of readings and failures, given its readings, is a node of a NonRepairableRBD: a JointNode, or the unit's DynamicPrediction given as the node. Its reliability is from now, pred.sf(age + t); its lifetimes pred.qf(u) - age; its mean the unit's mean life left. A NodeState with another age than the prediction's is refused, as it would condition the unit again. A RepairableRBD and a NonRepairable refuse a joint model: the units after the first are new, without its readings. It saves with the diagram (the model in surpyval's format and the unit's inputs). surpyval 0.25 is required, for its joint models. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019Km2eWBiPJ5JNkme3vRg4B
This was referenced Oct 17, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A unit of a surpyval joint model (readings and failures,
surpyval.WeibullJointPH), given its readings, becomes a block of aNonRepairableRBD.API
JointNode(pred)for aDynamicPrediction, orJointNode(joint_model, Z=..., markers=..., age=...). ADynamicPredictiongiven directly as a node is wrapped. A bareJointModelis refused, with a pointer to these.pred.sf(age + t)(already conditioned on reachingage), lifetimes arepred.qf(u) - age(row-batched likeRegressionNode), andmean()is the mean residual life. It isinfwhere the model leaves a chance of never failing, as a linear path with a varying slope does; this is documented.NodeStatemay say it has failed or repeat that age; any other age is refused, so the unit is never conditioned twice.RepairableRBDandNonRepairablerefuse a joint model with a clear message. The units after the first are new and have none of the readings, and these components draw every life from one surpyval distribution.kind: "joint_node":JointModel.to_dict()plus the unit's covariates, readings and age. It round-trips through JSON andexactly(), son_jobsworkers can load it.joint, and its row is in the README capability matrix.surpyval 0.25 is now required. The full suite passes against 0.25 from PyPI with no deprecation warnings. Two local-only failures happen on macOS with 0.24 too:
test_mixture_lives::test_a_life_given_an_age_is_the_root_to_the_last_bitsandtest_expected_window::test_a_nested_rbd_counts_as_the_flat_one_does, both last-bit rounding.Docs and changelog. There's a guide section in condition-based evaluation, an API entry, a README line and a CHANGELOG entry.
Tests.
test_joint_node.pychecks series and parallel against hand products, Monte Carlo against exact, the age conflict, the repairable refusal, the JSON round trip, input checks and routes. The fixture iscatalogue.joint_model(), a small synthetic fleet fitted once.🤖 Generated with Claude Code
https://claude.ai/code/session_019Km2eWBiPJ5JNkme3vRg4B