![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
机器学习实践
文章平均质量分 65
hb707934728
这个作者很懒,什么都没留下…
展开
-
LinearRegression,RidgeCV,LassoCV,ElasticNetCV各自使用场景
#!/usr/bin/python# -*- coding:utf-8 -*-import numpy as npfrom sklearn.linear_model import LinearRegression, RidgeCV, LassoCV, ElasticNetCVfrom sklearn.preprocessing import PolynomialFeaturesimpo原创 2017-04-08 16:24:24 · 7278 阅读 · 0 评论 -
关于数学中的范数
原创 2017-04-27 10:49:37 · 621 阅读 · 0 评论 -
聚类算法之MeanShift(均值漂移)
带宽: 0.1 0.531661129692 聚类簇的个数为: 7['#ff0000', '#d4802a', '#aa0055', '#7f807f', '#5500aa', '#2a80d4', '#0000ff']带宽: 0.2 1.06332225938 聚类簇的个数为: 4['#ff0000', '#aa0055', '#5500aa', '#0000ff']带宽: 0.3 1.原创 2017-05-08 13:35:36 · 3700 阅读 · 2 评论 -
查询GPU是否支持CUDA
登陆网址,https://developer.nvidia.com/cuda-gpus选择对应的显卡系列,即可查看你的GPU显卡是否支持CUDA转载 2017-05-08 11:13:09 · 12485 阅读 · 0 评论 -
聚类算法之AP算法
Preference: -5.29914553034mul= 1.0p=1.0 -5.29914553034 聚类簇的个数为: 16# -*- coding:utf-8 -*-import numpy as npimport matplotlib.pyplot as pltimport sklearn.datasets as dsimport matplotlib.colorsfr原创 2017-05-08 11:05:32 · 2749 阅读 · 0 评论 -
xgboost使用案例二
# -*- encoding:utf-8 -*-#xgboost安装教程 参考 http://blog.csdn.net/lht_okk/article/details/54311333#xgboost原理参考 http://www.cnblogs.com/mfryf/p/6238185.html#http://blog.csdn.net/bryan__/article/details/52原创 2017-04-25 14:49:40 · 6817 阅读 · 4 评论 -
xgboost使用案例一
# -*- encoding:utf-8 -*-#xgboost安装教程 参考 http://blog.csdn.net/lht_okk/article/details/54311333#xgboost原理参考 http://www.cnblogs.com/mfryf/p/6238185.html#http://blog.csdn.net/bryan__/article/details/52原创 2017-04-25 14:31:36 · 6842 阅读 · 3 评论 -
利用随机森林,xgboost,logistic回归,预测泰坦尼克号上面的乘客的获救概率
数据示例:,PassengerId,Survived,Pclass,Name,Sex,Age,SibSp,Parch,Ticket,Fare,Cabin,Embarked,Embarked_C,Embarked_Q,Embarked_S,Embarked_U0,1,0,3,"Braund, Mr. Owen Harris",1,22.0,1,0,A/5 21171,7.25,,S,0,0,1原创 2017-04-25 14:29:09 · 10663 阅读 · 3 评论 -
SVM手写字符识别
错误率:载入训练数据...载入完成,耗时3.197000秒图片个数:42000,图片像素数目:784载入测试数据...载入完成,耗时2.214000秒(33600L, 784L) (8400L, 784L)SVM开始训练...SVM训练结束,耗时2分钟21.261秒SVM训练集准确率:94.676%,耗时3分钟55.097秒SVM测试集准确率:93.810%,耗时0分原创 2017-05-04 12:29:53 · 1626 阅读 · 0 评论 -
随机森林对鸢尾花数据的两特征组合的分类结果
特征: 花萼长度 + 花萼宽度 预测正确数目: 123 准确率: 82.00%特征: 花萼长度 + 花瓣长度 预测正确数目: 143 准确率: 95.33%特征: 花萼长度 + 花瓣宽度 预测正确数目: 145 准确率: 96.67%特征: 花萼宽度 + 花瓣长度 预测正确数目: 144 准确率: 96.00%特征: 花萼宽度 + 花原创 2017-04-17 15:48:58 · 4808 阅读 · 0 评论 -
决策树对鸢尾花数据的两特征组合的分类结果
特征: 花萼长度 + 花萼宽度 预测正确数目: 123 准确率: 82.00%特征: 花萼长度 + 花瓣长度 预测正确数目: 145 准确率: 96.67%特征: 花萼长度 + 花瓣宽度 预测正确数目: 144 准确率: 96.00%特征: 花萼宽度 + 花瓣长度 预测正确数目: 143 准确率: 95.33%特征: 花萼宽度 + 花原创 2017-04-17 15:44:53 · 2095 阅读 · 0 评论 -
评价拟合效果
原创 2017-04-11 16:45:42 · 14080 阅读 · 0 评论 -
基于线性回归预测房价
预测结果:样本数据: 0.00632 18.00 2.310 0 0.5380 6.5750 65.20 4.0900 1 296.0 15.30 396.90 4.98 24.00 0.02731 0.00 7.070 0 0.4690 6.4210 78.90 4.9671 2 242.0 17.80 396.90原创 2017-04-11 16:05:33 · 5102 阅读 · 3 评论 -
Logistic回归实现鸢尾花分类
分类效果:数据集示例:5.1,3.5,1.4,0.2,Iris-setosa4.9,3.0,1.4,0.2,Iris-setosa4.7,3.2,1.3,0.2,Iris-setosa4.6,3.1,1.5,0.2,Iris-setosa5.0,3.6,1.4,0.2,Iris-setosa5.4,3.9,1.7,0.4,Iris-setosa4.6,3.4,1.4,0原创 2017-04-11 16:30:31 · 6522 阅读 · 6 评论 -
聚类算法之DBSCAN(具有噪声的基于密度的聚类方法)
# !/usr/bin/python# -*- coding:utf-8 -*-import numpy as npimport matplotlib.pyplot as pltimport sklearn.datasets as dsimport matplotlib.colorsfrom sklearn.cluster import DBSCANfrom sklearn.pre原创 2017-05-10 10:36:20 · 4973 阅读 · 0 评论