Giter Site home page Giter Site logo

Comments (1)

musyoku avatar musyoku commented on August 15, 2024

コードを見直しましたが、sample_next_tokenの該当箇所(ノードのサンプリングを行っている部分)は不要だったので削除しました。
またcompute_Pw_given_h関数(論文の式10に対応)の実装を見直したところ、本来無限のnで混合しなければならないところを文脈長までしか計算していないことに気づいたので修正しておきました。

今までの実装では、学習時にパープレキシティが一旦下がってからまた上昇するという不自然な挙動がありましたが、上記の修正を加えたところ解消されました。
add_customer_at_timestepでサンプリングしているnew_depthを例えば2に固定すると、このVPYLMは3-gramのHPYLMに一致するはずなのですが、そうならないことに気づいて調べてみたところ上記の不具合を発見できました。

bosの登録ですが、以下のようにして実験してみましたが、あまり性能に差が見られませんでした。

if(token_t_index == 1){
	new_depth = 1;
}

これは「最初の単語は必ずBOSから生成される」という2-gramを仮定することに相当しますが、VPYLMの目的が最適なn-gramオーダーの推定なので、決め打ちしてしまうのはあまり良くない気がします。

from vpylm.

Related Issues (1)

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.