V
V
vovak19192019-09-13 22:17:15
Neural networks
vovak1919, 2019-09-13 22:17:15

What are the types of goals when training a model in Keras?

The Keras model has a fit method that is passed samples and targets. From the examples it is not clear what form the goals can take. I only realized that it can be a number for classification or regression, or a binary matrix for categories, obtained, for example, by the to_categorical function. Or maybe a goal, for example, a sequence of words? For example, 1,2,3 (1:"I", 2:"I love", 3:"Cheese", etc.). What should a numpy array look like in this case? What other types of goals can there be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Olohtonov, 2019-09-14
@vovak1919

Target is something from which you can take a derivative, that is, only numbers.
In the case of words, one usually predicts the probability of each of the words using softmax.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question