Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

keras
deep learning

Keras

Educative Answers Team

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Keras is a high-level neural network API written in Python. This deep learning Python library can run on top of other source platforms like TensorFlow.

Keras is based on the idea of minimizing the delay between implementing a specific idea and getting a result. The minimization of this delay is the key to good research.

Let’s have a look at what Keras has to offer:

  • Keras is a user-friendly API that was built with user experience in mind. The API reduces the cognitive load by providing consistent, easily understandable methods as well as clear and meaningful feedback.

  • Keras is a modular API which means that various schemes like neural layers, cost functions, activation functions, etc. are perfectly standalone modules. This makes the API easier to update and helps to create new models by combining existing modules.

  • Keras API is easily extensible as existing modules provide sufficient examples for the creation of new modules that are to be used in advanced research.

  • Perhaps the biggest advantage associated with the Keras API is that the models are described in Python. This makes the API much more robust, easily debuggable, and vastly extensible.

Code

In the example below, we are using Keras backend module for some common matrix operations.

from keras import backend as bk
mat_1 = bk.random_uniform_variable(shape=(2, 2), low = 0, high = 1)
mat_2 = bk.random_uniform_variable(shape=(2, 2), low = 5, high = 10)
# dot product -- transpose
print(bk.dot(mat_1, bk.transpose(mat_2)))

For more information on Keras, take a look at the official documentation.

RELATED TAGS

keras
deep learning
Copyright ©2022 Educative, Inc. All rights reserved

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Keep Exploring