【发布时间】:2016-03-12 12:49:15
【问题描述】:
我正在使用scikit-learn 的岭回归:
regr = linear_model.Ridge (alpha = 0.5)
# Train the model using the training sets
regr.fit(X_train, Y_train)
#bias:
print('bias: \n', regr.intercept_)
# The coefficients
print('Coefficients: \n', regr.coef_)
我找到了(here)linear_model.Ridge 函数的不同选项,但我在列表中没有找到一个特定选项:我如何设置 learning rate(或 learning step)更新功能?
learning rate,我的意思是:
w_{t+1} = w_t + (learning_rate) * (目标函数的偏导数)
【问题讨论】:
标签: python scikit-learn regression