Git Product home page Git Product logo

xixiaoyao / cs224n-winter-together Goto Github PK

View Code? Open in Web Editor NEW
491.0 14.0 155.0 385.41 MB

an Open Course Platform for Stanford CS224n (2020 Winter)

Home Page: https://mp.weixin.qq.com/s/GsnhifWkd_lh88d3---4RQ

License: Apache License 2.0

Shell 0.02% Python 1.64% Jupyter Notebook 3.44% JavaScript 94.89% Erlang 0.01%
neural-networks nlp deep-learning xi-xiaoyao stanford-online 2020 cs224n cs224n-assignment-solutions stanford

cs224n-winter-together's Issues

Assignment 5中出现conv filter size是5但是输入尺度为4的问题

我在完成assignment 5的过程当中,遇上了如题所述的问题,主要的原因是因为在inference time,word-level LSTM预测得到之后是用character-level LSTM,但是它第一个词的预测结果就是,不知道大家有没有遇到过这个问题,不知道是我写错了还是其本来就是这样,因为一般来说设置成作业的例子应该不会这么涉及到这么多细节的才对

对skip-gram的直观解释

这种根据中心词来预测中心词的上下文,有什么比较直观的解释吗?像CBOW那种,上下文预测中心词,脑海里想起来比较直观,好理解一些,但是skip-gram模型脑海里却想不到直观的解释,有什么想法或者参考资料吗?

n-gram中句子加首尾标志符

n-gram模型的讲义中提到了在处理每一个句子的时候都需要加一个首尾标志(<start>,<end>),比如如下的两个句子,bigram model为例:
(1). <start> I am Sam <end>
(2). <start> Sam I am <end>
具体我有三个疑惑:
(1). 对于结尾符<end>,文中的解释为"To make the bigram grammar a true probability distribution. Without an end-symbol, the sentence probabilities for all sentences of a given length would sum to one. This model would define an infinite set of probability distribution, with one distribution per sentence length."我不是很明白,请问有没有更直观的解释或者参考的资料呢?
(2).对于起始符<start>,文中解释是为了"to give us the bigram context of the first word."起始符没有像结尾符一样在概率分布方面的作用吗?
(3). 对于n-gram,是否需要在首尾加上n-1个起始和结尾符,还是仅仅只需要添加一个就行了呢?
跪求解惑。。。

About the use of random seed in assignment 5

一个很奇怪的事情是,为什么尽管并没有改变随机种子,A5中每一次从头开始训练都会收敛到不同的结果,讲道理当你对于torch、numpy和random都设好了相同的随机种子之后的答案应该是不变的才对啊,希望有大佬可以解答

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.