Posts

Python - Pytorch

张量 在pytorch中,神经网络的输入、输出、以及网络的参数等都采用了“张量”的数据结构。张量与numpy中的多维数组(numpy.ndarray)非常类似,区别在于张量可以在GPU或其他硬件上运行。 成员函数名称末尾加上 _ ,会采用替换模式,也即该成员函数直接修改张量对象本身。 .item() 返回其具体数值,该方法仅适用于大小为1(也即只含有一个元素)的张量。 .view() 功能为 …

Python - Pandas

Pandas 支持大部分 numpy 语言风格的数组计算。尽管代码风格相似,但最大的不同在于前者是用来处理表格或不同类型数据的,而后者更适合处理相同类型数据的。 数据结构 Series Series 是一维数组的对象,包含 index 序列和 values 序列,分别可以通过对象的 index 和 values 属性获得。 通常需要创建一个index序列来标识每个数据点。如果不显式指定,那么默认 …

Neural Network

Introducation The network is composed of an input layer, an output layer, and optionally a series of hidden layers. Input layer does not carry out any operation/function, but the hidden and output …

Linux - Sed

简介 Sed 是著名的流编辑器,它能够对文本进行逐行处理,通常需要配合正则表达式使用。具体地, Sed 先把当前行的文本导入 模式空间(pattern space) 对其处理,然后输出处理后的文本。 命令格式 sed [OPTIONS] 'COMMAND' FILE(S) sed [OPTIONS] -f 'SCRIPT' FILE(S) 选项 选项 含义 …

Linux - Command Line Tools

Targetting for more features and conveniences, some extremely excellent command line tools are listed in this document, which is encouraged to use. Starship Starship can provide an exciting prompt to …

Emacs - Gnus

Gnus is the builtin mail client inside Emacs. As long as Emacs is installed, gnus is available. The bahavior of gnus can be customized in following two files. ~/.gnus (setq user-full-name …

Emacs - Ebib

Ebib is a tool inside Emacs for bibliography management, supporting BibTeX and biblatex files. This post is just a brief summary of the online manual. Installation Ebib can be easily installed via …

Python - Basic

Python解释器 Python程序运行时,需要Python解释器去执行 .py 文件。下面是一些常见的Python解释器。 CPython 当Python安装好之后,CPython解释器就已经安装好了。该解释器是用C语言开发的,所以被称为CPython。在终端执行 python 命令后启动的就是该解释器。 PyPy PyPy解释器采用JIT技术对Python程序代码进行动态编译,所以PyPy以 …

Beam Pattern

Beamforming Around the decades, multi-input multi-output (MIMO), a.k.a. multiantenna transmission, has been the focus of the research relating to wireless communications, and attracted the interests …

C++ - Output Object

In object oriented programming (OOP) based C++ program, we usually need to output the properties and members of one or more objects. In this case, overriding the ostream operator, <<, is a …