Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is extra with Keras functional API?

What extra can be done using Keras functional API, which could not be done using keras sequential models? Apart from the fact that a simple model can be reused for a time bases data using “TimeDistributed” layer wrapper ?

like image 901
Abhishek Avatar asked Jan 01 '26 15:01

Abhishek


1 Answers

It is much more than model reuse, the functional API allows you to easily define models where layers connect to more than just the previous and next layers. You can connect layers to any other layers as you wish, so siamese networks, densely connected networks and such become possible. The old Graph API allowed the same level of connectivity but it was a PITA due to its use of layer node names to define connectivity.

The sequential model is just a sequential set of layers, and new neural network architectures at this time are moving away from such pattern.

like image 151
Dr. Snoopy Avatar answered Jan 03 '26 03:01

Dr. Snoopy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!