Skip to content

Remove init from filter#265

Draft
SamDuffield wants to merge 2 commits into
mainfrom
remove-init-from-filter
Draft

Remove init from filter#265
SamDuffield wants to merge 2 commits into
mainfrom
remove-init-from-filter

Conversation

@SamDuffield

Copy link
Copy Markdown
Contributor

Closes #253

Currently just an early draft to get feedback before fixing the tests etc.

An alternative to #264, instead of adding an optional init_state arg we make it compulsory and force the user to initiate the state.

This has slightly less flexibility but doesn't add an optional arg and leaves the user with one and only one way to do it.

I've left model_inputs in init_prepare, in many cases they might not be needed although the user would still be required to provide e.g. a None. But this change does provide a nice feature in that the shapes of the init_model_inputs and filter_model_inputs no longer need to match which is convenient in the majority of cases.

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.

Remove init_prepare from filtering function?

1 participant