public abstract class LinkFunction extends Iced<LinkFunction>
Modifier and Type | Field and Description |
---|---|
hex.genmodel.utils.LinkFunctionType |
linkFunctionType |
Constructor and Description |
---|
LinkFunction() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
expString(java.lang.String x)
Return x as e^x string - helper function
|
abstract double |
link(double f)
Canonical link
|
abstract double |
linkInv(double f)
Canonical link inverse
Be careful if you are changing code here - you have to change it in DeeplearningMojoModel and GbmMojoModel too
|
abstract java.lang.String |
linkInvString(java.lang.String f)
String version of link inverse (for POJO scoring code generation)
|
java.lang.String |
linkInvStringFloat(java.lang.String f) |
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonBytes, toJsonString, write, writeExternal, writeJSON
public static java.lang.String expString(java.lang.String x)
x
- public abstract double link(double f)
f
- value in original space, to be transformed to link spacepublic abstract double linkInv(double f)
f
- value in link space, to be transformed back to original spacepublic abstract java.lang.String linkInvString(java.lang.String f)
f
- value to be transformed by link inversepublic java.lang.String linkInvStringFloat(java.lang.String f)