Hyperparameters & Parameters

机器学习中,模型的参数通过训练获得,而超参数在训练前设定,影响训练过程如模型复杂度、决策阈值或正则化等。例如,多项式模型的最大阶数是超参数,决定模型复杂度;系数和偏置则是需训练得到的参数。超参数通常在训练几轮后用验证集评估调整,而损失函数中的( heta)是正常参数,会通过最小化损失函数更新。
摘要由CSDN通过智能技术生成

Definition

In machine learning, a parameter of a model is typically derived THROUGH training,
while a hyperparameter is a parameter that decides and controls training, by specifying the type, the complexity of models, or deciding the decision threshold (such as the one I mentioned about when generative the ROC curve), or regularization (such as Lasso, Ridge), etc. The hyperparameter is predetermined BEFORE training starts.
(参数通过训练中得到,超参数predetermine)

Example
One example is the polynomial. The maximum degree of a polynomial model is a hyperparameter. It decided the complexity of the model (1 being linear, 2 being quadratic, 3 being cubic, etc). You need to specify it before training and fix it during training. The coefficient and bias, however, is regular parameters that need to be derived through training.

The hyperparameter is typically evaluated AFTER a few rounds of training, on the validation dataset. A validation set is obtained by split the data 3:1:1 prior to training, purely by random. 3 for training, 1 for validation (to adjust models and hyperparameters), and 1 for test (to perform the final performance evaluation of the models).

Lastly, in the cross-entropy loss section, there is a \theta in the function h(xi). That \theta is a normal parameter. Since it will be updated by minimizing the value of the loss function. The loss function is typically NOT used as a performance measure (although you indeed can report the loss value using inputs and outputs from the test set as a part of the model evaluation). Instead, It is a part of the machine learning model that is crucial for training. The normal parameter (i.e. not hyperparameter) is an integral part of the loss function that will be updated to minimize the loss function.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值