With the latest version of scikit-learn, LDA model doesn't support np.matrix any more and vectors should be casted to np.ndarray. However, lda_model rely on this data type to compute same values. This PR ensure the library work with both np.matrix and np.ndarray.
With the latest version of
scikit-learn
, LDA model doesn't supportnp.matrix
any more and vectors should be casted tonp.ndarray
. However,lda_model
rely on this data type to compute same values. This PR ensure the library work with bothnp.matrix
andnp.ndarray
.