Lost terms

Report a typo

Suppose you are looking at the first document after calling fit_transform for some collection of documents:

  (0, 5)	0.42567716283146345
  (0, 0)	0.42567716283146345
  (0, 1)	0.3028728072833121
  (0, 8)	0.42567716283146345
  (0, 4)	0.3028728072833121
  (0, 2)	0.42567716283146345
  (0, 9)	0.3028728072833121

Your vocabulary looks like this:

{'what': 9, 'is': 2, 'the': 4, 'weather': 8,
 'in': 1, 'chicago': 0, 'today': 5, 'was': 7,
 'temperature': 3, 'tokyo': 6, 'yeasterday': 10}

Which terms will have the value of zero after you call .toarray() and look at the first document? Your answer should contain the indexes of the terms that are equal to zero, separated by a comma.

Enter a short text
___

Create a free account to access the full topic