The autograder is giving me the following error:
Function "(K\.mean)|(tf\.keras\.backend\.mean)" not found in Code Cell UNQ_C3.
Function "(K\.log)|(tf\.keras\.backend\.log)" not found in Code Cell UNQ_C3.
Code Cell UNQ_C1: Function 'check_for_leakage' is correct.
Code Cell UNQ_C2: Function 'compute_class_freqs' is correct.
Code Cell UNQ_C3: Function 'get_weighted_loss' is correct.
If you see many functions being marked as incorrect, try to trace back your steps & identify if there is an incorrect function that is being used in other steps.
This dependency may be the cause of the errors.
but I only got a score of 67%.
This output tells me that I actually got the functions correct, is that right?
The only error i have is related to using keras.backend.mean/log
I did in fact use these in my solution:
from keras.backend import mean as keras_mean
from keras.backend import log as keras_log
...
loss = -1 * keras_mean( ... )
...
The unit tests all passed.
Thanks!