题解
文章平均质量分 65
暂时不用了的id
以后应该不会更新了,这些博文是我大二的时候写的,现在看来感觉很是幼稚。。
展开
-
【题解】编程作业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 · 2785 阅读 · 0 评论 -
【题解】编程作业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 · 441 阅读 · 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 · 622 阅读 · 2 评论 -
【题解】编程作业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 · 227 阅读 · 0 评论 -
【题解】编程作业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 · 358 阅读 · 0 评论 -
【题解】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 · 2638 阅读 · 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 · 13131 阅读 · 0 评论 -
【题解】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 · 5440 阅读 · 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 · 6199 阅读 · 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 · 2809 阅读 · 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 · 5462 阅读 · 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 · 2558 阅读 · 0 评论 -
【题解】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 · 2458 阅读 · 0 评论 -
【题解】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 · 936 阅读 · 0 评论 -
【题解】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 · 3770 阅读 · 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 · 2260 阅读 · 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 · 846 阅读 · 0 评论 -
【题解】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 · 1598 阅读 · 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 · 2185 阅读 · 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 · 821 阅读 · 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 · 3139 阅读 · 0 评论 -
【题解】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 · 2323 阅读 · 0 评论 -
【题解】004:2的幂次方表示
http://cxsjsxmooc.openjudge.cn/2018t2fallsum/004/提示:当然可以递归写,但是还要思考多麻烦观察:这数据范围这么善良你猜是干嘛的启示:打表可真爽#include<iostream>#include<cstdio>#include<cstring>using namespace std;int...原创 2018-09-26 16:11:24 · 338 阅读 · 1 评论 -
【题解】003:全排列
http://cxsjsxmooc.openjudge.cn/2018t2fallsum/003提示:变化的位数越来越少思路:递归 + 记忆数据启示:输出发现只有改变的被输出则完全可以考虑新数组记忆数据#include<iostream>#include<cstdio>#include<cstring>using namespace std...原创 2018-09-26 16:07:05 · 340 阅读 · 0 评论 -
【题解】002:拨钟问题
http://cxsjsxmooc.openjudge.cn/2018t2fallsum/002/提示:由特殊密码锁题目得到启示:第一行即为枚举的局部。那么如何寻找第一行的枚举情况呢?观察:操作123如果被固定,那么由第一行情况可以固定出操作456,再由第二行固定操作79,再根据E和DHI的情况选择启示:枚举的局部有思路之后要谨慎考虑枚举对象(钟表 or 操作)#include&l...原创 2018-09-09 13:27:54 · 1563 阅读 · 0 评论 -
【题解】001:特殊密码锁
http://cxsjsxmooc.openjudge.cn/2018t2fallsum/001/提示:找出枚举类题目的局部是什么,以小见大求全部,从而避免枚举大量情况观察:前i个可以推出第i+1个的情况启示:关注问题本身的解决方案和实现过程,并非案例给的情形拼凑,以及位运算很省空间#include<memory>#include<string> #in...原创 2018-09-09 13:21:19 · 558 阅读 · 0 评论