上一页 1 ··· 77 78 79 80 81 82 83 84 85 ··· 92 下一页
摘要: 1 #include<iostream> 2 #include<stdlib.h> 3 using namespace std; 4 #include<deque> 5 6 7 /* 8 3.3 deque容器 9 3.3.1 deque基本概念 10 双端数组,可以对头端进行插入删除操作(类似于队 阅读全文
posted @ 2021-04-26 10:29 yub4by 阅读(84) 评论(0) 推荐(0)
摘要: 一、机器学习概述 1.1人工智能概述 1.1.1机器学习是人工智能的一个实现途径 1.1.2深度学习是从机器学习的一个方法(人工神经网络)发展而来 1.1.3机器学习的主要应用领域 1、自然语言处理 2、图像识别 3、传统预测 1.2机器学习是啥 1.2.1数据 1、结构:特征值+目标值 2、dat 阅读全文
posted @ 2021-04-26 09:58 yub4by 阅读(105) 评论(0) 推荐(0)
摘要: 监督学习(有目标值,输入数据有特征有标签,即有标准答案) 1、分类算法(其目标值是类别) 2、回归算法(其目标值是连续型的数据) 无监督学习(无目标值,输入数据有特征无标签,即无标准答案) 1、聚类算法 三、分类算法 3.1sklearn转换器与预估器 3.1.1转换器(特征工程的父类) 1、特征工 阅读全文
posted @ 2021-04-26 09:56 yub4by 阅读(96) 评论(0) 推荐(0)
摘要: 四、回归算法 4.1线性回归 4.1.1线性回归的原理 回归问题-目标值是连续型数据 1、线性回归的应用场景 1)房价预测 2)销售额度预测 3)贷款额度预测 2、什么是线性回归 特征值和目标值之间的关系是一种函数关系 1)定义 线性回归是利用回归方程(函数)对一个或多个自变量(特征值)和 因变量( 阅读全文
posted @ 2021-04-26 09:55 yub4by 阅读(233) 评论(0) 推荐(0)
摘要: #include<iostream> #include<stdlib.h> #include<string> #include<vector> using namespace std; /* 3.2.7 vector互换空间 实现两个容器内元素进行互换 swap(vec); // 将vec与本身的元 阅读全文
posted @ 2021-04-23 15:11 yub4by 阅读(74) 评论(0) 推荐(0)
摘要: #include<iostream> #include<stdlib.h> #include<string> using namespace std; #include<vector> /* 3.2.4 vector容量和大小 empty(); //判断容器是否为空 capacity(); //容器 阅读全文
posted @ 2021-04-23 14:38 yub4by 阅读(110) 评论(0) 推荐(0)
摘要: #include<iostream> #include<stdlib.h> #include<string> using namespace std; #include<vector> void pv(vector<int> & v) { for(vector<int>::iterator it=v 阅读全文
posted @ 2021-04-23 12:51 yub4by 阅读(135) 评论(0) 推荐(0)
摘要: #include<iostream> #include<stdlib.h> #include<string> using namespace std; void test1() { string str = "hello"; cout << str << endl; //read for(int i 阅读全文
posted @ 2021-04-23 11:13 yub4by 阅读(111) 评论(0) 推荐(0)
摘要: #include<iostream> #include<stdlib.h> #include<string> using namespace std; /* 3.1.6 string字符串比较 字符串比较是按字符的ASCII码进行对比 = 返回 0 > 返回 1 < 返回 -1 int compar 阅读全文
posted @ 2021-04-22 22:06 yub4by 阅读(182) 评论(0) 推荐(0)
摘要: #include<iostream> #include<stdlib.h> #include<string> using namespace std; /* 3.1.5 string查找和替换 int find(const string& str, int pos = 0) const; //查找s 阅读全文
posted @ 2021-04-22 22:06 yub4by 阅读(86) 评论(0) 推荐(0)
上一页 1 ··· 77 78 79 80 81 82 83 84 85 ··· 92 下一页