genestboost.link_functions package¶
Link functions module - contains link functions for boosting.
-
class
genestboost.link_functions.
BaseLink
[source]¶ Bases:
abc.ABC
Abstract base class for link functions.
-
class
genestboost.link_functions.
CLogLogLink
(eps=1e-10)[source]¶ Bases:
genestboost.link_functions.base_class.BaseLink
Complementary log-log link function implementation.
-
__init__
(eps=1e-10)[source]¶ Class initializer.
Extends the BaseLink class initializer.
- eps: float (default = 1e-10)
A small constant float to prevent log from returning negative infinity.
-
-
class
genestboost.link_functions.
CubeRootLink
[source]¶ Bases:
genestboost.link_functions.power_links.PowerLink
Cube root link function implementation.
-
class
genestboost.link_functions.
IdentityLink
[source]¶ Bases:
genestboost.link_functions.base_class.BaseLink
Implementation of the IdentityLink function.
-
class
genestboost.link_functions.
LogLink
(summand=0.0)[source]¶ Bases:
genestboost.link_functions.base_class.BaseLink
Implementation of the log link function.
-
__init__
(summand=0.0)[source]¶ Class initializer.
Extends the BaseLink class intializer.
- Parameters
summand (float) – Summand of the log in the link implementation - i.e., link = log(y + summand).
-
-
class
genestboost.link_functions.
LogitLink
[source]¶ Bases:
genestboost.link_functions.base_class.BaseLink
Implementation of the logit link function.
-
class
genestboost.link_functions.
Logp1Link
[source]¶ Bases:
genestboost.link_functions.log_links.LogLink
Log plus 1 link function implementation.
-
class
genestboost.link_functions.
PowerLink
(power, summand=0.0)[source]¶ Bases:
genestboost.link_functions.base_class.BaseLink
Implementation of power link functions.
-
__init__
(power, summand=0.0)[source]¶ Initialize a power link instance - i.e., link = (y + summand) ** power.
Extends BaseLink class intializer.
- Parameters
power (float or int) – Exponent of the link function.
summand (float or int) – Summand of the link function.
-