The Keras deep learning API runs on top of the machine learning platform TensorFlow. I use Keras in my work for building classification and detection models for imagery. My experimentation with it for predictions in text and other sequences, as well as with reinforcement learning models, has made it my preferred deep learning framework.
Below are a few examples of using Keras to perform the most common deep learning tasks such as model training, model evaluation, and visualizing the activation maps of a trained convolutional neural network (convnet).
Create a 2-class classification model using Keras's Sequential API. Train it from scratch on a small dataset.
Create a 2-class classification model using Keras's Model API. Train it from scratch on a small dataset.
Create a 2-class classification model by subclassing Keras's Model API. Train it from scratch on a small dataset.
Visualize the feature maps of the convolutional layers of the "Simple CNN" model trained above.
A simple example in two parts:
- Train a multiclass classification model
- Evaluate its performance using classification_report and confusion_matrix from sklearn.metrics