2018-09-01から1ヶ月間の記事一覧
概要 Model クラスのサンプル生成のメソッドを読んでみます。 test_point コミット 2018/06/09から2018/06/11の間のコミットです。 tmp · pymc-devs/pymc4@e334115 · GitHub restructure + test point implementation · pymc-devs/pymc4@d07338e · GitHub fi…
概要 まずは Model クラスの初期化処理系のメソッドを読んでみます。 _init_variables: 今回はここの self.graph.as_default() の処理を読みます コミット 2018/06/09から2018/06/11の間のコミットです。 tmp · pymc-devs/pymc4@e334115 · GitHub restructur…
概要 まずは Model クラスの初期化処理系のメソッドを読んでみます。 _init_variables: 今回はここの ed.interception() の処理を読みます コミット 2018/06/09から2018/06/11の間のコミットです。 tmp · pymc-devs/pymc4@e334115 · GitHub restructure + te…
概要 まずは Model クラスの初期化処理系のメソッドを読んでみます。 _init_variables: 今回はここを読みます コミット 2018/06/09から2018/06/11の間のコミットです。 tmp · pymc-devs/pymc4@e334115 · GitHub restructure + test point implementation · p…
TL;DR まずは Model クラスの初期化処理系のメソッドを読んでみます。 __init__: 初期化処理いろいろ define: self._f を設定して変数初期化しているようですが、今のところテスト用のヘルパー関数に見えます configure: 設定を上書きして変数初期化 _init_v…
TL;DR 以下記事をもとに、PyMC4のバックエンドにtensorflowが採用された経緯をまとめました。 see: Theano, TensorFlow and the Future of PyMC – PyMC Developers – Medium ポイント tensorflowには既に多くのユーザがいること(デファクトスタンダードであ…
TL;DR biwrap モジュールを使ってアノテーションを使った Model インスタンス生成用のヘルパー関数を作成しています。 コミット 2018/06/09から2018/06/11の間のコミットです。 tmp · pymc-devs/pymc4@e334115 · GitHub restructure + test point implementa…
TL;DR 今までのコミットの Model や RandomVariable は削除され、アーキテクチャも変更されています。削除されたコードはpymc3とほぼ同等だったので、試しに書いたコードだったようです汗。ほとんど0から読み進める感じになるので、焦らず読みやすそうな箇所…
TL;DR 依存ライブラリである tensorflow_probability が原因で requirements.txt の現状の書き方では最新バージョンを上手く取得できない問題があったみたいです。新しいライブラリなので仕方ないですね。 コミット 2018/06/03のコミットです。 Update requi…
TL;DR treedict クラスの依存性を以前のコミットで削除した代わりに、 RandomVariable クラス内で Model の contexts.stack 全てに値を設定することで、ほぼ同等の動きをしている。 コミット 2018/06/03のコミットです。 Add model tests, fix travis pytest…
コミット 2018/06/03のコミットです。 Add model tests, fix travis pytest problem · pymc-devs/pymc4@4357d39 · GitHub 以下ファイルが変更されています。 .gitignore .pytest_cache/ を追記 .pylintrc naming convention のlintチェックをdisable: C0103 …
TL;DR model nesting が不要になったので、 treedict が削除されたみたいです。 コミット 2018/05/31のコミットです。 Remove treedict dependency · pymc-devs/pymc4@10ea1aa · GitHub 以前は Model クラスで treedict クラスが使用されていましたが、その…
TL;DR pep8のlint系の対応やrequirements.txtの更新など、雑多なコミットが多かったので、1つの記事にまとめました。途中で jupyter notebook で test.ipynb を起動してもライブラリが無いとか、そもそもシンタックスエラー等があるので、コミット c1ea662 …
コミット 2018/05/30のコミットです。 Initial Model Class, sampling and random variable · pymc-devs/pymc4@aafa32d · GitHub 主に、pymc4の根幹となる Model と RandomVariable クラスが作成されています。 Model クラスの動作を確認してみます。 Model …
まとめてみた(内容はまだ自信がないので、後日またチェックしてみる) メモ Model クラスは Context クラスを継承している Model は、クラスのスコープで contexts.stack を保持している with でmodelインスタンスを生成する度に、stackの末尾にそのmodelイ…
コミット 2018/05/30のコミットです。 Initial Model Class, sampling and random variable · pymc-devs/pymc4@aafa32d · GitHub 主に、pymc4の根幹となる Model と RandomVariable クラスが作成されています。 以下ファイルが追加されています。 .vscode/se…
コミット 2018/05/30のコミットです。 Initial Model Class, sampling and random variable · pymc-devs/pymc4@aafa32d · GitHub 主に、pymc4の根幹となる Model と RandomVariable クラスが作成されています。 以下ファイルが追加されています。 .vscode/se…
コミット 2018/05/30のコミットです。 Initial Model Class, sampling and random variable · pymc-devs/pymc4@aafa32d · GitHub 主に、pymc4の根幹となる Model と RandomVariable クラスが作成されています。 以下ファイルが追加されています。 .vscode/se…