C3W2 fit_vectorizer Grading

Hello,

I have a problem with the grading in this assignment, and I don’t understand where it comes from. When I ran my code, all tests passed and seemed to be working fine.

However, in the grading I got 0 in the fit_vectorizer and got the following error:

There was an error grading your submission. Details: ‘numpy.ndarray’ object has no attribute ‘map’

What could be causing this?

Thanks for the help

check your dataset step in the first grade function train_val, make sure you have converted the data as per instructions and the use the appropriate function in the fit_vectorizer.

in the grade function train_val dataset, local argument data is np array which should be converted to integer type data in the first code step for instruction when creating train_size :backhand_index_pointing_down:t2:

Compute the number of sentences that will be used for training (should be an integer)

if you have done the above step correct, then while slicing the dataset, make sure it is passed with string bracket and not tuple.

next if the above steps are correct, then lastly in fit_vectorizer, for instruction

Adapt the vectorizer to the training sentences, remember training sentences are recalled by assigned arguments for fit_vectorizer and it is not data or dataset or train_size or training_sentences, but recalled by train_sentences