![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
陈xLヾ
这个作者很懒,什么都没留下…
展开
-
m1 mac opt文件夹
m1 mac 的 opt 文件夹原创 2022-12-08 10:49:48 · 1842 阅读 · 1 评论 -
解决Failed to connect to github.com port 443 after 75004 ms: Operation timed out
计算机M1 Macbook Air 16 + 256解决方法在“访达”的菜单栏上点击“前往”,输入/etc/hosts。添加如下几行140.82.114.4 github.com 199.232.69.194 github.global.ssl.fastly.net185.199.108.153 assets-cdn.github.com185.199.109.153 assets-cdn.github.com185.199.110.153 assets-cdn.github.com原创 2022-04-25 01:01:04 · 2540 阅读 · 2 评论 -
m1 Mac zshrc 环境变量
cd ~open .zshrc把路径按照格式输入进去。原创 2021-09-29 14:31:13 · 1682 阅读 · 0 评论 -
m1 Mac manimgl 安装踩坑
安装scipy报错。解决方法:conda install scipy安装ManimPango报错。解决方法: brew install pango pkg-config之后再进行安装安装mapbox-earcut报错。解决方法:pip install cmake安装matplotlib报错。解决方法: conda install matplotlib...原创 2021-09-28 16:34:07 · 587 阅读 · 0 评论 -
动态规划与最长重复子串 LRS and Dynamic Programming
目录最长重复子串问题最长重复子串问题假设我们有一个字符串,要如何求出在这个字符串里最长的重复子串呢?比如给出字符串abcdeefabcd,显然这个字符串的重复子串有很多,比如a、b、ab、abc 等等,那么通过观察,我们可以知道这个字符串的最长重复子串为abcd...原创 2021-07-09 22:08:45 · 767 阅读 · 4 评论 -
windows当前使用壁纸路径
C:\Users(用户)\xx(当前用户名)\AppData\Local\Microsoft\Windows\Themes原创 2021-06-16 19:10:30 · 826 阅读 · 0 评论 -
pyqt5+matplotlib 导入文件并作图,画布更新
qtdesigner布局如下:ui文件转换成py文件,此过程略。新建show.py,关键代码如下:导入文件部分: def choose_file(self): self.fileName, fileType = QFileDialog.getOpenFileName(None, "选取文件", "C:\\", "All Files(*);;Text Files(*.txt)") self.spec_file.setText(self.fileName)作图原创 2021-04-13 15:00:15 · 1113 阅读 · 4 评论 -
逻辑回归(二):Loss易导
目录回顾梯度下降对Loss函数求偏导更新公式多分类问题总结回顾书接上回,讲到了逻辑回归的Loss函数的一般形式,大体如下:L(θ)=1m∑i=1mCost(hθ(x(i)),y(i))=1m∑i=1m[−y(i)log(hθ(x(i)))−(1−y(i))log(1−hθ(x(i)))]hθ(x)=g(θTX)g(z)=11+e−zL(\theta) = \frac{1}{m}\sum_{i=1}^mCost(h_\theta(x^{(i)}),y^{(i)})\\=\frac{1}{m}\sum_原创 2021-03-15 20:32:25 · 745 阅读 · 0 评论 -
逻辑回归(一):0还是1?
目录分类分类对于人来说,分类是一种很自然的能力。给一个小孩看猫和狗的照片,即使他说不出猫是猫,狗是狗,他也至少知道这两张照片里的动物是不同的。原创 2021-03-10 21:21:08 · 3993 阅读 · 8 评论 -
线性回归:机器学习的“Hello, World“
目录想要解决的问题线性回归(Linear Regression)选择模型(Model)损失函数(Loss function)梯度下降法(Gradient Descent)想要解决的问题假设我们知道若干房子的面积以及对应的房价,那么如果随便告诉我们一套房子的面积,怎么才能知道这套房子最可能买多少钱呢?再假设我们知道了一些零件的使用时间和对应的维修费用,那么如果告诉我们一个零件的使用时间,我们要怎样推测出来对应的维修费用呢?没错,线性回归就是用来解决这些问题的,也就是通过拟合曲线来进行预测。线性回归(Li原创 2021-03-03 23:33:27 · 173 阅读 · 2 评论 -
线代notes_2: MIT18.06 L6-L10
Column Space Null SpaceAll linear combinations cv+dwc \textbf{v}+d\textbf{w}cv+dw are in the space.Subspace SSS and TTT:Intersection S∩TS\cap TS∩T is a subspaceColumn SpaceA=[112213314415]A=\left[\begin{matrix}1&1&2 \\2&1&3 \\3&am原创 2021-02-27 10:31:51 · 204 阅读 · 0 评论 -
线代notes_1: MIT18.06 L1-L5
ContentIntroRow pictureColumn PictureThree variablesRow pictureColumn pictureLecture 2 EliminationLecture 3 Matrix multiplication and InversesInversesGauss-JordanLecture 4LU decompositionPermutationsIntron linear equations, n unknowns.E.g:2x−y=0−x+2y=3原创 2021-02-26 13:10:05 · 177 阅读 · 0 评论 -
纯粹直觉地理解主成分分析 (PCA)
引言写这篇blog只是分享一下个人对于PCA的直观理解,并不涉及严谨的数学推导,懒是一个原因,而且自己对线性代数的SVD那些知识掌握得还不够熟练,这里就不班门弄斧了。降维的思想要了解某个物体,我们往往会关注它的多个特性(或者叫多个维度)。假设这里有n个特性,那么对于每一个样本,我们可以用n维空间的某一个点来表示:(x1,x2,…,xn)(x_1, x_2 , \dots, x_n)(x1,x2,…,xn)然而,这些特性中,会存在某一些高度相关的特性,比如在评价一个人时,他/她的总财产和月收入原创 2021-02-23 16:30:06 · 248 阅读 · 0 评论 -
《C++ Primer Plus》课后编程练习|ch2—ch8
C++ Primer Plus | chapter 2 课后编程练习C++ Primer Plus | chapter 3 课后编程练习C++ Primer Plus | chapter 4 课后编程练习C++ Primer Plus | chapter 5 课后编程练习C++ Primer Plus | chapter 6 课后编程练习C++ Primer Plus | chapter 7 课后编程练习C++ Primer Plus | chapter 8 课后编程练习...原创 2021-01-28 16:52:56 · 133 阅读 · 0 评论 -
C++ Primer Plus | chapter 8 课后编程练习
函数探幽#include<iostream>using namespace std;void printStr(const char * str, int n = 0);int cnt = 0;int main(){ int len; cout << "Please enter the length of the string: "; cin >> len; char * str = new char [len+1];原创 2021-01-28 15:32:29 · 380 阅读 · 0 评论 -
C++ Primer Plus | chapter 7 课后编程练习
函数——C++的编程模块#include<iostream>using namespace std;double Average(double, double);int main(){ double x, y; cout << "Please enter x and y (0 to quit): "; cin >> x >> y; while(x && y) { cout原创 2021-01-28 15:30:11 · 174 阅读 · 0 评论 -
C++ Primer Plus | chapter 6 课后编程练习
第六章 分支语句和逻辑运算符#include<iostream>#include<cctype>using namespace std;int main(){ char ch; cin.get(ch); while(ch != '@') { if(islower(ch)) ch = toupper(ch); if(!isdigit(ch)) cout << ch; cin原创 2021-01-21 09:10:59 · 116 阅读 · 0 评论 -
C++ Primer Plus | chapter 5 课后编程练习
第五章 循环和关系表达式#include<iostream>using namespace std;int main(){ int a, b; int sum = 0; cout << "Please enter the first integer: "; cin >> a; cout << "Please enter the second integer: "; cin >> b;原创 2021-01-21 09:05:42 · 122 阅读 · 0 评论 -
C++ Primer Plus | chapter 4 课后编程练习
第四章 复合类型#include<iostream>using namespace std;struct Person{ char first_name[20]; char last_name[20]; char grade; int age;};int main(){ Person x; cout << "What is your first name? "; cin.getline(x.first_nam原创 2021-01-20 20:19:40 · 150 阅读 · 0 评论 -
C++ Primer Plus | chapter 3 课后编程练习
第三章 处理数据#include<iostream>using namespace std;const int To_inch = 12;int main(){ int inch; cout << "Please enter your height (inch): ___\b\b\b"; cin >> inch; int feet = inch / To_inch; inch %= To_inch; cout原创 2021-01-20 20:14:09 · 115 阅读 · 0 评论 -
C++ Primer Plus | chapter 2 编程练习
第二章 开始学习C++编程练习:#include<iostream>using namespace std;int main(){ cout << "My name is Irving Chen." << endl; cout << "My address is SYSU." << endl; return 0;}#include<iostream>using namespace s原创 2021-01-20 20:09:03 · 593 阅读 · 0 评论 -
笔记1:A simple example of Gradient Descent using Python
Linear Regression & Gradient Descent引言Linear RegressionGradient Descent原理代码示例导入相关函数库导入Training Data建立model (function set)Iteration结论可视化引言写这篇blog的目的主要是让自己熟悉一下在李宏毅老师的机器学习课程中学到的Gradient Descent的原理,以及记录下每一步是如何用编程实现的。Linear Regression对于Linear Regression原创 2020-12-19 20:59:25 · 137 阅读 · 2 评论 -
手撕Dijkstra算法
原创 2020-09-06 00:04:22 · 128 阅读 · 0 评论