随笔分类 - 技术流
摘要:What is spaghetti code exactly? Spaghetti code is the general term used for any source code that’s hard to understand because it has no defined struct
阅读全文
摘要:Kubernetes is an open-source container orchestration system for automating software deployment, scaling, and management. 全栈开发:A Full Stack Developer i
阅读全文
摘要:The return of Pytorch.nn.LSTM is: output, (h_n, c_n) Outputs: output, (h_n, c_n) output (seq_len, batch, hidden_size * num_directions): tensor contain
阅读全文
摘要:LSTM input and output shape: The input of the LSTM is always is a 3D array. (batch_size, time_steps, seq_len) The output of the LSTM could be a 2D arr
阅读全文
摘要:首先,我们需要简单了解下偏函数的作用:和装饰器一样,它可以扩展函数的功能,但又不完成等价于装饰器。通常应用的场景是当我们要频繁调用某个函数时,其中某些参数是已知的固定值,通常我们可以调用这个函数多次,但这样看上去似乎代码有些冗余,而偏函数的出现就是为了很少的解决这一个问题。 它返回一个偏函数对象,这
阅读全文
摘要:在python的函数(function)定义中,只要出现了yield表达式(Yield expression),那么事实上定义的是一个generator function, 调用这个generator function返回值是一个generator。 >>> def gen_example(): .
阅读全文
摘要:LSTM input dimension must be three-dimension. References: Module类、实现Flatten类、Module类作用、数据增强 How to Reshape Input Data for Long Short-Term Memory Netwo
阅读全文
摘要:Apache MADlib: big data machine learning in SQL. support PostgreSQL 11. Madlib runs in database on Postgres. It's an effort to bing machine learning i
阅读全文
摘要:Basic knowledge: 1. Class VS Instance; class Student(object): def __init__(self, name, score): self.__name = name self.__score = score def print_score
阅读全文
摘要:python中的装饰器分为两类:函数装饰器和类装饰器. here and here2
阅读全文
摘要:docker:组装 使用Postgres数据库的web应用 登录到psql的方法: psql --host=localhost --dbname=database-name --username=postgres sudo -u postgres psql database-name docker
阅读全文