Can you share your lab ID with me ? In the assignment, when you click the top right “Help” button, a panel will open and your lab ID will be shown at the bottom.
I shall take a look.
When you reply back, kindly tag me in the post so that I’m notified.
@Mubsi I am facing the same issue: accuracy don’t converge to 1 and stays the same (8 for some reason). I refreshed the lab and rebooted the server (from Help menu), but it did not affect results.
It seems that I have found a problem. Please let me know if my finding is correct.
I have debugged this locally (e.g. running code on my local machine instead of Coursera Labs).
I have reproduced described behavior locally which means that either I made some coding error or somehow misconfigured the model.
I went through the code and it does not seem to be coding error.
I have checked the model and I can see that weights of Dense layer are changing between runs.
However, neither loss nor accuracy is changing.
The only thing that left to check was our train and eval tasks.
I digged through TRAX documentation and found that lab code uses deprecated features of trax (tl.CrossEntropyLoss() and tl.Accuracy()). I have swapped them with tl.WeightedCategoryCrossEntropy() and tl.WeightedCategoryAccuracy() accordingly and voila:
@Mubsi please could you confirm if that’s the root cause of the observed problem or not?
P.S. The lab has hard dependency on NLTK 4.5 otherwise unit tests starts failing: process_tweet is producing different results and in turn vocabulary is different.
Can you share your lab ID with me ? In the assignment, when you click the top right “Help” button, a panel will open and your lab ID will be shown at the bottom.
I shall take a look.
When you reply back, kindly tag me in the post so that I’m notified.
After introduction of WeightedCategoryAccuracy, unit test started to fail (unexpected loss function).
So, @Mubsi, your guidance here will be highly appreciated.
You changed the original code in the Section 4.1, from metrics=[tl.CrossEntropyLoss(), tl.Accuracy()], to metrics=[tl.WeightedCategoryCrossEntropy(), tl.WeightedCategoryAccuracy()]. This was causing the unit tests to fail afterwords.
There was clear warning on top of that code cell, # PLEASE, DO NOT MODIFY OR DELETE THIS CELL.
Please refrain from editing the original code, as it cause the unit tests and the autograder to fail. Once you have submitted your assignment, and gotten the desired grade, feel free to experiment with the assignment.
Hello @Mubsi I’m facing the same issue as the other folks here (i.e. no convergence in accuracy, accuracy stays at 4., and getting weird log probs, even though I’m passing all the tests). My lab ID = teknlhiw
Thank you!
I have fixed your mistakes in C3_W1_Assignment_v2.ipynb. The training parts now run. I noticed you added extra print statements in the notebook, make sure to remove those and change the assignment name to its original before submitting it.