use sklearn backports of np assertions
make --sparse a str