@@ -18,7 +18,7 @@ def identity(x):
1818 return x
1919
2020
21- def logistic (x , slope , intercept ):
21+ def logistic_link (x , slope , intercept ):
2222 return 1 / (1 + torch .exp (- x * slope - intercept ))
2323
2424
@@ -45,14 +45,14 @@ def make_fn(base_fn, **params):
4545 return partial (base_fn , ** params )
4646
4747
48- def logistic_constructor (slope = 1 , intercept = 0 ):
48+ def logistic_link_constructor (slope = 1 , intercept = 0 ):
4949 """
5050 Creates a single-parameter logistic function with slope m and offset b.
5151 :param slope: (Default value = 1)
5252 :param intercept: (Default value = 0)
5353
5454 """
55- return make_fn (logistic , slope = slope , intercept = intercept )
55+ return make_fn (logistic_link , slope = slope , intercept = intercept )
5656
5757
5858def identity_link_constructor ():
@@ -85,6 +85,6 @@ def softmax_link_constructor(slope=1, intercept=0):
8585LINK_FUNCTIONS = {
8686 "identity" : identity_link_constructor (),
8787 "linear" : linear_link_constructor (),
88- "logistic" : logistic_constructor (),
88+ "logistic" : logistic_link_constructor (),
8989 "softmax" : softmax_link_constructor (),
9090}
0 commit comments