mlech26l / ncps

PyTorch and TensorFlow implementation of NCP, LTC, and CfC wired neural models
https://www.nature.com/articles/s42256-020-00237-3
Apache License 2.0
1.94k stars 311 forks source link

where is the code of Translating a trained LTC/NCP network into its closed-form variant? #32

Closed beGraced-zhang closed 2 years ago

beGraced-zhang commented 2 years ago

Hi @mlech26l , I am reading the paper 《Closed-form Continuous-time Neural Networks》,but I don't find the code of translating a trained LTC/NCP network into its closed-form variant in keras-ncp. Is it in keras-ncp/cfc_cell.py or isn't there corresponding code in keras-ncp? Could you please upload to github? Thanks in advance for helping me.

mlech26l commented 2 years ago

Hi @ZhangMengEnAPI The closed-form networks are only approximations of the LTC model and their weights are not compatible.

raminmh commented 2 years ago

@ZhangMengEnAPI, as @mlech26l mentioned training of closed-form networks is independent of their LTC form.

To run the translated closed-form network for the driving example described in our "closed-form continuous-time neural networks" paper, I refer you to our CfC paper repo (https://github.com/raminmh/CfC) folder figure_1_experiments.

beGraced-zhang commented 2 years ago

Thank you very much for your reply @mlech26l @raminmh