C3_W1 assignment exercise 6

TypeError Traceback (most recent call last)
2 # Take a look on how the eval_task is inside square brackets and
3 # take that into account for you train_model implementation
----> 4 training_loop = train_model(model, train_task, [eval_task], 100, output_dir_expand)

in train_model(classifier, train_task, eval_task, n_steps, output_dir)
12 trainer - trax trainer
13 ‘’’
—> 14 rnd.seed(31) # Do NOT modify this random seed. This makes the notebook easier to replicate
16 ### START CODE HERE (Replace instances of ‘None’ with your code) ###

TypeError: ‘int’ object is not callable

Hi tejakalyanam,

It’s hard to see from the traceback what could be the issue here. In case you have not resolved this, feel free to send me your notebook as an attachment to a direct mail so I can have a look at what’s going on.

(code removed from post)

Hi @tejakalyanam

Please read “Important Note on Submission to the AutoGrader” at every top of each Assignment.

  • You defined your own def test_tweet_to_tensor()
  • You changed function parameters in # UNQ_C5, the start of classifier should be:
    def classifier(vocab_size=9088,..

You have to fix these and see if you can pass. If you can’t, I would suggest to save your work, refresh the workspace and redo your Assignment again, because your code looks ok.


P.S. remove your solution code from this topic.