Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review01 #32

Merged
merged 4 commits into from
Oct 28, 2018
Merged

Review01 #32

merged 4 commits into from
Oct 28, 2018

Conversation

SmirkCao
Copy link
Owner

Bernoulli Mixed Models for e91.

@@ -4,14 +4,17 @@
# Filename: unit_test
# Date: 9/6/18
# Author: 😏 <smirk dot cao at gmail dot com>
import numpy as np
from sklearn.datasets import load_digits
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个现在还没用到, 也没推广到多维的情况.

> 1. E步:
> $$\hat\gamma_{jk}=\frac{\alpha_kBern(y_j|\theta_k)}{\sum_{k=1}^K\alpha_kBern(y_j|\theta_k)}=\frac{\alpha_k\mu_k^{y_j}(1-\mu_k)^{1-y_j}}{\sum_{k=1}^K\alpha_k\mu_k^{y_j}(1-\mu_k)^{1-y_j}}, j=1,2,\dots,N; k=1,2,\dots,K$$
> $$\hat\gamma_{jk}=\frac{\alpha_kBern(y_j|\theta_k)}{\sum_{k=1}^K\alpha_kBern(y_j|\theta_k)}=\frac{\alpha_k\mu_k^{y_j}(1-\mu_k)^{1-y_j}}{\sum_{k=1}^K\alpha_k\mu_k^{y_j}(1-\mu_k)^{1-y_j}}, j=1,2,\dots,N; k=1,2,\dots,K$$
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感觉自己写的Markdown还是不够干净, 早晚重度代码洁癖.
John Gruber 在 2004 年创造了 Markdown 语言

Copy link
Owner Author

@SmirkCao SmirkCao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

其实bmm部分代码可以再整理下

@SmirkCao SmirkCao added the enhancement New feature or request label Oct 28, 2018
@@ -1,5 +1,5 @@
#! /usr/bin/env python
#! -*- coding=utf-8 -*-
# ! -*- coding=utf-8 -*-
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这部分代码简陋, 但是容易帮助理解bmm. 可以加个tag

Copy link
Owner Author

@SmirkCao SmirkCao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GTG

@SmirkCao SmirkCao merged commit 903353f into master Oct 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant