Explicit error when n_dim changes during partial_fit