LSTM, Keras : How many layers should the inference model have?

kevvvvv

Should the inference model in a chatbot model with keras lstm, have the same amount of layers as the main model or it doesnt matter?

Guillem

I don't know what you exactly mean by inference model.

The number of layers of a model is an hyperparameter that you tune during training. Let's say that you train an LSTM model with 3 layers, then the model used for inference must have the same number of layers and use the weights resulting from the training.

Otherwise, if you add non trained layer when inference, the results won't make any sense.

Hope this helps

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

How do I fit the model of two concatenate LSTM in keras?

分類Dev

Train a model using lstm and keras

分類Dev

How to use the first layers of a pretrained model to extract features inside a Keras model (Functional API)

分類Dev

Multiple Embedding layers for Keras Sequential model

分類Dev

How should I install keras if I have anaconda?

分類Dev

Train Keras LSTM model with a variable number of features

分類Dev

Keras LSTM Model for text-generation purpose

分類Dev

DDD: How many aggregates should have a single bounded context?

分類Dev

How many View Controllers should I have in my game?

分類Dev

How to ignore some input layer, while predicting, in a keras model trained with multiple input layers?

分類Dev

Rails: How to model a users that have many appointements with other users

分類Dev

Keras model not training layers, validation accuracy always 0.5

分類Dev

tf.keras.layers.LSTMパラメーターの意味

分類Dev

num_units in GRU and LSTM layers in keras Tensorflow 2 - confuse meaning

分類Dev

How to build a keras model

分類Dev

TensorFlow-tf.keras.layers.Layerとtf.keras.Modelの違い

分類Dev

Keras.modelでtf.keras.layersを使用する

分類Dev

How many Nginx processes should there be?

分類Dev

Tensorflow-LSTMモデルの構築-tf.keras.layers.Dense()の必要性

分類Dev

How to support masking in custom tf.keras.layers.Layer

分類Dev

How to retrain/update keras model?

分類Dev

Why do Keras Conv1D layers' output tensors not have the input dimension?

分類Dev

What does the "[0][0]" of the layers connected to in keras model.summary mean?

分類Dev

How to use Keras LSTM batch_input_size properly

分類Dev

Keras LSTM training. How to shape my input data?

分類Dev

How to use TF IDF vectorizer with LSTM in Keras Python

分類Dev

The mathematical formulation of LSTM in Keras?

分類Dev

Keras LSTMバッチサイズとmodel.fit()

分類Dev

How should be implemented the ViewModel for an activity with many fields

Related 関連記事

  1. 1

    How do I fit the model of two concatenate LSTM in keras?

  2. 2

    Train a model using lstm and keras

  3. 3

    How to use the first layers of a pretrained model to extract features inside a Keras model (Functional API)

  4. 4

    Multiple Embedding layers for Keras Sequential model

  5. 5

    How should I install keras if I have anaconda?

  6. 6

    Train Keras LSTM model with a variable number of features

  7. 7

    Keras LSTM Model for text-generation purpose

  8. 8

    DDD: How many aggregates should have a single bounded context?

  9. 9

    How many View Controllers should I have in my game?

  10. 10

    How to ignore some input layer, while predicting, in a keras model trained with multiple input layers?

  11. 11

    Rails: How to model a users that have many appointements with other users

  12. 12

    Keras model not training layers, validation accuracy always 0.5

  13. 13

    tf.keras.layers.LSTMパラメーターの意味

  14. 14

    num_units in GRU and LSTM layers in keras Tensorflow 2 - confuse meaning

  15. 15

    How to build a keras model

  16. 16

    TensorFlow-tf.keras.layers.Layerとtf.keras.Modelの違い

  17. 17

    Keras.modelでtf.keras.layersを使用する

  18. 18

    How many Nginx processes should there be?

  19. 19

    Tensorflow-LSTMモデルの構築-tf.keras.layers.Dense()の必要性

  20. 20

    How to support masking in custom tf.keras.layers.Layer

  21. 21

    How to retrain/update keras model?

  22. 22

    Why do Keras Conv1D layers' output tensors not have the input dimension?

  23. 23

    What does the "[0][0]" of the layers connected to in keras model.summary mean?

  24. 24

    How to use Keras LSTM batch_input_size properly

  25. 25

    Keras LSTM training. How to shape my input data?

  26. 26

    How to use TF IDF vectorizer with LSTM in Keras Python

  27. 27

    The mathematical formulation of LSTM in Keras?

  28. 28

    Keras LSTMバッチサイズとmodel.fit()

  29. 29

    How should be implemented the ViewModel for an activity with many fields

ホットタグ

アーカイブ