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 find the error message, raised when the number of features changes between calls to partial_fit in MiniBatchKMeans, a bit uninformative. See
fromsklearn.clusterimportMiniBatchKMeansimportnumpyasnpX=np.random.random_sample((100,10))
mbk=MiniBatchKMeans()
mbk.partial_fit(X)
mbk.partial_fit(X[:,:-1])
>>>"ValueError: Incompatible dimension for X and Y matrices: X.shape[1] == 9 while Y.shape[1] == 10"
I understand that the error comes from a shape mismatch somewhere but it could be more informative (what is Y here ?), or am I just being too picky ?
The text was updated successfully, but these errors were encountered:
I find the error message, raised when the number of features changes between calls to partial_fit in MiniBatchKMeans, a bit uninformative. See
I understand that the error comes from a shape mismatch somewhere but it could be more informative (what is Y here ?), or am I just being too picky ?
The text was updated successfully, but these errors were encountered: