Skip to content

Instantly share code, notes, and snippets.

@mdfarragher
Created December 3, 2019 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdfarragher/52311a3109e05f6e52310c46b66ded8d to your computer and use it in GitHub Desktop.
Save mdfarragher/52311a3109e05f6e52310c46b66ded8d to your computer and use it in GitHub Desktop.
// build the network
var lstmUnits = 32;
var network = features
.OneHotOp(10000, true)
.Embedding(32)
.LSTM(lstmUnits, lstmUnits)
.Dense(1, CNTKLib.Sigmoid)
.ToNetwork();
Console.WriteLine("Model architecture:");
Console.WriteLine(network.ToSummary());
// the rest of the code goes here...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment