I would rather never use `todense()` but instead use `toarray()` to never deal with `np.matrix` instances in the sklearn code base.