Example #1
0
 public LSTMModel(LSTMModelArgs args)
     : base(args)
 {
     optimizer = tf.optimizers.Adam(args.LearningRate);
     lstm      = LSTM(args.NumUnits);
     output    = Dense(args.NumClasses);
 }
Example #2
0
        public LSTMModel(LSTMModelArgs args)
            : base(args)
        {
            optimizer = keras.optimizers.Adam(args.LearningRate);

            var layers = keras.layers;

            lstm   = layers.LSTM(args.NumUnits);
            output = layers.Dense(args.NumClasses);
        }