Closed ck37 closed 5 years ago
Actually reviewing length(unique(df$class))
I do have 30 unique values so I'm not sure why changing to 29 was needed or even worked.
But this was the updated line I needed for training to begin: layer_dense(units = 29, activation = 'softmax')
Update: in data_generator() there is a response <- tf$one_hot(obs$class_id, 29L)
line that seems to limit the unique class values to 29.
Hello @ck37! This seems to be related to this issue https://github.com/rstudio/keras/issues/586#issuecomment-437785552
The blog post has been updated now. Thanks very much for reporting it!
Awesome, thanks - switching to 30 solves the issue.
Hello,
Really appreciate the speech recognition blog post and detailed code chunks. While trying to execute the fit_generator() section today I did run into one small error:
I resolved it by changing the final softmax output layer to have 29 units rather than 30. My hunch was that this might be due to the background noise directory being excluded earlier in the script.
Thanks, Chris