scikit-learn/scikit-learn — Issue #406: factorize common tests
Author: mblondel
Created: 2011-10-20 14:05:17+00:00
State: open

We should factorize common tests in a new file `tests/test_common.py` (or maybe `test_input.py`?). Thinks to check:

- can pickle the object
- raise an exception when data contains nans
- raise an exception for invalid input (e.g., `np.matrix` or `sp.csr_matrix` if dense only implementation)
- raise an exception if `n_features` is not the same in `fit` and `predict` or `transform`

Anything else?