February 2020
Intermediate to advanced
328 pages
8h 19m
English
We are now familiar with the dataset. Let's now move on to building and training the neural network:
in_layer <- mx.symbol.Variable("data")layer1 = mx.symbol.FullyConnected(in_layer,name="dense1",num_hidden=64)activation1 <- mx.symbol.Activation(layer1, name="relu1", act_type="relu")layer2 = mx.symbol.FullyConnected(activation1,name="dense2",num_hidden=64)activation2 <- mx.symbol.Activation(layer2, name="relu2", act_type="relu")layer3 = mx.symbol.FullyConnected(activation2,name="dense3",num_hidden=1)out = mx.symbol.LinearRegressionOutput(layer3)
Read now
Unlock full access