text_plain_output_1.png
import math

import math

import math
def sigmoid(x):
    value = math.exp(x) / (1 + math.exp(x))
    return value

import math
def binary_sigmoid(x):
    value = math.exp(x) / (1 + math.exp(x))
    if value >= 0.5:
        value = 1
    else:
        value = 0
    return value

val_list = [1.1, 2.3, 3.5, 4.8, 5.6, -1.7, -2.3, -3.9, -4.5, -5.1]
for x in val_list:
    print(binary_sigmoid(x))