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

Fix for the final training of the train method for backwards models #7

Merged
merged 1 commit into from
May 24, 2023

Conversation

berndie
Copy link
Contributor

@berndie berndie commented May 23, 2023

First of all: Nice work on the package!

When training a backward model with multiple regularization values, the last _train call on line 255 uses stimuli and responses instead of xs and ys (as on line 185 in mtrf/model.py), leading to wrong weights and biases.

In my case, this was not obvious until predict was called and numpy raised a ValueError because the reshaping of the weights failed. I've adapted the unittest for predict to catch this issue, in case it would re-appear.

Kind regards,
Bernd

@OleBialas OleBialas merged commit 2fb82c2 into powerfulbean:master May 24, 2023
4 checks passed
@OleBialas
Copy link
Collaborator

Great, thank you for your contribution Bernd!

@berndie berndie deleted the train_and_predict branch May 24, 2023 16:50
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

Successfully merging this pull request may close these issues.

None yet

2 participants