Skip to content

Code Bug Fix#4

Open
Hi-archers wants to merge 1 commit intoJasonForJoy:mainfrom
Hi-archers:main
Open

Code Bug Fix#4
Hi-archers wants to merge 1 commit intoJasonForJoy:mainfrom
Hi-archers:main

Conversation

@Hi-archers
Copy link

Thank you very much for your work. However, I encountered an error when running your code. Upon investigation, I found that the issue might be related to the following line:

modified_matrix = flattened_matrix.reshape(matrix.shape)

The function does not have a return statement, which causes the return value of the following line of code to be None, leading to issues in subsequent calculations:

upd_matrix = set_min_to_zero(change_matrix, upd_matrix, 0.8)

Therefore, I added a return statement in set_min_to_zero function, and after preliminary testing, the subsequent execution works correctly.

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.

1 participant

Comments