Skip to content

Conversation

@Samuel-WM
Copy link
Collaborator

These changes fix issues #173 and #266. The main problem was inconsistent defaults for individual_preds and broken predict behavior when using GraphTrainer. Method signatures were adjusted so individual_preds always defaults the same way. No more surprises depending on which method is called.

A new predict method was also added to ContextualizedBayesianNetworks. Before, predict fell back to the SKLearnWrapper, which doesn’t play nice with GraphTrainer and caused errors. Now predict works directly for Bayesian networks: it calls predict_networks to get betas, then uses _reconstruct_from_betas to rebuild the features.

@cnellington
Copy link
Collaborator

cnellington commented Sep 19, 2025

@Samuel-WM Just updated git workflows to run CI tests for fork PRs. Please pull main into this branch to run.

@cnellington
Copy link
Collaborator

cnellington commented Sep 19, 2025

Code changes LGTM, feel free to merge once tests are run successfully in github actions. You should have permissions @Samuel-WM

@Samuel-WM Samuel-WM merged commit 06257e9 into AdaptInfer:main Sep 20, 2025
3 checks passed
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.

2 participants