[Week 1][Jazz improvisation][Exercise 1] Trouble with model training

My code for the exercise did well for the ‘create the model object’ part as it return “All test passed!”. However, when I run the code for the “train the model” part, it returns a TypeError saying “int() argument must be a string, a bytes-like object or a number, not ‘NoneType’”. Can please advise me with this.

Sorry for the delay, this message became lost.

Just to close out this issue - you must complete the whole assignment before you can submit it for grading. Any “None” statements that are left, which you are intended to replace with correct code, will cause the grader to crash.