[cs224n] Lecture 3 – Neural Networks

 Lecture 3 – Neural Networks


1. Course plan: coming up

 Homeworks

A note on your experience!

Lecture Plan


2. Classification setup and notation

Classification intuition

Details of the softmax classifier

Training with softmax and cross-entropy loss

Background: What is “cross entropy” loss/error?

Classification over a full dataset

Traditional ML optimization


3. Neural Network Classifiers

Neural Nets for the Win!

Classification difference with word vectors

Neural computation

An artificial neuron

A neuron can be a binary logistic regression unit

A neural network = running several logistic regressions at the same time

Matrix notation for a layer

Non-linearities (aka “f ”): Why they’re needed


4. Named Entity Recognition (NER)

Named Entity Recognition on word sequences

Why might NER be hard?


5. Binary word window classification

Window classification

Window classification: Softmax

Simplest window classifier: Softmax

Binary classification with unnormalized scores

Binary classification for NER Location

Neural Network Feed-forward Computation

Main intuition for extra layer

The max-margin loss

Simple net for score

Remember: Stochastic Gradient Descent

Computing Gradients by Hand

Gradients

Jacobian Matrix: Generalization of the Gradient

Chain Rule

Example Jacobian: Elementwise activation Function

Other Jacobians

Back to our Neural Net!

 

1. Break up equations into simple pieces

2. Apply the chain rule

3. Write out the Jacobians

Re-using Computation

Derivative with respect to Matrix: Output shape

Derivative with respect to Matrix

Why the Transposes?

 

What shape should derivatives be?

Next time: Backpropagation

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值