摘要: 本文整理自 TUM 的英文 NLP 课程。 正则表达式:使用代数符号(例如:+-*/)去表征,查找一系列的字符串,是一种非常简单的分类器(搜索器)。 文中收录的可能不全,如果想要知道更加完整的指南,可以参考: -快速完整入门指南 (https://deerchao.cn/tutorials/rege 阅读全文
posted @ 2020-11-08 07:19 schaffen 阅读(155) 评论(0) 推荐(0)
摘要: 前情提要: 如果你使用google,搜索关键字“flask的endpoint”,前五个链接中,一个是英文的,另外四个是中文的,而后者无不是前者的翻译版本。但由于英文原版的答案已经有6年的历史了,所以如果你想尝试,里面的例子其实是根本运行不出来的。 这是我写这篇的原因。 个人理解: 如果把答案中的例子 阅读全文
posted @ 2020-08-08 06:01 schaffen 阅读(159) 评论(0) 推荐(0)
摘要: 简介 SOM算法,是硕士课程《模式识别》中,”聚类“章节中,一个知识点。 鉴于我们的教材写的稀烂,中文博客的内容基本上就是抄来抄去,难得有个原创的,专业术语乱飞,不是人类的语言,根本看不懂。 因此,在之后的内容,我会用非常不严谨的方式,去描述一下这个算法,到底在作什么妖。 另外,这些链接可能也对你理 阅读全文
posted @ 2020-03-21 19:47 schaffen 阅读(836) 评论(0) 推荐(0)
摘要: 当提到 Linear Regression 或是 Logistic regression 等关键词时,都会涉及一个概念,叫做 Likelihood Function 以及 Maximum Likelihood Estimation 等等。中文的翻译叫做『似然估计』,按照我自己的理解,认为这个翻译并不 阅读全文
posted @ 2019-11-15 17:06 schaffen 阅读(196) 评论(0) 推荐(0)
摘要: 问题描述 Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2 阅读全文
posted @ 2019-10-31 02:20 schaffen 阅读(120) 评论(0) 推荐(0)
摘要: 题目描述 Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains 阅读全文
posted @ 2019-10-09 18:59 schaffen 阅读(165) 评论(0) 推荐(0)
摘要: 题目描述 Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST. Calling next() will return 阅读全文
posted @ 2019-10-09 18:57 schaffen 阅读(185) 评论(0) 推荐(0)
摘要: 题目描述 Given a linked list, rotate the list to the right by k places, where k is non-negative. Example 1: Example 2: 参考答案 答案分析 分成三部分: 1. 链接首尾 2. 移动 3. 拆 阅读全文
posted @ 2019-10-08 20:23 schaffen 阅读(158) 评论(0) 推荐(0)
摘要: 题目描述 Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. Exa 阅读全文
posted @ 2019-10-07 17:34 schaffen 阅读(125) 评论(0) 推荐(0)
摘要: 题目描述 Reverse a singly linked list. Example: 参考答案 补充说明 term 1: temp = 2 3 4 5 null head = 1 null = 1 2 3 4 5 null + null cur = 1 null head = 2 3 4 5 nu 阅读全文
posted @ 2019-10-06 11:54 schaffen 阅读(112) 评论(0) 推荐(0)