开发者:上海品职教育科技有限公司 隐私政策详情

应用版本:4.2.11(IOS)|3.2.5(安卓)APP下载

我的世界守则 · 2023年07月18日

除了这三种模型之外,还有其他模型有hyperparameter吗?

NO.PZ2022120202000009

问题如下:

What is the difference between a hyperparameter and a model parameter? Provide an example of a hyperparameter in:

a. Ridge regression

b. The construction of a decision tree

c. The use of SVM where perfect separation is not possible.

选项:

解释:

A parameter is estimated by the algorithm for each dataset (such as the intercept and slope terms in a regression model), whereas hyperparameters are usually choices made based on existing knowledge and then imposed on the model a priori by the researcher. Optimal values for the hyperparameters can be determined using a gridsearch over plausible ranges for the hyperparameters using a validation sub-sample.

a. The hyperparameter in a ridge regression is usually denoted by and controls the relative weight assigned to the model fit (residual sum of squares) relative to the shrinkage term (the squared sum of the slope parameters).

b. When constructing a decision tree, hyperparameters can be used to control the tree to prevent it from overfitting—for instance, by specifying a minimum information gain before allowing the tree a further split, or the specifying the maximum permissible number of branches.

c. When using support vector machines, if a perfect separation is not possible, a hyperparameter can be used to control the relative weight given to model fit (how close the points are to their centroids) and the extent of the misclassifications.

比如K-Means Clustering里的K,

Reinforcement Learning里的α等等


1 个答案

李坏_品职助教 · 2023年07月18日

嗨,从没放弃的小努力你好:


这个题目说的是,针对下列三个模型(就是a, b和c),分别举出 hyperparameter的例子。


不管任何模型或者算法,只要涉及到提前确定参数,都有可能涉及到hyperparameter。所谓的hyperparameter就是需要人类主观确定的参数,对模型和算法施加的限制。

----------------------------------------------
加油吧,让我们一起遇见更好的自己!

  • 1

    回答
  • 0

    关注
  • 228

    浏览
相关问题