MCPcopy
hub / github.com/tensorflow/tfjs-examples / buildSimpleRNNModel

Function buildSimpleRNNModel

jena-weather/models.js:128–134  ·  view source on GitHub ↗
(inputShape)

Source from the content-addressed store, hash-verified

126 * layer.
127 */
128export 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.

Callers 2

models_test.jsFile · 0.90
buildModelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected