Building AI Exercise 20: Logistic regression - replace 'nominator' with 'numerator' in Option D p...
Building AI course teaches outstanding AI content in a well-structured manner! Please consider the following update to Option D.
Suggestion:
replace nominator with numerator in Option D pseudo code
Reason:
"Nominator" is sometimes mistakenly used instead of "numerator", but in math, it's not a valid term.
In English, "nominator" actually means a person who nominates someone (e.g., for an award or position), not anything related to fractions.
Context:
Exercise 20: Logistic regression
Intermediate
Which of these implement a sigmoid function correctly? Select all of the correct implementations from below (more than one may apply).
Option D
def sigmoid(x):
x2 = -1.0*x
a = math.exp(x2)
nominator = 1
denominator = 1 + a
return nominator / denominator