Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: unfixing #51

Open
st-- opened this issue Nov 11, 2021 · 1 comment
Open

RFC: unfixing #51

st-- opened this issue Nov 11, 2021 · 1 comment

Comments

@st--
Copy link
Member

st-- commented Nov 11, 2021

It'd be convenient to be able to unfix a parameter, I think it should satisfy the following:

unfix(p) = p
unfix(p::Fixed) = p.value

plus recursively applying unfix on nested structures, not quite sure what exactly that should look like, perhaps mapping on NamedTuple/Tuple/Dict?
What do you think ?

@willtebbutt
Copy link
Member

I think this would be helpful for the kinds of situations we discussed elsewhere. Specifically, when you want to optimise a subset of your parameters initially with a subset held fixed, and then optimise the remainder of your parameters once that initial optimisation has completed.

I would be interested in seeing a PR that does this -- would definitely want a worked example to shove in the readme too.

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

No branches or pull requests

2 participants