code: def _build_standard_gru(
      num_classes,
      maxlen,
      max_features,
      features,
      loss_func="categorical_crossentropy",
      activation="softmax",
      metrics=["accuracy"],
      verbose=1,
  ):
      model = keras.models.Sequential()
      model.add(
          keras.layers.Embedding(max_features, 256, input_length=maxlen)
      )
      model.add(
          keras.layers.GRU(256, dropout=0.9, return_sequences=True)
      )
      model.add(keras.layers.GRU(256, dropout=0.9))
      model.add(keras.layers.Dense(num_classes, activation=activation))
      model.compile(
          loss=loss_func, optimizer=U.DEFAULT_OPT, metrics=metrics
      )
      return model
  
file_path: ktrain/ktrain/text/models.py
imports: from ..None import utils
  from ..imports import *
  from .None import preprocessor
label_desc: Use image node_id 11 for calling a global function with example usage: _build_standard_gru(num_classes, maxlen, max_features, features, loss_func, activation, metrics, verbose) and returns: model