You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if there is an open issue on handling dtype='object'.
I think we should try to convert to float in check_array if dtype=object.
Does anyone remember where the discussion about this was?
I think #4006 is related (we should collect dtype object issues somewhere).
to reproduce
fromsklearnimportmixturefromsklearn.datasetsimportmake_blobsX, _=make_blobs()
X=X.astype(object)
g=mixture.GMM(covariance_type='full',n_components=4) #for some reason only full worksg.fit(X)
#worksprintg.bic(X)
g=mixture.GMM(covariance_type='diag',n_components=4) #for some reason only full worksg.fit(X)
#fails:printg.bic(X)
The text was updated successfully, but these errors were encountered:
GMM is not happy with
dtype=object
in some cases.I'm not sure if there is an open issue on handling dtype='object'.
I think we should try to convert to float in
check_array
ifdtype=object
.Does anyone remember where the discussion about this was?
I think #4006 is related (we should collect dtype object issues somewhere).
to reproduce
The text was updated successfully, but these errors were encountered: