Skip to content

problem #2

Description

@judelu2021

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions