上一页 1 2 3 4 5 6 ··· 11 下一页

文本与标准化流

摘要: 基本思路 最直接的应用方式是在字符或词汇表上定义离散流,如离散流[1]中显示了字符级别语言建模的性能与RNN相当,但具有更快生成运行时间。另一个可选方法应用更广泛,使用离散似然但连续的隐含空间定义一个隐含变量模型,之后标准化流可如往常一样在隐含空间上被定义。例如类流[2]用于字符级别语言建模。此外, 阅读全文
posted @ 2021-04-15 11:52 锋上磬音 阅读(242) 评论(0) 推荐(0) 编辑

ch04_Linear_Models_for_Classification

摘要: 判别函数Discriminant Functions 概率生成模型 分类的概率视角:展示具有线性决策边界的模型是如何从关于数据分布的简单假设中产生的。采用生成方法建模类条件密度$p(\vec|C_k)$和类先验$p(C_k)$,然后使用这些通过贝叶斯定理来计算后验概率$p(C_k|\vec)$ 首先 阅读全文
posted @ 2021-03-11 13:03 锋上磬音 阅读(54) 评论(0) 推荐(0) 编辑

语言模型

摘要: 定义 \(p(w_1,...,w_n)=\prod_{i=1,...,n}p(w_i|w1,...,w_{i-1})\),$p(w_i|w1,...,w_)$通常是一个(循环)神经网络 2018年之前用于文本生成,如机器翻译和语音识别;2018年之后,在大量数据上预训练,在任何特定任务上微调 词嵌入 阅读全文
posted @ 2021-03-08 23:11 锋上磬音 阅读(243) 评论(0) 推荐(0) 编辑

ch01_Introduction

摘要: 例子:识别手写数字 每个数字对应于一张$28 \times28$像素的图像,可表示为一个向量$\vec$,包含784个实数 目标:建立一个机器,将这样的向量$\vec$作为输入,会产生数字0-9的identity,并作为输出 使用手工编制的规则或启发式方法来区分数字(基于笔画的形状) 规则激增、规则 阅读全文
posted @ 2021-01-05 16:34 锋上磬音 阅读(134) 评论(0) 推荐(0) 编辑

ch02_Probability_Distributions

摘要: 基本介绍 这一章讨论的概率分布的一个作用就是给定一个有限观测集合$\vec_1,\vec_2,...,\vec_N$建模随机变量$\vec$的概率分布$p(\vec)\(。假设数据点独立同分布,应该强调的是,密度估计问题从根本上是ill-posed,因为有无限多的概率分布可能导致given rise 阅读全文
posted @ 2020-11-21 11:24 锋上磬音 阅读(264) 评论(0) 推荐(0) 编辑

LeetCode 538 Convert BST to Greater Tree 解题报告

摘要: 题目要求 Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the original key plus sum of 阅读全文
posted @ 2019-04-20 10:34 锋上磬音 阅读(108) 评论(0) 推荐(0) 编辑

LeetCode 171 Excel Sheet Column Number 解题报告

摘要: 题目要求 Given a column title as appear in an Excel sheet, return its corresponding column number. For example: 题目分析及思路 给出excel表格中的列标题,要求返回对应的列数字(正如例子所示)。 阅读全文
posted @ 2019-04-18 09:26 锋上磬音 阅读(99) 评论(0) 推荐(0) 编辑

LeetCode 606 Construct String from Binary Tree 解题报告

摘要: 题目要求 You need to construct a string consists of parenthesis and integers from a binary tree with the preorder traversing way. The null node needs to b 阅读全文
posted @ 2019-04-17 09:52 锋上磬音 阅读(91) 评论(0) 推荐(0) 编辑

LeetCode 217 Contains Duplicate 解题报告

摘要: 题目要求 Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in th 阅读全文
posted @ 2019-04-16 10:30 锋上磬音 阅读(65) 评论(0) 推荐(0) 编辑

LeetCode 122 Best Time to Buy and Sell Stock II 解题报告

摘要: 题目要求 Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may c 阅读全文
posted @ 2019-04-15 09:45 锋上磬音 阅读(84) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 11 下一页