当前位置: 首页 > 文档资料 > Angel 中文文档 >

Angel 中的传输函数

优质
小牛编辑
130浏览
2023-12-01

Angel中的传递函数

1. Angel中的传递函数有:

名称表达式说明
Sigmoid丢弃负的部分
dropout随机置0
identity: 传递函数

2. 传递函数的json表示

2.1 无参数的传递函数

"transfunc": "sigmoid",

"transfunc": {
    "type": "tanh"
}

2.2 有参数的传递函数

"transfunc": "dropout",

"transfunc": {
    "type": "dropout",
    "proba": 0.5,
    "actiontype": "train"
}

注: 由于dropout传递函数在训练与测试(预测)中计算方式不一样, 所以要用actiontype表明是哪种场景, train/inctrain, predict.

项目地址:https://github.com/Angel-ML/angel
官网:https://angelml.ai/