自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

不知道叫什么的博客

吐槽星人用来记笔记的=。=

  • 博客(38)
  • 收藏
  • 关注

原创 【题解】Musical Track Database (Using Databases with Python)

吐槽:额,忘了当时为啥没记录了,大概是偷懒解法就没写题解,然后今天发现有人在问,就顺便写一下我的方法吧。当时满分的时候是偷了个懒,今儿研究了一下顺便把不偷懒的方法也整出来了。有更好的也欢迎留言啦。题目:Musical Track DatabaseThis application will read an iTunes export file in XML and produce a pro...

2020-03-07 22:19:20 2584 2

原创 【题解】编程作业ex5: Regularized Linear Regression and Bias/Variance (Machine Learning)

吐槽:这个作业用了几个小时,,光是复习前面的就整了半天=。=不过问题不大,也就debug了好久,虽然最后我还是编出来了+_+以后一定要一鼓作气完成某个课程。。。题目:If you are using the MATLAB Online access provided for this course (recommended), or if you have an existing installation of MATLAB (>= R2019b), follow the instructio

2020-10-09 23:51:15 2718

原创 【题解】编程作业ex4: Neural Network Learning (Machine Learning)

吐槽:最近事情有点多,居然鸽到了下一周orz。。咳咳终于写完了= =顺便反向传播原理目前还不是非常理解,所以笔记也要鸽一阵orz。。。题目:Download the programming assignmenthere. This ZIP file contains the instructions in a PDF and the starter code. You may use either MATLAB or Octave (>= 3.8.0).To submit this ass.

2020-07-28 21:01:23 426 1

原创 【题解】编程作业ex3: Multi-class Classification and Neural Networks (Machine Learning)

吐槽:题目:Download the programming assignmenthere.This ZIP file contains the instructions in a PDF and the starter code. You may use either MATLAB or Octave (>= 3.8.0). To submit this assignment, call the included submit function from MATLAB / Octave..

2020-07-19 12:22:15 606 2

原创 【笔记】Week4:神经网络的模型表示及背景,应用,多类分类问题 (Machine Learning)

吐槽:有个quiz的题目还挺坑的,记录一下哈。。顺便笔记。。正文:1,神经网络的模型表示及背景背景:脑中的一个神经元是一个计算单元。神经元的dendrite(树突(位于神经元末端的细分支,接收其他神经元传来的信号))是输入电线,axon(轴突(神经细胞的突起,将信号发送到其他细胞))是输出电线。单一神经元的模型:逻辑单元,也就是h(x) = 1 / (1+e^(-thetaTx))(h(x)称sigmoid(logistic)激活函数)。神经网络模型:举例的是层次为3的神经网络,其中la

2020-07-18 23:08:12 236

原创 【题解】编程作业ex2: Logistic Regression (Machine Learning)

