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
cls = Kfda(kernel='rbf', n_components=3)
clf = cls.fit_transform(X_train, y_train)
TypeError: np.matrix is not supported. Please convert to a numpy array with np.asarray.
Although I have converted the data to np.array, he still reminded me that I do not support np.matrix, Please convert to a numpy array with np.array.
These codes used to work normally, but now they keep reporting this error. I look forward to your help to solve this problem. Thank you.
The text was updated successfully, but these errors were encountered:
cls = Kfda(kernel='rbf', n_components=3)
clf = cls.fit_transform(X_train, y_train)
TypeError: np.matrix is not supported. Please convert to a numpy array with np.asarray.
Although I have converted the data to np.array, he still reminded me that I do not support np.matrix, Please convert to a numpy array with np.array.
These codes used to work normally, but now they keep reporting this error. I look forward to your help to solve this problem. Thank you.
The text was updated successfully, but these errors were encountered: