def sigmoid(x): return 1/(1 + math.exp(-x)) def calculate_prediction(age, sex, weight_1, weight_2, bias): # Multiply the inputs by their weights, sum the results up layer_2_node = age * weight_1 + sex * weight_2 + 1 * bias prediction = sigmoid(layer_2_node) return prediction