Skip to content

How to handle different independent variables in CompositeModel? #787

Answered by newville
Julian-Hochhaus asked this question in Q&A
Discussion options

You must be logged in to vote

@Julian-Hochhaus I think we just didn't carefully think through the case where some sub-components would have independent parameters that others did not. Well, maybe except for "ConstantModel", which has also caused some confusion.

I think that it would probably make sense to have the composite use the union of the independent parameters of "left" and "right" when being initialized and then only pass the ones expected for each sub-component. That is, the composite might need a pair (tuple, set, dict, probably doesn't matter) of independent_vars for left and right.

PR anyone?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Julian-Hochhaus
Comment options

Answer selected by Julian-Hochhaus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants