docs/basic/transfunc_on_angel_en.md
| Name | Expression | Description |
|---|---|---|
| Sigmoid | Turn any real number into propability | |
| tanh | Turn any real number into a number between -1 and 1 | |
| relu | Discard the negative part | |
| dropout | Randomly set to zero | |
| identity | Output as it is |
The following figure shows some common transfer functions (some of them are not available in Angel):
"transfunc": "sigmoid",
"transfunc": {
"type": "tanh"
}
"transfunc": "dropout",
"transfunc": {
"type": "dropout",
"proba": 0.5,
"actiontype": "train"
}
Note: since the dropout transfer function is calculated differently in training and testing (prediction), users must specify in which scenario the function is used: train, inctrain or predict.