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

Allow different lambdas across nests? #48

Open
Serena9070 opened this issue Mar 13, 2024 · 2 comments
Open

Allow different lambdas across nests? #48

Serena9070 opened this issue Mar 13, 2024 · 2 comments

Comments

@Serena9070
Copy link

Hi Tianyu,

Thanks for the amazing package! I'm trying to allow different lambdas across nests by setting shared_lambda = False. However, it ran into the RuntimeError: Error(s) in loading state_dict for NestedLogitModel: Unexpected key(s) in state_dict: "lambdas". I wonder if there is a way to fix this. Thanks!

@Serena9070
Copy link
Author

Hi Tianyu,

Thanks for updating the package to allow different lambdas across nests. Sorry, I have encountered another problem. When I tried setting "shared_lambda=False", I keep having the error: lambdas and lambda_weight should be the same. I wonder if there is a way to fix this or if you have any idea what's the potential cause. Thanks!

@TianyuDu
Copy link
Collaborator

Oops, that's a sanity check I implemented, and it seems to fail... Could you please attach a script that could replicate this issue? Ideally, with sample data, you can replace actual data with dummy values if the dataset is sensitive. Thank you!

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