简体   繁体   English

在python中使用L2范数的LAD? (sklearn)

[英]LAD with L2 norm in python? (sklearn)

I want to implement the LAD version of the linear_model.Ridge() in sklearn.我想在 sklearn 中实现 linear_model.Ridge() 的 LAD 版本。 Meaning the regularization is still done on the L2 norm but the model minimizes the sum of the absolute deviations not the squares of the errors.这意味着正则化仍然在 L2 范数上完成,但模型最小化了绝对偏差的总和而不是误差的平方。 Meaning we're minimizing意味着我们正在最小化在此处输入图片说明

Is that possible?那可能吗?

如果您在 scikit learn 中使用SGDRegressor并指定epsilon_insensitive损失函数并将epsilon值设置为零,您将获得一个等效于 L2 正则化的 LAD 模型。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 python sklearn:“ sklearn.preprocessing.normalize(X,norm ='l2')”和“ sklearn.svm.LinearSVC(penalty ='l2')”之间有什么区别 - python sklearn: what is the different between “sklearn.preprocessing.normalize(X, norm='l2')” and “sklearn.svm.LinearSVC(penalty='l2')” 在sklearn python中撤消L2规范化 - Undo L2 Normalization in sklearn python 如何使用 L2 范数(python)在描述符中查找匹配项? - How to find matches in descriptors using L2 norm (python)? 使用Python广播的内存高效L2规范 - Memory Efficient L2 norm using Python broadcasting sklearn.preprocessing.normalize中的norm ='l2'对于矩阵归一化有什么作用? - What does norm='l2' in sklearn.preprocessing.normalize do for matrix normalization? 为什么MSE sklearn库给我的平方误差不同于l2范数平方误差? - Why does the MSE sklearn library give me a different squared error compared to the l2 norm squared error? 如何使用 Sklearn 在 Python 中对列表列表进行 L2 规范化 - How to L2 Normalize a list of lists in Python using Sklearn Keras lambda层为l2范数 - Keras lambda layer for l2 norm numpy.linalg.norm VS L2 规范的 scipy cdist - numpy.linalg.norm VS scipy cdist for L2 norm 是否有 Python function 来计算 2 个矩阵之间的最小 L2 范数,直到列排列? - Is there a Python function to compute minimal L2 norm between 2 matrices up to column permutation?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM