![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
日常学习
文章平均质量分 67
jkwRay
这个作者很懒,什么都没留下…
展开
-
[日常学习][C++]字符串流 <sstream>
简介头文件声明:#include <sstream>优点:不需要考虑缓冲区大小。不需要考虑格式符。用法 < sstream >库定义了三种类:istringstream、ostringstream和stringstream,分别用来进行流的输入、输出和输入输出操作。 另外,每个类都有一个对应的宽字符集版本。简单起见,我主要以stringstream为中心,因为每个转换都要涉及到输入和原创 2017-05-08 22:53:16 · 338 阅读 · 0 评论 -
[日常学习][C++]集合 set
简介声明#include <set>用法基本形式set<type> sset(Name_Of_SET); //声明for (set<type>::iterator it = sset.begin(); it != sset.end(); ++it) cout << *it << "\n" ;//这里的set<string>::iterator 是迭代器 是STL中的重要概念//sset.b原创 2017-05-08 23:12:25 · 173 阅读 · 0 评论 -
[Machine Learning] [Octave]Gradient Descent Practice
After Watching Andrew ng’s Machine Coursera Lessons, I want to practise Gradient Descent by myself. So, I generate some datas first.m = 10; %number of the datasn = 1; %featurealpha = 0.01; %learning原创 2017-08-29 21:32:11 · 437 阅读 · 0 评论 -
[Machine Learning][Octave]Logistic Regression Practice
After learning the Andrew ng’s lessons, I use his exercises to test the logistic regression. First, I wrote a sigmond function.function g = sigmoid(z)g = 1 ./ (1 .+ exp(-z));endAnd then I wrote the原创 2017-08-30 16:09:42 · 293 阅读 · 0 评论 -
[Machine Learning][Andrew ng's lesson] 标准表达式 Normal Equation
Normal Equation :According to Features Matrix X and the Result Matrix y and the H(x) turns out to be ∑i=0nXi∗θi(Xo=1)\sum_{i=0}^n Xi * θi (Xo = 1)From pinv(X’*X)*X’*y to get the Correct θ Matrix. Theo原创 2017-08-29 13:02:16 · 247 阅读 · 0 评论 -
[Machine Learning][Octave]Multi-class Classification
The theory of Multi-class Classification is based on single-class classification. To each class, set it in y to ‘True’ and others in y to ‘False’ and train a classifier for it. And then we have clas原创 2017-09-02 10:28:31 · 608 阅读 · 0 评论