-
Notifications
You must be signed in to change notification settings - Fork 0
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
Gridsearch normalisation not working for language after the latest update #349
Comments
The problem seems to be in the new vector.py file because when I only change that file back it is working again. |
Just to clarify, I'm working on the kymata-language branch and the .sh file I'm using is
|
And the commit hash for it is 64fcdad. |
That with np.errstate(divide="raise"):
x /= _normalize_magnitude(x) so I reckon this means it's dividing by def _normalize_magnitude(x: NDArray) -> NDArray:
"""Reusable magnitude function for use in `normalize`."""
return np.sqrt(np.sum(x**2, axis=-1, keepdims=True)) So if it's producing a So if my reasoning is right (and it may not be!), it seems like the changes to @young-x-skyee Does the above shed any light on the issue? Does the emeg data you're loading in contain |
Having said the above, I'm now using full if (_normalize_magnitude(x) == 0).any():
x *= 1_000_000 from |
Note to self: better yet, |
After merging the main branch into the language branch today, the warning messages seem to appear for too many times which did not happen before...
/imaging/projects/cbu/kymata/analyses/tianyi/kymata-core/kymata-core-data/output/fc2_test/decoder/log/slurm_log_4.txt
![image](https://private-user-images.githubusercontent.com/79269182/352971792-dce50c04-683b-4197-8f40-ed737f8316db.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MTAyMTMsIm5iZiI6MTczODkwOTkxMywicGF0aCI6Ii83OTI2OTE4Mi8zNTI5NzE3OTItZGNlNTBjMDQtNjgzYi00MTk3LThmNDAtZWQ3MzdmODMxNmRiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDA2MzE1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc4YjRhZDQ2MjU5YmY4Mjc2M2E4MGQ4NmY5NTEwODg0ZWEzZTBiNzQxYTgyNjhlNzc2Njc3MjcwMThjNDlmMzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.YLXIkZXHJGWDCkpNmxPJaJHoNkSidl49xA06wOp-4pM)
The text was updated successfully, but these errors were encountered: