第10章 无监督学习

自编码器


目录


  • 在输出层模拟输入层的结果,中间层为code

图一自编码器结构
图一自编码器结构

其中:

  • 输入, x
  • 编码函数, f
  • 内部表征,“码” h = f(x)
  • 解码函数 g
  • 输出, 重构 r=g(h)=g(f(x))
  • 损失函数 L 计算 L(r, x) 的值来测量 r 对给定输入 x 表达的效果. 目标是最小化 L 的值

稀疏编码

By Olshausen and Field, 1996

经典表述:

h=f(x)=arghminL(g(h),x))+λΩ(h)

其中

  • L 是损失函数
  • f 是(无参)编码函数
  • g 是(参数化)解码函数
  • Ω(h)
    是稀疏正则项

稀疏编码的一个有趣的变种

predictive sparse decomposition (PSD) (Kavukcuoglu et al., 2008)

惩罚函数

除了 L1 :

还有 Student_t

ilog(1+α2h2i)
KL-diverence
i(tloghi+(1t)log(1hi))
其中 t 是目标稀疏指数


Auto-Encoders


  • Try to copy its output to its input

figure 1 the schema of auto-encoders
figure 1 the schema of auto-encoders

Where:

  • an input, x
  • An encoder function, f
  • A “code” or internal representation h = f(x)
  • A decode function g
  • An output, or “reconstruction” r=g(h)=g(f(x))
  • A loss function L computing a scalar L(r, x) measuring how good of r of a given input x. The objective is to minimize the expected value of L over the training set of examples {x}

Sparse coding

By Olshausen and Field, 1996

a particular form of inference:

h=f(x)=arghminL(g(h),x))+λΩ(h)

Where

  • L is the reconstruction loss
  • f is the (non-parametric) encoder
  • g is the(parametric) decoder
  • Ω(h)
    is a sparsity regularizer

What’s more:

To achieve sparsity, the optimized objective function includes a term that is minimized when the representation has many zero or near-zero values, such as the L1 penalty

|h|1=|hi|

An interesting variation of sparse coing

predictive sparse decomposition (PSD) (Kavukcuoglu et al., 2008)

About spare auto-encoders

Besides L1 penalty:

Student_t penalty

ilog(1+α2h2i)
and KL-diverence penalty
i(tloghi+(1t)log(1hi))
where t is a target sparsity level

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值