This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from keras.layers import Input, Dense | |
from keras.models import Model, Sequential | |
import numpy as np | |
def get_AE(units): | |
""" build an autoencoder with explict encoder and decorder object | |
Parameters | |
========= | |
units : list of integers | |
The number of units (neurons) in each layer as in the following order: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
快乐,奖励,以及大改变 | |
大的改变都是一点一滴的变化积累而成的。这需要我们坚持一件事、不断重复一件事。坚持,是一件很难的事情,躲避痛苦是人类的本能,这一点谁都改变不了,这也决定了不断克服痛苦是(几乎)不可能的事情。所以有那么多事情人们坚持不下来,也没什么好奇怪的。换句话说,如果你只能从大改变的结果中获得快乐,而不能从一点一滴的努力中得到愉悦,这个大改变你八成也是实现不了的。 | |
反过来讲,想要长期坚持一件事,一定要从这件事本身,而不是结果中获得快乐才行。这可以是你本身就享受这件事,也可以是想办法从中发现以前自己不了解的乐趣,哪怕是每次做这件事的时候想到离目标又近了一步从而感到愉悦,都是从事情本身获得的快乐,都可以让你忘记坚持的痛苦,从而在“不知不觉”中实现目标。 |