Skip to content

Instantly share code, notes, and snippets.

Last active October 27, 2022 20:04
What would you like to do?
文章:快速生成Kernel Matrix,文章链接:
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Copy link

hlin863 commented Oct 27, 2022

When recreating the function method1, I encounter an error message: "setting array with a sequence" on the line of code:

mat[i, j] = np.exp(-0.5 / sigma**2 *, vec))

Would you like to verify the version of the code to recreate my problem?

Thank you in advance for considering my question,


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