Hi all, i’m studying the notebook 3-logreg-nb-imdb.ipynb in colab but i’ve a strange error in this cell

```
x_nb = xx.multiply(r)
m = LogisticRegression(dual=True, C=0.1)
m.fit(x_nb, y.items);
```

val_x_nb = val_x.multiply®

preds = m.predict(val_x_nb)

(preds.T==valid_labels).mean()

the scipy version in colab are 1.3.1 and the xx shape are (800, 260374) and r are (260374,).

The error is

ValueError: column index exceeds matrix dimensions

at row **x_nb = xx.multiply®**

Can someone help me ?

```
/usr/local/lib/python3.6/dist-packages/scipy/sparse/coo.py in _check(self)
285 raise ValueError('row index exceeds matrix dimensions')
286 if self.col.max() >= self.shape[1]:
```

–> 287 raise ValueError(‘column index exceeds matrix dimensions’)

288 if self.row.min() < 0:

289 raise ValueError(‘negative row index found’)

Thanks a lot