bottler / iisignature

Iterated integral signature calculations
MIT License
92 stars 19 forks source link

Invalid argument: 0-th value returned by pyfunc_0 is double, but expects float [[{{node lambda_1/Sig}}]] #14

Open XinruiYuan opened 3 years ago

XinruiYuan commented 3 years ago

Hi, I want to run demo_keras.py to see how the signature were used in cnn training, however, it didn't work as title showed.

bottler commented 3 years ago

I imagine lots has changed in theano, keras and tensorflow since that demo was made, making it unlikely to work, and you can learn the idea by reading the code even if it doesn’t always run.

In this particular case, it might be an iisignature change though. The sig function returns double, but maybe it used to return float.

if you are using theano, you might just need to change float32 to float64 here. If it’s tensorflow the change would be here.

dishant26 commented 2 years ago

Thank you!!