Instantly share code, notes, and snippets.
When recreating the function method1, I encounter an error message: "setting array with a sequence" on the line of code:
method1
mat[i, j] = np.exp(-0.5 / sigma**2 * np.dot(vec, vec))
Would you like to verify the version of the code to recreate my problem?
Thank you in advance for considering my question,
Haocheng
Sorry, something went wrong.
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 * np.dot(vec, vec))
Would you like to verify the version of the code to recreate my problem?
Thank you in advance for considering my question,
Haocheng