第四章 监督学习
来源:互联网 发布:java版qq还能用吗 编辑:程序博客网 时间:2024/05/30 02:52
4.1 Generalized Linear Models 广义线性模型
yˆ(w,x)=w0+w1x1+...+wpxp w是权重
线性回归就是找到 w = (w1 , ..., wp ) 使平方差最小
>>>fromsklearnimportlinear_model
>>>clf =linear_model.LinearRegression()
>>>clf.fit ([[0,0], [1,1], [2,2]], [0,1,2])
LinearRegression(copy_X=True, fit_intercept=True, n_jobs=1, normalize=False)
>>>clf.coef_
array([ 0.5, 0.5])
4.1.2 岭回归
Ridge Regression 待研究
4.1.3 Lasso
4.1.4 Elastic Net
ElasticNetis a linear regression model trained with L1 and L2 prior as regularizer.
4.1.5 Multi-task Lasso
The MultiTaskLassois a linear model that estimates sparse coefficients for multiple regression problems jointly:
4.1.6 Least Angle Regression
4.1.7 LARS Lasso
4.1.8 Orthogonal Matching Pursuit (OMP)
4.1.9 Bayesian Regression
4.1.10 Logistic regression
4.1.11 Stochastic Gradient Descent - SGD
4.1.12 Perceptron
4.1.13 Passive Aggressive Algorithms
4.1.15 Polynomial regression: extending linear models with basis functions
4.2 Linear and quadratic discriminant analysis 线性与二次方程分析
Linear discriminant analysis (lda.LDA) and quadratic discriminant analysis (qda.QDA) are two classic classifiers,
4.2.1 Dimensionality reduction using LDA
lda.LDA.transform 中
4.4.1 Classification
>>>fromsklearnimportsvm>>>X =[[0,0], [1,1]]>>>y =[0,1]
>>>clf =svm.SVC()
>>>clf.fit(X, y)
>>>clf.predict([[2.,2.]])
>>># get support vectors
>>>clf.support_vectors_
>>># get indices of support vectors
>>>clf.support_
>>># get number of support vectors for each class
>>>clf.n_support_
- 第四章 监督学习
- 资格考试_第四章_证券投资基金的监督
- 监督学习
- 监督学习
- 监督学习
- 监督学习&非监督学习
- 监督学习?无监督学习?
- 监督学习&无监督学习
- 第10章 无监督学习
- [模式识别].(希腊)西奥多里蒂斯<第四版>笔记10之__监督学习:后记
- 监督学习、无监督学习、半监督学习、强化学习
- 监督学习、无监督学习、强化学习
- 监督学习,非监督学习,半监督学习
- 监督学习,无监督学习,半监督学习
- 监督学习,非监督学习与半监督学习
- 概念:监督学习、无监督学习与半监督学习
- 机器学习-监督学习
- 监督学习与无监督学习
- 浅谈java中static作用
- 如何在spring中获取request对象
- Eclipse使用技巧 - 2. Eclipse自动补全功能轻松设置
- 如何在Caffe中配置每一个层的结构
- linux配置play freamwork环境
- 第四章 监督学习
- php字符串转换
- 往下拖动页面滚动条时,固定住菜单栏(不随其他内容网上滚动,兼容各版本IE、Chrome、Firefox)
- Android N For Developers 笔记 (一)
- IOS如何给VIEW设置2个圆角?set cornerRadius for only top-left and top-right corner of a UIVIEW
- 当加入DropKick(美化selecte)js时
- Ubuntu14.04 x64 qt集成cuda开发
- 学习一个月vb6.0总结
- Linux系统查看版本信息