Programs API
Synalinks offers three methods to create programs, each tailored to different levels of complexity and use cases:
-
Sequential Program: This is the simplest method, involving a straightforward list of modules. Ideal for single-input, single-output stacks of modules. However, it is limited in flexibility compared to other methods.
-
Functional Program: This is a fully-featured API that supports arbitrary program architectures. Easy to use and suitable for most users, offering greater flexibility than the Sequential program.
-
Program Subclassing: This method allows you to implement everything from scratch. Ideal for complex or research use cases. It is also the preferred method for contributing.
Programs API Overview
The Program class
The Sequential class
Program training APIs
- compile method
- fit method
- evaluate method
- predict method
- train_on_batch method
- test_on_batch method
- predict_on_batch method