-
Notifications
You must be signed in to change notification settings - Fork 9
function reconsturct_data #50
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
Conversation
There is already a function named |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A think of very great beauty!!! your code is now much more readable and therefore maintainable by others! Thank you so much.....
Please look at the last few comments and I can merge.
number_of_signal = len(components[0].weights) | ||
data_reconstruction = np.zeros((signal_length, number_of_signal)) | ||
for signal in range(number_of_signal): | ||
data_reconstruction[:, signal] = reconstruct_signal(components, signal) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as before, is there a reason the nd array is this way around and the code can't look like can't be:
data_reconstruction[signal] = reconstruct_signal(components, signal)
to make the code prettier?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other functions use what this function returns later. It's possible that I could make it the other way here, and transpose the output when it is used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function is ready to be merged. Unless you think that I should rewrite this line in the way that you suggested.
removed blank lines in tests
Thanks Ade |
No description provided.