Here, "x" is the input data tensor (np.ndarray) "model" is an instance of classifier, such as keras.models.Sequential.
- If you want the final class label only:
class = model.predict_class(x) # The result "class" is a np.ndarray instance containing class label
- If you want probability (softmax) of all the candidate classes:
class_prob = model.predict(x) # The result "class_preob" is a np.ndarray instance containing probability of each class