摘要:
一、岭回归模型 岭回归其实就是在普通最小二乘法回归(ordinary least squares regression)的基础上,加入了正则化参数λ。 二、如何调用 class sklearn.linear_model.Ridge(alpha=1.0, fit_intercept=True, nor 阅读全文
摘要:
Web API 近几年变得越来越火,而简洁的 API 设计在多后端系统交互应用中也变得尤为重要。通常,会使用 RESTful API 来作为我们的 Web API 。本文介绍了几种简洁 RESTful API 设计的最佳实践。 一、使用的名词而不是动词 使用名词来定义接口,不应该使用动词: /get 阅读全文
摘要:
from sklearn import preprocessing # normalize the data attributes normalized_X = preprocessing.normalize(X) # standardize the data attributes standard 阅读全文