(inputShape)
| 126 | * layer. |
| 127 | */ |
| 128 | export function buildSimpleRNNModel(inputShape) { |
| 129 | const model = tf.sequential(); |
| 130 | const rnnUnits = 32; |
| 131 | model.add(tf.layers.simpleRNN({units: rnnUnits, inputShape})); |
| 132 | model.add(tf.layers.dense({units: 1})); |
| 133 | return model; |
| 134 | } |
| 135 | |
| 136 | /** |
| 137 | * Build a GRU model for the temperature-prediction problem. |
no outgoing calls
no test coverage detected