Week 2: C1_W2_Assignment

in lab C1_W2_Assignment; # UNQ_C9 GRADED FUNCTION: get_words_by_threshold
The logic for assignment to the dictionary “word_list” seems a bit strange. It seems that all you should check for is that label exists, and you have a pos_neg_ratio for it, one existential check.
Am I missing something?

see the illustration below,

Hi @ajeancharles

Just check the cells below:

You can see that you can use different threshold for different labels. When you would want to use them to update the word list is another question but the logic of the code is not entirely nonsense.