Machine Learning
_iorilan
10年以上软件工程经验,先后从事在线教育/IT金融/即时通信/政府/物流平台/零售/门禁/监控等领域。专注夯实基础/项目成本与架构平衡/框架调研/团队高效协同工作
展开
-
ML.NET 3- 预测房价
1.预备训练数据2.根据训练数据生成模型3.预测实现: using System;using System.Collections.Generic;using System.IO;using System.Text;using System.Threading.Tasks;using Microsoft.ML;using Microsoft.ML.Data;usi...原创 2018-12-02 00:52:30 · 1987 阅读 · 0 评论 -
python ubuntu dlib人脸识别3-人脸对齐
人脸对齐主要用于提特征。其他作用可以自行研究。import sysimport dlibif len(sys.argv) != 3: print( "Call this program like this:\n" " ./face_alignment.py shape_predictor_5_face_landmarks.dat ../ex...原创 2018-12-02 15:00:30 · 1036 阅读 · 0 评论 -
python dlib ubuntu 人脸识别2 使用mmod_human_face_detector进行人脸检测
mmod_human_face_detector.dat是训练好的模型,可以从这里下载:http://dlib.net/files/mmod_human_face_detector.dat.bz2输入参数:1. 模型dat文件2.要检测的人脸图片import sysimport dlibif len(sys.argv) < 3: print( ...原创 2018-12-02 14:51:46 · 4950 阅读 · 0 评论 -
python ubuntu人脸识别 -1 SVM binary 分类器
环境搭建可以参考这篇文章:https://www.learnopencv.com/install-dlib-on-ubuntu/1.使用测试向量训练出简单的SVM分类器2.使用分类器3.pickle存储结果import dlibtry: import cPickle as pickleexcept ImportError: import picklex...原创 2018-12-02 14:47:09 · 435 阅读 · 0 评论 -
使用Azure customvision api
1. 注册https://customvision.ai/2. 创建一个project3. 添加训练图片(每个类别至少五张),并创建至少两个类别标签(TAG)4. 训练5. 获取predict链接下一步就是可以使用postman进行测试了Header :Body:10. 提高准确率添加更多的图片,训练迭代多次。原创 2017-12-20 16:47:17 · 2119 阅读 · 2 评论 -
【译】微软 azure -- 机器学习算法选择的步骤
微软 azure -- 机器学习算法选择的步骤翻译 2017-02-17 15:52:28 · 1960 阅读 · 0 评论 -
.NET中两种OCR方式对比
.NET中两种OCR方式对比原创 2017-02-06 09:55:33 · 10662 阅读 · 0 评论 -
Cognitive Services API 系列-- 使用计算机视觉api完成图片分类
Cognitive Services API 系列-- 使用计算机视觉api完成图片分类原创 2017-01-30 20:41:34 · 1265 阅读 · 0 评论 -
cognitive-services系列 -- 使用微软cognitive-services中的人脸识别模块
cognitive-services系列 -- 使用微软cognitive-services中的人脸识别模块原创 2017-01-21 15:59:32 · 1818 阅读 · 0 评论 -
python ubuntu dlib 4 人脸聚类
1.找出最大聚类2.将人脸存入最大聚类的文件夹 实现:import sysimport osimport dlibimport globif len(sys.argv) != 5: print( "Call this program like this:\n" " ./face_clustering.py shape_pred...原创 2018-12-02 15:06:27 · 705 阅读 · 0 评论 -
python ubuntu dlib 5 -人脸识别并打分
1.检测并提取输入图片的人脸(坐标)2.对每张人脸质量进行评分import sysimport dlibdetector = dlib.get_frontal_face_detector()win = dlib.image_window()for f in sys.argv[1:]: print("Processing file: {}".format(f)) ...原创 2018-12-02 15:09:08 · 464 阅读 · 0 评论 -
python ubuntu dlib 6- 人脸检测并画出轮廓
对输入图片进行人脸检测,画出人脸轮廓import sysimport osimport dlibimport globif len(sys.argv) != 3: print( "Give the path to the trained shape predictor model as the first " "argument and th...原创 2018-12-02 15:18:20 · 2159 阅读 · 0 评论 -
ML.net 3-情绪预测
1. 加载测试数据(csv)2.加载模型3.训练数据4.预测一句话的情绪实现:using System;using System.Collections.Generic;using System.IO;using System.Text;using System.Threading.Tasks;using Microsoft.ML;using Microsoft....原创 2018-12-02 00:47:58 · 1504 阅读 · 0 评论 -
ML.NET 2- 预测出租车价格
1. 预备测试数据2. 加载模型3. 训练4. 预测实现:TaxiFarePrediction.cs:using System;using System.Collections.Generic;using System.IO;using System.Text;using System.Threading.Tasks;using Microsoft.ML;using ...原创 2018-12-02 00:45:04 · 1307 阅读 · 0 评论 -
ML.Net 1 - 预测水仙花类型
1. 定义数据结构2. 读取训练数据3. 选择向量4. 训练模型5. 预测实现:using System;using System.Collections.Generic;using System.Configuration;using System.Text;using Microsoft.ML;using Microsoft.ML.Data;using Micr...原创 2018-12-02 00:02:15 · 1123 阅读 · 0 评论 -
python ubuntu dlib 人脸识别11-物体追踪
1. 从文件夹中读取图片文件,这步可以结合ffmpeg来完成,将视频流切图命令为(但需要再写个脚本定期清理旧图片,比如10分钟前):ffmpeg -i myfile.avi -r 1000 -f image2 image-%07d.png2.读取图片并圈出识别出的物体:import osimport globimport dlib# Path to the video ...原创 2018-12-02 15:58:15 · 576 阅读 · 1 评论 -
python ubuntu dlib 10- 生成自然语言向量
import sysimport dlib计算特征向量:def sentence_to_vectors(sentence): # Create an empty array of vectors vects = dlib.vectors() for word in sentence.split(): # Our vectors are very...原创 2018-12-02 15:48:29 · 404 阅读 · 0 评论 -
python Ubuntu dlib 人脸识别9-辅助函数
全局优化函数:import dlibfrom math import sin,cos,pi,exp,sqrt# This is a standard test function for these kinds of optimization problems.# It has a bunch of local minima, with the global minimum resul...原创 2018-12-02 15:38:24 · 444 阅读 · 0 评论 -
python ubuntu dlib 8- 输出人脸坐标
输入图片检测人脸,输出人脸坐标import sysimport dlibif len(sys.argv) < 1: print("need specify the image file") exit()image_file = sys.argv[1]img = dlib.load_rgb_image(image_file)# Locations of candidat...原创 2018-12-02 15:28:20 · 617 阅读 · 0 评论 -
python ubuntu lib7 -计算人脸特征向量
1. 检测人脸2.提取人脸3.计算人脸特征向量(用于1:N或1:1比对),使用的是shape predictorimport sysimport osimport dlibimport globif len(sys.argv) != 4: print( "Call this program like this:\n" " ./fa...原创 2018-12-02 15:21:47 · 1963 阅读 · 0 评论 -
cognitive services系列 -- 使用微软机器学习cognitive-services中的文本分析模块
cognitive-services系列 -- 使用微软cognitive-services中的文本分析模块原创 2017-01-16 10:58:13 · 2252 阅读 · 0 评论 -
使用azure machine learning studio+神经网络回归完成晚点航班预测
使用azure machine learning studio+神经网络回归完成晚点航班预测原创 2017-01-16 10:53:15 · 1429 阅读 · 0 评论 -
使用azure machine learning studio+多元神经网络学习完成血型预测
使用azure machine learning studio+多元神经网络学习完成血型预测原创 2017-01-16 10:49:43 · 1023 阅读 · 0 评论 -
机器学习 -- 最小二乘法与梯度下降法
机器学习 -- 最小二乘法与梯度下降法原创 2016-05-13 14:32:45 · 3005 阅读 · 0 评论 -
机器学习 -- 二元逻辑回归实例
机器学习 -- 二元逻辑回归实例原创 2016-05-25 16:41:52 · 5058 阅读 · 0 评论 -
azure machine learning 机器学习算法的选择
azure machine learning 机器学习算法的选择原创 2016-05-12 10:19:07 · 4691 阅读 · 0 评论 -
azure machine learning 预测分类实例-- 预测出口国
azure machine learning 预测分类实例-- 预测出口国原创 2016-05-12 10:17:54 · 2179 阅读 · 0 评论 -
Azure Machine Learning Studio 实例 -- 预测xx年的食物工厂总数
Azure Machine Learning Studio 实例 -- 预测xx年的食物工厂总数原创 2016-05-12 10:15:47 · 2787 阅读 · 1 评论 -
R学习-- 数组和矩阵
生成 4行5列的数组,逐列逐行赋值x = array(1:20, dim= c(4,5))根据已知向量生成二维数组i = array(c(1:3,3:1,4:6,5:7), dim=c(3,4))也可以调整行列顺序 (3行4列变为4行3列)i = array (c(1:3,3:1,4:6,7:9), dim=c(4,3))数组a元素作为索引值操作数组bi为一个二维数组,x[i]为x[i[1,1]]原创 2016-04-15 15:37:27 · 4801 阅读 · 0 评论 -
R 学习 -- factor
使用factor对数据分组a = c('a','b','c','a','b','b','a')af = factor(a)table(a)设向量b为向量a对应的一组数据,以及a的分组,求每组数据的平均值b = c(1,2,3,4,5,6,7)avg 计算过程为:a,b,c对应与b中的总和/ (a,b,c 出现的次数)avg(a) = (1+4+7)/3 = 4avg(b) = (2+5+6)/3原创 2016-04-15 15:36:45 · 2752 阅读 · 0 评论 -
R 学习 -- vector
向量基本操作向量赋值x assign("y", c(2,3,4))c(3,4,5) -> za 向量运算v 均值mean(x)向量长度length(x)求x的方差var(x)生成序列seq (-5, 5, by=.2) -> s3s4 重复向量x5次s5 重新向量x中的每个元素5次s6 序列+编号labs 取非空数据x[3] = NAx[!is.na(x)]基于已知向量+条件创建新向量(x+1)[原创 2016-04-15 15:36:05 · 2906 阅读 · 0 评论 -
机器学习 -- 简单线性拟合实例
机器学习 -- 简单线性拟合实例原创 2016-05-30 17:40:03 · 2403 阅读 · 0 评论 -
机器学习 -- 多元回归实现实例
机器学习 -- 多元回归实现实例原创 2016-05-30 17:49:51 · 3778 阅读 · 0 评论 -
机器学习-- K-Means 的介绍与实现
机器学习-- K-Means 的介绍与实现原创 2016-05-19 12:17:56 · 725 阅读 · 0 评论 -
机器学习 -- 决策树C45算法使用实例
机器学习 -- 决策树C45算法使用实例原创 2016-07-02 15:14:27 · 6492 阅读 · 0 评论 -
机器学习 -- 决策树根节点的选择过程
机器学习 -- 决策树根节点的选择过程原创 2016-07-02 15:13:00 · 7875 阅读 · 0 评论 -
机器学习--SVM分类器
机器学习--SVM分类器原创 2016-06-08 15:22:13 · 1918 阅读 · 0 评论 -
机器学习--朴素贝叶斯的分析与实现
机器学习--朴素贝叶斯的分析与实现原创 2016-06-03 12:39:50 · 2054 阅读 · 0 评论 -
R学习-- R连接 SQL SERVER
1.安装packageinstall.packages("RODBC")2.初始化连接dbhandle 3.查询res = sqlQuery(dbhandle, "select * from SDC_FACILITY")原创 2016-04-24 22:28:11 · 2899 阅读 · 0 评论 -
R学习-- R中的绘图命令练习
R学习-- R中的绘图命令练习原创 2016-04-24 22:24:45 · 2516 阅读 · 0 评论