thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

AI & Machine Learning · Intermediate

Keras

A high-level deep learning API for defining and training neural networks; Keras 3 runs on TensorFlow, JAX or PyTorch.

Definition

Keras offers Sequential and Functional APIs, built-in layers, losses, optimizers and callbacks such as EarlyStopping and ModelCheckpoint. It is the standard API taught for TensorFlow-based certifications.

Example

model.compile(optimizer='adam', loss='sparse_categorical_crossentropy', metrics=['accuracy'])

Exam tip

sparse_categorical_crossentropy takes integer labels; categorical_crossentropy takes one-hot labels.

Related terms