Model Subclassing (Part 1)
Learn about subclassing in OOP.
We'll cover the following...
Keras's Sequential
API builds models consisting of a sequence of layers arranged one after the other. The Sequential
class can’t build models that have layers with multiple input or output tensors. We use the functional API to build such models. Besides the above-mentioned APIs, Keras offers an object-oriented approach, subclassing models, to building DL models. Subclassing represents the DL models as classes and allows model reusability.
Let’s review the concepts of OOP to understand subclassing.
Classes and objects
A class is a prototype defining some common properties or attributes. In OOP terminology, a class is a blueprint to create individual objects with similar behavior.
An object is an instance of a particular class that contains actual values of the class attributes. An object combines ...