Closed escorciav closed 7 years ago
Hi @escorciav,
You were right. It seems that writing a refactor of the code after the finish I change the function in a buggy way. It is already fixed it in this commit 32581d432fee500979241cc5ea69159403d66955. I have also shown a demonstration of the correct behavior in this notebook.
Hi guys,
Thank you for sharing your work. It is self-contained and easy to read.
The logic used in the function generate_output is a little bit confusing to me. This line appends the index of the label into
output
but the else case appends the label intooutput
. I noticed that the output might end up being something like['none', 2, 2, 'none', 'none']
. This input generated an error with the function to_categorical.Disclaimer: I haven't run the code from scratch. Feel free to close the issue, if you are sure about the logic of the if statement.