コード例 #1
0
def logistic_classifier(inputs):
    return layers.fully_connected(inputs, 1, activation_fn=math_ops.sigmoid)
コード例 #2
0
def batchnorm_classifier(inputs):
    inputs = layers.batch_norm(inputs, decay=0.1, fused=False)
    return layers.fully_connected(inputs, 1, activation_fn=math_ops.sigmoid)