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

dict_to_array (in multi-head-finetune) does not ensure E0s are in correct order #382

Open
bernstei opened this issue Apr 19, 2024 · 0 comments

Comments

@bernstei
Copy link
Collaborator

The multi-head-finetune branch does not fix the order of the E0s in the situation where the E0s dict does not contain sub-dicts for each "theory"

return np.array(list(data.values()))

Probably want something like

ordered_keys = sorted([int(k) for k in data.keys()])
return np.array([data[k] for k in ordered_keys])
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

1 participant