15. 附录

15.1. 参考书目

[0] Neural Networks: Tricks of the Trade
[1] Eric Matthes,袁国忠(译).Python编程从入门到实践[M].北京:人民邮电出版社,2016
[2] Micha Gorelick,Ian Ozsvald,胡世杰,徐旭彬(译).Python高性能编程[M].北京:人民邮电出版社,2017
[3] Jake VanderPlas,陈俊杰,陈小莉(译).Python数据科学手册[M].北京:人民邮电出版社,2017
[4] Python Machine Learning (美)塞巴斯蒂安·拉施卡(Sebastian Raschka)[M].北京:机械工业出版社,2017
[5] An Introduction to Information Retrieval (美) Christopher D. Manning Prabhakar Raghavan Hinrich Schütze Cambridge, 2009

15.3. NLP 自然语言相关

15.10. 嵌入式相关

15.10.1. LaTeX数学表达式

\[c^{2}=a^{2}+b^{2}\]
\[\ P(X=a|Y=b)=\frac{P(X=a,Y=b)}{P(Y=b)}\]
\[\Delta w = \eta (y^{i} - {\hat{y}}^i)x^{i}\]

此行必须添加,否则后序表达式出错:

\[\begin{split}w^{T}x + w0 = 0 \qquad (0)\\ w^{T}x + w0 = 1 \qquad (1)\\ w^{T}x + w0 = -1 \qquad (2)\end{split}\]

# 分段函数 .. math:

P(y^i|x^i;w) = \left\{ \begin{array}{ll}
                \phi (z^i) & \textrm{$y^i=1$}\\
                1 - \phi (z^i) & \textrm{$y^i=0$}\\
                \end{array} \right.

This: \((x+a)^3\) This: \((x+a)_3\)

this: \(W \approx \sum{f(x_k) \Delta x}\)

this: \(W = \int_{a}^{b}{f(x) dx}\)

\(\sqrt{x}\),不好处理

inline \(\frac{ \sum_{t=0}^{N}f(t,k) }{N}\) inline

and this:

\[\begin{split}|x| = \left\{ \begin{array}{ll} x & \mbox{if } x \geq 0 \\ -x & \mbox{if } x < 0 \end{array} \right.\end{split}\]

# 多公式对齐,&号相当于表格分隔符,\ 用于换行

\[\begin{split}\begin{eqnarray} f(x) & = & \cos x \\ f’(x) & = & -\sin x \\ \int_{0}^{x} f(y)dy & = & \sin x \end{eqnarray}\end{split}\]
\[ \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} = 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}} {1+\frac{e^{-8\pi}} {1+\ldots} } } } \]

When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are \(x = {-b \pm \sqrt{b^2-4ac} \over 2a}.\)

15.10.2. 其他语法

.. _my-reference-label0:
.. _nopara_decorator_class:
驱动器 C 中的卷是 系统专区
卷的序列号是 78E7-2220
DAG

object 和 type 关系图 (实线表继承关系,虚线表实例关系 Shalabh Chaturvedi)

注意

任何对文件的读取和写入动作,都会自动改变文件的指针偏移位置。

重点(emphasis)通常显示为斜体

重点强调(strong emphasis)通常显示为粗体

解释文字(interpreted text)通常显示为斜体

时间:2016年06月21日
  1. 枚举列表1
  2. 枚举列表2
  3. 枚举列表3
  1. 枚举列表1
  2. 枚举列表2
  3. 枚举列表3
  1. 枚举列表1
  2. 枚举列表2
  3. 枚举列表3

下面是引用的内容:

“真的猛士,敢于直面惨淡的人生,敢于正视淋漓的鲜血。”

—鲁迅

“人生的意志和劳动将创造奇迹般的奇迹。”

—涅克拉索

0
1
2
def AAAA(a,b,c):
    for num in nums:
        print(Num)
-a command-line option “a”
-b file options can have arguments and long descriptions
--long options can be long also
--input=file long options can also have arguments
/V
DOS/VMS-style options toofdsfds
fdsafdsafdsafsafdsafsa
fdsafdsafsd

John Doe wrote:

>> Great idea!
>
> Why didn't I think of that?

You just did! ;-)

A one, two, a one two three four

Half a bee, philosophically,
must, ipso facto, half not be.
But half the bee has got to be,
vis a vis its entity. D’you see?

But can a bee be said to be
or not to be an entire bee,
when half the bee is not a bee,
due to some ancient injury?

Singing…
第四个段落,段内的换行。
用竖线和空格开头,之后的每一行
在渲染时都会单独成行。
这功能不常用,因为用列表会更美观。
col 1 col 2
1 Second column of row 1.
2 Second column of row 2. Second line of paragraph.
3
  • Second column of row 3.
  • Second item in bullet list (row 3, column 2).
Row 4; column 1 will be empty.
  • 功能

    • 你好 list item. The blank line above the first list item is required; blank lines between list items (such as below this paragraph) are optional.
  • 函数

    • 你好 is the first paragraph in the second item in the list.

      This is the second paragraph in the second item in the list. The blank line above this paragraph is required. The left edge of this paragraph lines up with the paragraph above, both indented relative to the bullet.

      • This is a sublist. The bullet lines up with the left edge of the text blocks above. A sublist is a new list so requires a blank line above and below.
原始文本块内的任何标记都不会被转换,随便写。

`Bary.com <http://www.bary.com/>`_

这还会显示在原始文本块中。

    缩进都会原样显示出来。

    只要最后有空行,缩进退回到 :: 的位置,就表示退出了\ `原始文本块`_。

会自动把网址转成超链接,像这样 http://www.bary.com/ ,注意结束的地方要跟空格。

如果你希望网址和文本之间没有空格,可以用转义符号反斜杠 \ 把空格消掉,由于反斜杠是转义符号,所以如果你想在文中显示它,需要打两个反斜杠,也就是用反斜杠转义一个反斜杠。

渲染后紧挨文本和句号的超链接http://www.bary.com/

其实遇到紧跟常用的标点的情况时,不需要用空格,只是统一使用空格记忆负担小。你看http://www.bary.com/,这样也行。

Note

写完本文我发现我用的渲染器对中文自动消除了空格,行尾不加反斜杠也行,但我不保证其他渲染器也这么智能,所以原样保留了文内的反斜杠。

如果希望硬断行且不自动添加空格(例如中文文章),在行尾添加一个反斜杠。折上去的部分就不会有空格。注意所有的硬换行都要对齐缩进。

打开模式 r r+ w w+ a a+
可读
 
 
可写  
创建    
   
覆盖    
   
指针在开始
   
指针在结尾        

以空格作分隔符,间距均匀。决定了这个表格最多可以有5列,下划线的长度应不小于字符长度。 每一行的下划线,决定了相应列是否合并,如果不打算合并列,可以取消表内分隔线

11 12 13 14 15
21 22 23 24 25
31 32 33 34 35
41 42 42 44 45
Date:

2001-08-16

Version:

1

Authors:
  • Me
  • Myself
  • I
Indentation:

Since the field marker may be quite long, the second and subsequent lines of the field body do not have to line up with the first line, but they must be indented relative to the field name marker, and they must line up with each other.

Parameter i:

integer