-
-
Save mdfarragher/f24417448a90046ef5179718bb1299db to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// build the network | |
var network = features | |
.OneHotOp(10000, true) | |
.Embedding(128) | |
.TransposeAxes(new CNTK.Axis(1), new CNTK.Axis(0)) | |
.Convolution1D(32, 7, activation: CNTK.CNTKLib.ReLU) | |
.Pooling(PoolingType.Max, new int[] { 5 }, new int[] { 5 }) | |
.Convolution1D(32, 7, activation: CNTK.CNTKLib.ReLU) | |
.Pooling(PoolingType.Max, CNTK.NDShape.Unknown(), new int[] { 5 }) | |
.Dense(1, CNTKLib.Sigmoid) | |
.ToNetwork(); | |
Console.WriteLine("Model architecture:"); | |
Console.WriteLine(network.ToSummary()); | |
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