Skip to content

Compactness penalty #381

Answered by luisfabib
kmytsay asked this question in General
Oct 7, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Sorry for the delay (had a thesis to submit :P). I hope the answer still helps you!

I would recommend to run first the analysis with compactness to get the optimal value of the compactness regularization parameter and then run the bootstrapping with compactness using the optimal value fixed. This should keep your analysis quick but robust.

For example:

# Run first run to optimize the compactness via the ICC
results_ = dl.fit(Vmodel,Vexp, penalties=compactness)
compactness_weightopt = results_.penweights

# Run bootstrapped analysis with fixed compactness penalty weight
compactness.weight.freeze(compactness_weightopt)
results = dl.fit(Vmodel,Vexp, penalties=compactness, bootstrap=100)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kmytsay
Comment options

Answer selected by kmytsay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants