def get_net():
    'Gets a neural network. Better results are obtained with modifications.'
    net = gluon.nn.Sequential()
    with net.name_scope():
        net.add(gluon.nn.Dense(50, activation='relu'))
        net.add(gluon.nn.Dense(1))
    net.initialize()
    return net
Gets a neural network. Better results are obtained with modifications.
def get_net():
    
    net = gluon.nn.Sequential()
    with net.name_scope():
        net.add(gluon.nn.Dense(50, activation='relu'))
        net.add(gluon.nn.Dense(1))
    net.initialize()
    return net