pykan
pykan copied to clipboard
Fix dtype error when input dtype is Double
In issues #105, #113 and #127, it was discovered that using input data type Double (np.float64) resulted in a RuntimeError: expected scalar type Double but found Float. This PR proposes a solution by ensuring that the coef variable matches the data type of x_eval.