吐槽:没看完pdf的要求就去写plot的代码的后果就是写完发现后面有标答且比自己的简练= =然后也就不献丑了。。说一下predict和costFunctionReg吧,其他也不难。题目:Download the programming assignmenthere. This ZIP file contains the instructions in a PDF and the starter code. You may use either MATLAB or Octave (>= 3.8.

2020-07-15 01:54:40 216

原创 【笔记】Week3:分类问题及其表示,逻辑回归模型,正则化 (Machine Learning)

吐槽:并不是非常连贯的听完了这周的课程,于是记个笔记捋一下思路,顺便记录一个quiz的题目,做错两遍都不造为什么,,最后还是查了一下才发觉的。。太值得记一下= =正文:1,Classification and Representation(分类问题及其表示)分类问题的例子:邮件是垃圾还是非垃圾,在线交易是欺诈的还是非欺诈的,肿瘤是良性的还是恶性的。如果y只有0或1,0则为negative class(比如恶性肿瘤),1则为positive class(良性肿瘤)为什么不用线性回归解决分类问题

2020-07-14 23:12:45 187

原创 【题解】编程作业ex1: Linear Regression (Machine Learning)

吐槽:刚学的话gradient descent感觉不是那么轻易能编出来,不过感谢助教在总结上说了维度分析很重要,用维度分析果然很快调试好了程序。。于是值得一记。。题目:Download the programming assignmenthere. This ZIP file contains the instructions in a PDF and the starter code. You may use either MATLAB or Octave (>= 3.8.0).To sub.

2020-07-10 12:15:19 325

原创 【笔记】Week2:多元线性回归,解析计算参数,Octave/Matlab教程 (Machine Learning)

吐槽:week2主要是接着week1讲的,主要在于说明如何实现线性回归。因为都涉及公式复制不太好我就都用自己话说了。。还是一样的,有错评论一下,谢谢啦。正文:1,Multivariate Linear Regression(多元线性回归)记号:n表示特征数量,x^(i)表示第i个训练样本(列向量 [x^(i)_(0); ...; x^(i)_(n)]),x^(i)_(j)表示第i个训练样本的第j个特征的值。假设函数:h(x) = theta0*x0+theta1*x1+theta2*x2+.

2020-07-09 12:23:04 380

原创 【笔记】Week1:机器学习,监督学习,无监督学习,一元线性回归,线代复习 (Machine Learning)

吐槽:第一周只有quiz没有编程作业,于是记个笔记总结一下吧。。英文的话都是复制,我大概就是用自己话再说一遍,如有不对可以评论指出。。正文:1,Machine Learning(机器学习)Two definitions of Machine Learning are offered. Arthur Samuel described it as: "the field of study that gives computers the ability to learn without being

2020-07-09 11:17:03 150

原创 【笔记】Part1:Python基础与代码风格 (Principles of Computing)

吐槽:由于作业实在太恶心,觉得其实也没有什么值得写的通常,所以我把以前的个别删了。既然是学知识,那不如做个笔记总结。。之所以写一篇是因为确实不多,主要我觉得值得看的也就代码风格吧。正文:1,Week1:Python基础与代码风格1)Basic elements of PythonBelow is a list of the data types in Python with whi...

2020-04-01 02:51:14 1012

原创 【笔记】Week1:生成器,栈与队列,继承,BFS (Principles of Computing)

吐槽:今天上到poc2的week1课程觉得还不错,但由于概念很陌生,觉得有必要记录一下。部分来源视频,部分来源其他博客。虽然视频是py2但不影响理解概念。正文:1,generators(生成器)什么是生成器:1)生成器是一个特殊的程序,可以被用作控制循环的迭代行为;2)生成器类似于返回值为数组的一个函数,这个函数可以接收参数,可以被调用,但是,不同于一般的函数会一次性返回包含了所有...

2020-04-01 02:13:52 222 2

原创 【题解】Quiz: Python for Everybody - A Review (Capstone: Retrieving, Processing, and Visualizing Data..)

吐槽:有些题想记录一下哈,很少有前面没做过的。题目&我想说的:1. Where in the computer is a variable such as "X" stored?x = 123A. Input DevicesB. Main MemoryC. Secondary MemoryD. Central processing unitE. Outpu...

2020-02-26 01:45:02 13051

原创 【题解】Databases and Visualization (peer-graded) (Using Databases with Python)

吐槽:这个作业花了我挺长时间,究其原因是没有好好看 README.txt 的内容,不过浪费的时间还是足以让我学到些。题目:Retrieving GEODataDownload the code from http://www.py4e.com/code3/geodata.zip - then unzip the file and edit where.data to add an addr...

2020-02-24 10:29:47 5379 16

原创 【题解】Quiz: Many-to-Many Relationships and Python (Using Databases with Python)

