随笔分类 - commonLearning
Python Class Recap -2 tricky problems
摘要:Test cases as below:$ python3 >>> from quiz_8 import * >>> Point() ... quiz_8.PointError: Need two coordinates, point not created. >>> Point(0) ... qu
阅读全文
python coding感想,持续更新
摘要:发觉很多python coding不怎么用,很多基本结构有所生疏。近期会持续把常用的数据结构用python搞一搞,会更新: d = {} res = '' for i in range(11): d[i] = chr(i) for i in range(11): key = list(d.keys(
阅读全文
知识图谱Knowledge Spectrum
摘要:基于图的数据结构,由节点(Point)和边(Edge)组成。在知识图谱里,每个节点表示现实世界中存在的“实体”,每条边为实体与实体之间的“关系”。知识图谱是关系的最有效的表示方式。通俗地讲,知识图谱就是把所有不同种类的信息(Heterogeneous Information)连接在一起而得到的一个关
阅读全文
LGBM一些参数杂项,datrics.ai
摘要:Optimize This checkbox enables the Bayesian hyperparameter optimization, which tweaks the learning rate, as well as the number of iterations and leave
阅读全文
csv read note
摘要:Error "(unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape" [duplicate] Solutions below 1: Just put
阅读全文
std::ref
摘要:The std::thread constructor copies the supplied values, without converting to the expected argument type (which is reference type in this case, seeupd
阅读全文
类内函数的override问题-方法
摘要:Question: have a base class with a virtual function: class Base { public: virtual void Function(); }; void Base::Function() { cout << "default version
阅读全文
Leetcode203
摘要:题意:去掉给定头ListNode* head 的单链表内 val 等于一个 给定val的节点并返回头 思路:此题删除链表中元素是很简单的,只需要让待删节点之前一个节点指向待删节点之后一个节点即可。 此题最大的问题就是,题目要求我们要返回新链表中的头结点,如果我们就采用仅仅复制头结点的方式(用H=he
阅读全文
English Punctuations
摘要:’ apostrophe /ə'pɒstrəfɪ/ 撇号 ~ tilde /'tɪldə/ 波浪符 * asterisk/star/pointer /'æstərɪsk/ 星号 # pound /paʊnd/ 井号 : colon /'kəʊlən/ 冒号 ; semicolon /ˌsemɪ'kə
阅读全文