pykan icon indicating copy to clipboard operation
pykan copied to clipboard

Fix dtype error when input dtype is Double

Open Jim137 opened this issue 1 year ago • 0 comments

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.

Jim137 avatar May 08 '24 11:05 Jim137