吐槽:有点难...= =听了课还是差点没满分...题目:1. In the following Python code sequence (assuming cur is a SQLite cursor object),cur.execute('SELECT count FROM Counts WHERE org = ? ', (org, ))row = cur.fetchone(...

2020-02-19 04:02:31 6112 2

原创 【题解】Counting Email in a Database (Using Databases with Python)

吐槽:一开始没仔细看题,然后就憨了= = 以及听课真的很重要。题目:Counting OrganizationsThis application will read the mailbox data (mbox.txt) and count the number of email messages per organization (i.e. domain name of the emai...

2020-02-18 01:39:16 2783 3

原创 【题解】Using the GeoJSON API (Using Python to Access Web Data)

吐槽:不难,修改一下老师的代码就出来了。最后一个题哦,这课我终于做完了= =题目:Calling a JSON APIIn this assignment you will write a Python program somewhat similar tohttp://www.py4e.com/code3/geojson.py. The program will prompt for ...

2020-02-11 02:14:00 5386 2

原创 【题解】Extracting Data from JSON (Using Python to Access Web Data)

吐槽:很简单就是记录一下。题目:Extracting Data from JSONIn this assignment you will write a Python program somewhat similar tohttp://www.py4e.com/code3/json2.py. The program will prompt for a URL, read the JSON...

2020-02-10 21:02:20 2515

原创 【题解】Extracting Data from XML (Using Python to Access Web Data)

吐槽:挺简单的,但还是想记一下,主要是decode和encode以前忘记记录了。题目:Extracting Data from XMLIn this assignment you will write a Python program somewhat similar tohttp://www.py4e.com/code3/geoxml.py. The program will prom...

2020-02-10 04:15:00 2410

原创 【题解】Quiz: eXtensible Markup Language (Using Python to Access Web Data)

吐槽:听课的时候没认真听时间这块,然后写这个的时候查了资料,想顺便记下来加深一下印象。答案都很简单就不写了。题目:1. What is a good time zone to use when computers are exchanging data over APIs?A. Universal Time / GMTB. The local time zone of the re...

2020-02-10 03:44:53 911

原创 【题解】Assignment: Following Links in HTML Using BeautifulSoup (Using Python to Access Web Data)

吐槽:好难哦...而且有个问题我一直不知道呢还,若有大佬看到这篇文章希望帮忙解决一下疑惑,感谢w题目:Following Links in PythonIn this assignment you will write a Python program that expands onhttp://www.py4e.com/code3/urllinks.py. The program wi...

2020-02-08 14:55:32 3706 6

原创 【题解】Scraping HTML Data with BeautifulSoup (Using Python to Access Web Data)

吐槽:因为不能听最新版的课,只好听完旧版的边查资料边写代码,太惨了8= =题目:Scraping Numbers from HTML using BeautifulSoupIn this assignment you will write a Python program similar tohttp://www.py4e.com/code3/urllink2.py. The prog...

2020-02-08 12:36:33 2227 4

原创 【题解】Understanding the Request / Response Cycle (Using Python to Access Web Data)

吐槽:开始觉得挺复杂,后来发现俩方法,值得记录。顺便,感谢大佬!题目:Exploring the HyperText Transport ProtocolYou are to retrieve the following document using the HTTP protocol in a way that you can examine the HTTP Response head...

2020-02-07 18:28:32 821

原创 【题解】Quiz: Networks and Sockets (Using Python to Access Web Data)

吐槽:这一章的quiz确实难一点,刷了三次才满分。因为是b站上好好听了一下课(https://www.bilibili.com/video/av46635818?p=16),所以答案都差不多知道只是不知道为啥是这样,究其原因还是对网络不太了解,等到这个课结束后我打算认真学习一下,然后再详细更新。(先挖个坑)简单的题我就不写啦0.0不会的话可以问我。题目:1.Which of the fo...

2020-02-07 17:09:11 1563 2

原创 【题解】Extracting Data With Regular Expressions (Using Python to Access Web Data)

吐槽:本来挺顺利的,主要就是想记录一下TypeError: 'int' object is not callable怎么解决,顺便记录我代码能改进的地方和哪个课后题的答案~ 嘿嘿,我觉得这种提示我们有更简单解法的题才有意思嘛0.0题目描述:大概就是从一个文件中提取所有数字并求和。Finding Numbers in a HaystackIn this assignment you wi...

2020-02-07 01:27:15 2154 1

原创 【题解】Chapter 10 Quiz (Python Data Structures)

吐槽:我只想记录俩题,其他的都很简单就不说了。主要其实是想弄个概念辨析的,不过最后还是改成了题解hhh题目:2. Which of the following methods work both in Python lists and Python tuples?A reverse()B pop()C append()D sort()E index()答案:E。元组...

2020-01-23 20:32:47 786 1

原创 【题解】Assignment 8.4 (Python Data Structures)

吐槽:没听课就做题的话会发现很多不会,但是善用搜索总会解决的。顺便,我tm刚刚更新了个9.4怎么就把8.4删了??叫我重新敲一遍吗心态崩了= = 但是为了保持一下完整性,我还是重新敲了一遍(简直有病= = 以后肯定不会再憨了....8.4Open the fileromeo.txtand read it line by line. For each line, split the lin...

2020-01-23 02:21:16 3111

原创 【题解】Assignment 9.4 (Python Data Structures)

吐槽:还是没听课,然后被数据和系统坑了好久= =9.4Write a program to read through thembox-short.txtand figure out who has sent the greatest number of mail messages. The program looks for 'From ' lines and takes the sec...

2020-01-22 18:46:57 2288

转载 x86,amd64,x86-64,x64区别

转自:https://blog.csdn.net/testcs_dn/article/details/55251379 X86是一个指令集,是刚有个人电脑时候的什么8086,286,386的那个兼容的指令集。 “x86-64”,有时会简称为“x64”,是64位微处理器架构及其相应指令集的一种,也是Intel x86架构的延伸产品。“x86-64”1999由AMD设计,AMD 首次公...

2018-12-15 23:45:27 3769

转载 深度学习中的激活函数与梯度消失

https://www.cnblogs.com/willnote/p/6912798.html

2018-11-01 22:31:05 118

转载 计算机科学中最重要的32个算法

原帖地址:http://blog.sina.com.cn/s/blog_7eaa03930101jsua.html奥地利符号计算研究所(Research Institute for Symbolic Computation,简称RISC)的Christoph Koutschan博士在自己的页面上发布了一篇文章,提到他做了一个调查,参与者大多数是计算机科学家,他请这些科学家投票选出最重要的算法,...

2018-10-07 21:22:50 223

转载 LaTeX安装及相关基本信息

便于像我这样的新手查看的一个简单的目录(持续更新)1、官网信息转自:https://blog.csdn.net/muzhicihe/article/details/80326090LaTeX官方网站:https://www.latex-project.org/CTeX官方网站:http://www.ctex.org/HomePage2、下载地址转自:https://bl...

2018-10-05 00:24:41 317

原创 【题解】004:2的幂次方表示

http://cxsjsxmooc.openjudge.cn/2018t2fallsum/004/提示:当然可以递归写,但是还要思考多麻烦观察:这数据范围这么善良你猜是干嘛的启示:打表可真爽#include<iostream>#include<cstdio>#include<cstring>using namespace std;int...

2018-09-26 16:11:24 316 1

原创 【题解】003:全排列

http://cxsjsxmooc.openjudge.cn/2018t2fallsum/003提示:变化的位数越来越少思路:递归 + 记忆数据启示:输出发现只有改变的被输出则完全可以考虑新数组记忆数据#include<iostream>#include<cstdio>#include<cstring>using namespace std...

2018-09-26 16:07:05 330

转载 【C++】struct和class的区别

最近在看一些关于C++的书,然后这个问题不懂就来百度了= =这个文章写的很好所以来分享~原文链接:http://blog.sina.com.cn/s/blog_48f587a80100k630.html C++中的struct对C中的struct进行了扩充,它已经不再只是一个包含不同数据类型的数据结构了,它已经获取了太多的功能。struct能包含成员函数吗? 能!struct能继承...

2018-09-26 15:53:58 104

原创 【题解】002:拨钟问题

http://cxsjsxmooc.openjudge.cn/2018t2fallsum/002/提示:由特殊密码锁题目得到启示:第一行即为枚举的局部。那么如何寻找第一行的枚举情况呢?观察:操作123如果被固定,那么由第一行情况可以固定出操作456,再由第二行固定操作79,再根据E和DHI的情况选择启示:枚举的局部有思路之后要谨慎考虑枚举对象(钟表 or 操作)#include&l...

2018-09-09 13:27:54 1544

原创 【题解】001:特殊密码锁

http://cxsjsxmooc.openjudge.cn/2018t2fallsum/001/提示:找出枚举类题目的局部是什么,以小见大求全部,从而避免枚举大量情况观察:前i个可以推出第i+1个的情况启示:关注问题本身的解决方案和实现过程,并非案例给的情形拼凑,以及位运算很省空间#include<memory>#include<string> #in...

2018-09-09 13:21:19 549

原创 【概念辨析】真值、机器数、原码、反码、补码、变形补码、移码

最近在学中国大学MOOC的一门课程《计算机系统基础(一)》,初学感觉对这些乱七八糟的码比较纠结,所以写个辨析,希望帮自己理清概念也希望帮到其他初学者。ps:纯属手敲和个人理解,不过有参考资料,如有错误希望大佬可以指出哈~参考资料:MOOC、百度百科和其他人写的博客。1、真值真值可以理解为真正的值,一般用十进制表示,也可以用二进制表示。(其他进制表示的也有就是少而已)举例:-8...

2018-08-24 01:05:41 6477 2

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除