<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ko">
	<id>http://samediff.kr/wiki/index.php?action=history&amp;feed=atom&amp;title=Dirichlet_process</id>
	<title>Dirichlet process - 편집 역사</title>
	<link rel="self" type="application/atom+xml" href="http://samediff.kr/wiki/index.php?action=history&amp;feed=atom&amp;title=Dirichlet_process"/>
	<link rel="alternate" type="text/html" href="http://samediff.kr/wiki/index.php?title=Dirichlet_process&amp;action=history"/>
	<updated>2026-04-29T07:02:14Z</updated>
	<subtitle>이 문서의 편집 역사</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>http://samediff.kr/wiki/index.php?title=Dirichlet_process&amp;diff=12222&amp;oldid=prev</id>
		<title>Admin: /* 기타 */</title>
		<link rel="alternate" type="text/html" href="http://samediff.kr/wiki/index.php?title=Dirichlet_process&amp;diff=12222&amp;oldid=prev"/>
		<updated>2017-06-21T01:36:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;기타&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ko&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 이전 판&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2017년 6월 21일 (수) 01:36 판&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l35&quot; &gt;35번째 줄:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;35번째 줄:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===기타===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===기타===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[https://en.wikipedia.org/wiki/Dirichlet_process#External_links 위키페이지 맨 끝 external links section]에 좋은 문서들이 많이 링크되어 있는 것 같다.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[https://en.wikipedia.org/wiki/Dirichlet_process#External_links 위키페이지 맨 끝 external links section]에 좋은 문서들이 많이 링크되어 있는 것 같다.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[http://www.gatsby.ucl.ac.uk/~ywteh/research/npbayes/dp.pdf 왠지 좋아보이는 pdf](레퍼런스 빼면 11페이지)도 찾았지만 과연 읽을날이 올것인가.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://enginius.tistory.com/397 한글로 된 블로그(Mad for Simplicity) 글]중에 [[DPGMM]](Dirichlet Process Gaussian Mixture Models) 예제코드가 있다. DP와의 차이점은,&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://enginius.tistory.com/397 한글로 된 블로그(Mad for Simplicity) 글]중에 [[DPGMM]](Dirichlet Process Gaussian Mixture Models) 예제코드가 있다. DP와의 차이점은,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>http://samediff.kr/wiki/index.php?title=Dirichlet_process&amp;diff=12221&amp;oldid=prev</id>
		<title>Admin: /* 기타 */</title>
		<link rel="alternate" type="text/html" href="http://samediff.kr/wiki/index.php?title=Dirichlet_process&amp;diff=12221&amp;oldid=prev"/>
		<updated>2017-06-21T01:33:32Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;기타&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ko&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 이전 판&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2017년 6월 21일 (수) 01:33 판&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l38&quot; &gt;38번째 줄:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;38번째 줄:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://enginius.tistory.com/397 한글로 된 블로그(Mad for Simplicity) 글]중에 [[DPGMM]](Dirichlet Process Gaussian Mixture Models) 예제코드가 있다. DP와의 차이점은,&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://enginius.tistory.com/397 한글로 된 블로그(Mad for Simplicity) 글]중에 [[DPGMM]](Dirichlet Process Gaussian Mixture Models) 예제코드가 있다. DP와의 차이점은,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# DP는 \(X_i\)를 하나씩 넣으면서 \(x\)를 assign하지만, 처음부터 모든 \(X_i\)에 초기값(클러스터 숫자(k)를 한개로 시작하려면 모두 1, 아니면 초기 클러스터 숫자를 랜덤하게 배분. 예를들어 k=3에서 시작하려면 1,2,3을 랜덤하게 배분.)을 배당한다.  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# DP는 \(X_i\)를 하나씩 넣으면서 \(x\)를 assign하지만, 처음부터 모든 \(X_i\)에 초기값(클러스터 숫자(k)를 한개로 시작하려면 모두 1, 아니면 초기 클러스터 숫자를 랜덤하게 배분. 예를들어 k=3에서 시작하려면 1,2,3을 랜덤하게 배분.)을 배당한다.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# 새로운 클러스터 생성확률을 \(\displaystyle \max[\text{p}(j)] \times \frac{\alpha}{n -1 + \alpha} \) where \(\displaystyle \text{p}(j) = \text{p}'(j) \frac{n_j}{n -1 + \alpha} \)로 둔다. 여기서 p\('(j)\)를 matlab code로 나타내면,&amp;lt;pre&amp;gt;mvnpdf(cur_pt, center{j}, diag([sigma2_x, sigma2_y]))&amp;lt;/pre&amp;gt;. 즉, basic한 DP에서 쓰는 확률값에 적당한 scaling factor를 곱한 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;후 다시 그것을 확률삼아 할당한다&lt;/del&gt;. 새로운 점이 할당될때마다 기존 데이터가 변하므로 iteration을 여러번 돌아야 한다(basic DP는 그렇지 않다. 한번 할당하면 fix된다)&amp;lt;br&amp;gt;확률을 위처럼 두면 합이 1이 되나 궁금하긴 한데 안찾아봤음. &amp;lt;br&amp;gt;For {{c|mvnpdf}}, refer [https://kr.mathworks.com/help/stats/mvnpdf.html?requestedDomain=www.mathworks.com mathworks].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# 새로운 클러스터 생성확률을 \(\displaystyle \max[\text{p}(j)] \times \frac{\alpha}{n -1 + \alpha} \) where \(\displaystyle \text{p}(j) = \text{p}'(j) \frac{n_j}{n -1 + \alpha} \)로 둔다. 여기서 p\('(j)\)를 matlab code로 나타내면,&amp;lt;pre&amp;gt;mvnpdf(cur_pt, center{j}, diag([sigma2_x, sigma2_y]))&amp;lt;/pre&amp;gt;. 즉, basic한 DP에서 쓰는 확률값에 적당한 scaling factor를 곱한 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;것을 최종 확률로 쓴다&lt;/ins&gt;. 새로운 점이 할당될때마다 기존 데이터가 변하므로 iteration을 여러번 돌아야 한다(basic DP는 그렇지 않다. 한번 할당하면 fix된다)&amp;lt;br&amp;gt;확률을 위처럼 두면 합이 1이 되나 궁금하긴 한데 안찾아봤음. &amp;lt;br&amp;gt;For {{c|mvnpdf}}, refer [https://kr.mathworks.com/help/stats/mvnpdf.html?requestedDomain=www.mathworks.com mathworks].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>http://samediff.kr/wiki/index.php?title=Dirichlet_process&amp;diff=12220&amp;oldid=prev</id>
		<title>Admin: /* 기타 */</title>
		<link rel="alternate" type="text/html" href="http://samediff.kr/wiki/index.php?title=Dirichlet_process&amp;diff=12220&amp;oldid=prev"/>
		<updated>2017-06-20T16:39:17Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;기타&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ko&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 이전 판&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2017년 6월 20일 (화) 16:39 판&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l38&quot; &gt;38번째 줄:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;38번째 줄:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://enginius.tistory.com/397 한글로 된 블로그(Mad for Simplicity) 글]중에 [[DPGMM]](Dirichlet Process Gaussian Mixture Models) 예제코드가 있다. DP와의 차이점은,&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://enginius.tistory.com/397 한글로 된 블로그(Mad for Simplicity) 글]중에 [[DPGMM]](Dirichlet Process Gaussian Mixture Models) 예제코드가 있다. DP와의 차이점은,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# DP는 \(X_i\)를 하나씩 넣으면서 \(x\)를 assign하지만, 처음부터 모든 \(X_i\)에 초기값(클러스터 숫자(k)를 한개로 시작하려면 모두 1, 아니면 초기 클러스터 숫자를 랜덤하게 배분. 예를들어 k=3에서 시작하려면 1,2,3을 랜덤하게 배분.)을 배당한다.  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# DP는 \(X_i\)를 하나씩 넣으면서 \(x\)를 assign하지만, 처음부터 모든 \(X_i\)에 초기값(클러스터 숫자(k)를 한개로 시작하려면 모두 1, 아니면 초기 클러스터 숫자를 랜덤하게 배분. 예를들어 k=3에서 시작하려면 1,2,3을 랜덤하게 배분.)을 배당한다.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# 새로운 클러스터 생성확률을 \(\displaystyle \max[\text{p}(j)] \times \frac{\alpha}{n -1 + \alpha} \) where \(\displaystyle \text{p}(j) = \text{p}'(j) \frac{n_j}{n -1 + \alpha} \)로 둔다. 여기서 p\('(j)\)를 matlab code로 나타내면,&amp;lt;pre&amp;gt;mvnpdf(cur_pt, center{j}, diag([sigma2_x, sigma2_y]))&amp;lt;/pre&amp;gt;. 즉, basic한 DP에서 쓰는 확률값에 적당한 scaling factor를 곱한 후 다시 그것을 확률삼아 할당한다. 새로운 점이 할당될때마다 기존 데이터가 변하므로 iteration을 여러번 돌아야 한다(basic DP는 그렇지 않다. 한번 할당하면 fix된다)&amp;lt;br&amp;gt;확률을 위처럼 두면 합이 1이 되나 궁금하긴 한데 안찾아봤음.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# 새로운 클러스터 생성확률을 \(\displaystyle \max[\text{p}(j)] \times \frac{\alpha}{n -1 + \alpha} \) where \(\displaystyle \text{p}(j) = \text{p}'(j) \frac{n_j}{n -1 + \alpha} \)로 둔다. 여기서 p\('(j)\)를 matlab code로 나타내면,&amp;lt;pre&amp;gt;mvnpdf(cur_pt, center{j}, diag([sigma2_x, sigma2_y]))&amp;lt;/pre&amp;gt;. 즉, basic한 DP에서 쓰는 확률값에 적당한 scaling factor를 곱한 후 다시 그것을 확률삼아 할당한다. 새로운 점이 할당될때마다 기존 데이터가 변하므로 iteration을 여러번 돌아야 한다(basic DP는 그렇지 않다. 한번 할당하면 fix된다)&amp;lt;br&amp;gt;확률을 위처럼 두면 합이 1이 되나 궁금하긴 한데 안찾아봤음&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. &amp;lt;br&amp;gt;For {{c|mvnpdf}}, refer [https://kr.mathworks.com/help/stats/mvnpdf.html?requestedDomain=www.mathworks.com mathworks]&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>http://samediff.kr/wiki/index.php?title=Dirichlet_process&amp;diff=12217&amp;oldid=prev</id>
		<title>Admin: /* 기타 */</title>
		<link rel="alternate" type="text/html" href="http://samediff.kr/wiki/index.php?title=Dirichlet_process&amp;diff=12217&amp;oldid=prev"/>
		<updated>2017-06-20T16:33:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;기타&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ko&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 이전 판&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2017년 6월 20일 (화) 16:33 판&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l36&quot; &gt;36번째 줄:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;36번째 줄:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[https://en.wikipedia.org/wiki/Dirichlet_process#External_links 위키페이지 맨 끝 external links section]에 좋은 문서들이 많이 링크되어 있는 것 같다.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[https://en.wikipedia.org/wiki/Dirichlet_process#External_links 위키페이지 맨 끝 external links section]에 좋은 문서들이 많이 링크되어 있는 것 같다.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://enginius.tistory.com/397 한글로 된 블로그(Mad for Simplicity) 글]중에 DPGMM(Dirichlet Process Gaussian Mixture Models) 예제코드가 있다. DP와의 차이점은,&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://enginius.tistory.com/397 한글로 된 블로그(Mad for Simplicity) 글]중에 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[&lt;/ins&gt;DPGMM&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]]&lt;/ins&gt;(Dirichlet Process Gaussian Mixture Models) 예제코드가 있다. DP와의 차이점은,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# DP는 \(X_i\)를 하나씩 넣으면서 \(x\)를 assign하지만, 처음부터 모든 \(X_i\)에 초기값(클러스터 숫자(k)를 한개로 시작하려면 모두 1, 아니면 초기 클러스터 숫자를 랜덤하게 배분. 예를들어 k=3에서 시작하려면 1,2,3을 랜덤하게 배분.)을 배당한다.  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# DP는 \(X_i\)를 하나씩 넣으면서 \(x\)를 assign하지만, 처음부터 모든 \(X_i\)에 초기값(클러스터 숫자(k)를 한개로 시작하려면 모두 1, 아니면 초기 클러스터 숫자를 랜덤하게 배분. 예를들어 k=3에서 시작하려면 1,2,3을 랜덤하게 배분.)을 배당한다.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# 새로운 클러스터 생성확률을 \(\displaystyle \max[\text{p}(j)] \times \frac{\alpha}{n -1 + \alpha} \) where \(\displaystyle \text{p}(j) = \text{p}'(j) \frac{n_j}{n -1 + \alpha} \)로 둔다. 여기서 p\('(j)\)를 matlab code로 나타내면,&amp;lt;pre&amp;gt;mvnpdf(cur_pt, center{j}, diag([sigma2_x, sigma2_y]))&amp;lt;/pre&amp;gt;. 즉, basic한 DP에서 쓰는 확률값에 적당한 scaling factor를 곱한 후 다시 그것을 확률삼아 할당한다. 새로운 점이 할당될때마다 기존 데이터가 변하므로 iteration을 여러번 돌아야 한다(basic DP는 그렇지 않다. 한번 할당하면 fix된다)&amp;lt;br&amp;gt;확률을 위처럼 두면 합이 1이 되나 궁금하긴 한데 안찾아봤음.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# 새로운 클러스터 생성확률을 \(\displaystyle \max[\text{p}(j)] \times \frac{\alpha}{n -1 + \alpha} \) where \(\displaystyle \text{p}(j) = \text{p}'(j) \frac{n_j}{n -1 + \alpha} \)로 둔다. 여기서 p\('(j)\)를 matlab code로 나타내면,&amp;lt;pre&amp;gt;mvnpdf(cur_pt, center{j}, diag([sigma2_x, sigma2_y]))&amp;lt;/pre&amp;gt;. 즉, basic한 DP에서 쓰는 확률값에 적당한 scaling factor를 곱한 후 다시 그것을 확률삼아 할당한다. 새로운 점이 할당될때마다 기존 데이터가 변하므로 iteration을 여러번 돌아야 한다(basic DP는 그렇지 않다. 한번 할당하면 fix된다)&amp;lt;br&amp;gt;확률을 위처럼 두면 합이 1이 되나 궁금하긴 한데 안찾아봤음.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>http://samediff.kr/wiki/index.php?title=Dirichlet_process&amp;diff=12216&amp;oldid=prev</id>
		<title>Admin: /* 기타 */</title>
		<link rel="alternate" type="text/html" href="http://samediff.kr/wiki/index.php?title=Dirichlet_process&amp;diff=12216&amp;oldid=prev"/>
		<updated>2017-06-20T16:32:25Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;기타&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ko&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 이전 판&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2017년 6월 20일 (화) 16:32 판&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l38&quot; &gt;38번째 줄:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;38번째 줄:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://enginius.tistory.com/397 한글로 된 블로그(Mad for Simplicity) 글]중에 DPGMM(Dirichlet Process Gaussian Mixture Models) 예제코드가 있다. DP와의 차이점은,&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://enginius.tistory.com/397 한글로 된 블로그(Mad for Simplicity) 글]중에 DPGMM(Dirichlet Process Gaussian Mixture Models) 예제코드가 있다. DP와의 차이점은,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# DP는 \(X_i\)를 하나씩 넣으면서 \(x\)를 assign하지만, 처음부터 모든 \(X_i\)에 초기값(클러스터 숫자(k)를 한개로 시작하려면 모두 1, 아니면 초기 클러스터 숫자를 랜덤하게 배분. 예를들어 k=3에서 시작하려면 1,2,3을 랜덤하게 배분.)을 배당한다.  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# DP는 \(X_i\)를 하나씩 넣으면서 \(x\)를 assign하지만, 처음부터 모든 \(X_i\)에 초기값(클러스터 숫자(k)를 한개로 시작하려면 모두 1, 아니면 초기 클러스터 숫자를 랜덤하게 배분. 예를들어 k=3에서 시작하려면 1,2,3을 랜덤하게 배분.)을 배당한다.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# 새로운 클러스터 생성확률을 \(\displaystyle \max[\text{p}(j)] \times \frac{\alpha}{n -1 + \alpha} \) where \(\displaystyle \text{p}(j) = \text{p}'(j) \frac{n_j}{n -1 + \alpha} \)로 둔다. 여기서 p\('(j)\)를 matlab code로 나타내면,&amp;lt;pre&amp;gt;mvnpdf(cur_pt, center{j}, diag([sigma2_x, sigma2_y]))&amp;lt;/pre&amp;gt;. 즉, basic한 DP에서 쓰는 확률값에 적당한 scaling factor를 곱한 후 다시 그것을 확률삼아 할당한다. 새로운 점이 할당될때마다 기존 데이터가 변하므로 iteration을 여러번 돌아야 한다(basic DP는 그렇지 않다. 한번 할당하면 fix된다)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# 새로운 클러스터 생성확률을 \(\displaystyle \max[\text{p}(j)] \times \frac{\alpha}{n -1 + \alpha} \) where \(\displaystyle \text{p}(j) = \text{p}'(j) \frac{n_j}{n -1 + \alpha} \)로 둔다. 여기서 p\('(j)\)를 matlab code로 나타내면,&amp;lt;pre&amp;gt;mvnpdf(cur_pt, center{j}, diag([sigma2_x, sigma2_y]))&amp;lt;/pre&amp;gt;. 즉, basic한 DP에서 쓰는 확률값에 적당한 scaling factor를 곱한 후 다시 그것을 확률삼아 할당한다. 새로운 점이 할당될때마다 기존 데이터가 변하므로 iteration을 여러번 돌아야 한다(basic DP는 그렇지 않다. 한번 할당하면 fix된다)&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;br&amp;gt;확률을 위처럼 두면 합이 1이 되나 궁금하긴 한데 안찾아봤음.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>http://samediff.kr/wiki/index.php?title=Dirichlet_process&amp;diff=12215&amp;oldid=prev</id>
		<title>Admin: /* 기타 */</title>
		<link rel="alternate" type="text/html" href="http://samediff.kr/wiki/index.php?title=Dirichlet_process&amp;diff=12215&amp;oldid=prev"/>
		<updated>2017-06-20T16:30:36Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;기타&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ko&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 이전 판&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2017년 6월 20일 (화) 16:30 판&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l38&quot; &gt;38번째 줄:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;38번째 줄:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://enginius.tistory.com/397 한글로 된 블로그(Mad for Simplicity) 글]중에 DPGMM(Dirichlet Process Gaussian Mixture Models) 예제코드가 있다. DP와의 차이점은,&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://enginius.tistory.com/397 한글로 된 블로그(Mad for Simplicity) 글]중에 DPGMM(Dirichlet Process Gaussian Mixture Models) 예제코드가 있다. DP와의 차이점은,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# DP는 \(X_i\)를 하나씩 넣으면서 \(x\)를 assign하지만, 처음부터 모든 \(X_i\)에 초기값(클러스터 숫자(k)를 한개로 시작하려면 모두 1, 아니면 초기 클러스터 숫자를 랜덤하게 배분. 예를들어 k=3에서 시작하려면 1,2,3을 랜덤하게 배분.)을 배당한다.  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# DP는 \(X_i\)를 하나씩 넣으면서 \(x\)를 assign하지만, 처음부터 모든 \(X_i\)에 초기값(클러스터 숫자(k)를 한개로 시작하려면 모두 1, 아니면 초기 클러스터 숫자를 랜덤하게 배분. 예를들어 k=3에서 시작하려면 1,2,3을 랜덤하게 배분.)을 배당한다.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# 새로운 클러스터 생성확률을 \(\displaystyle \max[\text{p}(j)] \times \frac{\alpha}{n -1 + \alpha} \) where \(\displaystyle \text{p}(j) = \text{p}'(j) \frac{n_j}{n -1 + \alpha} \)로 둔다. 여기서 p(&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;\&lt;/del&gt;(j\&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;)&lt;/del&gt;)를 matlab code로 나타내면,&amp;lt;pre&amp;gt;mvnpdf(cur_pt, center{j}, diag([sigma2_x, sigma2_y]))&amp;lt;/pre&amp;gt; 즉, basic한 DP에서 쓰는 확률값에 적당한 scaling factor를 곱한 후 다시 그것을 확률삼아 할당한다. 새로운 점이 할당될때마다 기존 데이터가 변하므로 iteration을 여러번 돌아야 한다(basic DP는 그렇지 않다. 한번 할당하면 fix된다)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# 새로운 클러스터 생성확률을 \(\displaystyle \max[\text{p}(j)] \times \frac{\alpha}{n -1 + \alpha} \) where \(\displaystyle \text{p}(j) = \text{p}'(j) \frac{n_j}{n -1 + \alpha} \)로 둔다. 여기서 p&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;\&lt;/ins&gt;(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'&lt;/ins&gt;(j&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;)&lt;/ins&gt;\)를 matlab code로 나타내면,&amp;lt;pre&amp;gt;mvnpdf(cur_pt, center{j}, diag([sigma2_x, sigma2_y]))&amp;lt;/pre&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. &lt;/ins&gt;즉, basic한 DP에서 쓰는 확률값에 적당한 scaling factor를 곱한 후 다시 그것을 확률삼아 할당한다. 새로운 점이 할당될때마다 기존 데이터가 변하므로 iteration을 여러번 돌아야 한다(basic DP는 그렇지 않다. 한번 할당하면 fix된다)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>http://samediff.kr/wiki/index.php?title=Dirichlet_process&amp;diff=12214&amp;oldid=prev</id>
		<title>Admin: /* 기타 */</title>
		<link rel="alternate" type="text/html" href="http://samediff.kr/wiki/index.php?title=Dirichlet_process&amp;diff=12214&amp;oldid=prev"/>
		<updated>2017-06-20T16:29:22Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;기타&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ko&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 이전 판&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2017년 6월 20일 (화) 16:29 판&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l38&quot; &gt;38번째 줄:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;38번째 줄:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://enginius.tistory.com/397 한글로 된 블로그(Mad for Simplicity) 글]중에 DPGMM(Dirichlet Process Gaussian Mixture Models) 예제코드가 있다. DP와의 차이점은,&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://enginius.tistory.com/397 한글로 된 블로그(Mad for Simplicity) 글]중에 DPGMM(Dirichlet Process Gaussian Mixture Models) 예제코드가 있다. DP와의 차이점은,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# DP는 \(X_i\)를 하나씩 넣으면서 \(x\)를 assign하지만, 처음부터 모든 \(X_i\)에 초기값(클러스터 숫자(k)를 한개로 시작하려면 모두 1, 아니면 초기 클러스터 숫자를 랜덤하게 배분. 예를들어 k=3에서 시작하려면 1,2,3을 랜덤하게 배분.)을 배당한다.  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# DP는 \(X_i\)를 하나씩 넣으면서 \(x\)를 assign하지만, 처음부터 모든 \(X_i\)에 초기값(클러스터 숫자(k)를 한개로 시작하려면 모두 1, 아니면 초기 클러스터 숫자를 랜덤하게 배분. 예를들어 k=3에서 시작하려면 1,2,3을 랜덤하게 배분.)을 배당한다.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# 새로운 클러스터 생성확률을 \(\displaystyle \max \text{p}(j) \times \frac{\alpha}{n -1 + \alpha} \) where \(\displaystyle \text{p}(j) = \text{p}'(j) \frac{n_j}{n -1 + \alpha} \)로 둔다. 여기서 p(\(j\))를 matlab code로 나타내면,&amp;lt;pre&amp;gt;mvnpdf(cur_pt, center{j}, diag([sigma2_x, sigma2_y]))&amp;lt;/pre&amp;gt; 즉, basic한 DP에서 쓰는 확률값에 적당한 scaling factor를 곱한 후 다시 그것을 확률삼아 할당한다. 새로운 점이 할당될때마다 기존 데이터가 변하므로 iteration을 여러번 돌아야 한다(basic DP는 그렇지 않다. 한번 할당하면 fix된다)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# 새로운 클러스터 생성확률을 \(\displaystyle \max&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[&lt;/ins&gt;\text{p}(j)&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;] &lt;/ins&gt;\times \frac{\alpha}{n -1 + \alpha} \) where \(\displaystyle \text{p}(j) = \text{p}'(j) \frac{n_j}{n -1 + \alpha} \)로 둔다. 여기서 p(\(j\))를 matlab code로 나타내면,&amp;lt;pre&amp;gt;mvnpdf(cur_pt, center{j}, diag([sigma2_x, sigma2_y]))&amp;lt;/pre&amp;gt; 즉, basic한 DP에서 쓰는 확률값에 적당한 scaling factor를 곱한 후 다시 그것을 확률삼아 할당한다. 새로운 점이 할당될때마다 기존 데이터가 변하므로 iteration을 여러번 돌아야 한다(basic DP는 그렇지 않다. 한번 할당하면 fix된다)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>http://samediff.kr/wiki/index.php?title=Dirichlet_process&amp;diff=12213&amp;oldid=prev</id>
		<title>Admin: /* 기타 */</title>
		<link rel="alternate" type="text/html" href="http://samediff.kr/wiki/index.php?title=Dirichlet_process&amp;diff=12213&amp;oldid=prev"/>
		<updated>2017-06-20T16:27:15Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;기타&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ko&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 이전 판&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2017년 6월 20일 (화) 16:27 판&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l38&quot; &gt;38번째 줄:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;38번째 줄:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://enginius.tistory.com/397 한글로 된 블로그(Mad for Simplicity) 글]중에 DPGMM(Dirichlet Process Gaussian Mixture Models) 예제코드가 있다. DP와의 차이점은,&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://enginius.tistory.com/397 한글로 된 블로그(Mad for Simplicity) 글]중에 DPGMM(Dirichlet Process Gaussian Mixture Models) 예제코드가 있다. DP와의 차이점은,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# DP는 \(X_i\)를 하나씩 넣으면서 \(x\)를 assign하지만, 처음부터 모든 \(X_i\)에 초기값(클러스터 숫자(k)를 한개로 시작하려면 모두 1, 아니면 초기 클러스터 숫자를 랜덤하게 배분. 예를들어 k=3에서 시작하려면 1,2,3을 랜덤하게 배분.)을 배당한다.  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# DP는 \(X_i\)를 하나씩 넣으면서 \(x\)를 assign하지만, 처음부터 모든 \(X_i\)에 초기값(클러스터 숫자(k)를 한개로 시작하려면 모두 1, 아니면 초기 클러스터 숫자를 랜덤하게 배분. 예를들어 k=3에서 시작하려면 1,2,3을 랜덤하게 배분.)을 배당한다.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# 새로운 클러스터 생성확률을 \(\displaystyle \max \text{p}(j) \times \frac{\alpha}{n -1 + \alpha} \) where \(\displaystyle \text{p}(j) = \text{p}'(j) \frac{n_j}{n -1 + \alpha} \)로 둔다. 여기서 p(\(j\))를 matlab code로 나타내면,&amp;lt;pre&amp;gt;mvnpdf(cur_pt, center{j}, diag([sigma2_x, sigma2_y]))&amp;lt;/pre&amp;gt; 즉, basic한 DP에서 쓰는 확률값에 적당한 scaling factor를 곱한 후 다시 그것을 확률삼아 할당한다. 새로운 점이 할당될때마다 기존 데이터가 변하므로 iteration을 여러번 돌아야 한다(basic DP는 그렇지 않다. 한번 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;할당되면 &lt;/del&gt;fix된다)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# 새로운 클러스터 생성확률을 \(\displaystyle \max \text{p}(j) \times \frac{\alpha}{n -1 + \alpha} \) where \(\displaystyle \text{p}(j) = \text{p}'(j) \frac{n_j}{n -1 + \alpha} \)로 둔다. 여기서 p(\(j\))를 matlab code로 나타내면,&amp;lt;pre&amp;gt;mvnpdf(cur_pt, center{j}, diag([sigma2_x, sigma2_y]))&amp;lt;/pre&amp;gt; 즉, basic한 DP에서 쓰는 확률값에 적당한 scaling factor를 곱한 후 다시 그것을 확률삼아 할당한다. 새로운 점이 할당될때마다 기존 데이터가 변하므로 iteration을 여러번 돌아야 한다(basic DP는 그렇지 않다. 한번 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;할당하면 &lt;/ins&gt;fix된다)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>http://samediff.kr/wiki/index.php?title=Dirichlet_process&amp;diff=12212&amp;oldid=prev</id>
		<title>Admin: /* 기타 */</title>
		<link rel="alternate" type="text/html" href="http://samediff.kr/wiki/index.php?title=Dirichlet_process&amp;diff=12212&amp;oldid=prev"/>
		<updated>2017-06-20T16:26:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;기타&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ko&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 이전 판&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2017년 6월 20일 (화) 16:26 판&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l38&quot; &gt;38번째 줄:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;38번째 줄:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://enginius.tistory.com/397 한글로 된 블로그(Mad for Simplicity) 글]중에 DPGMM(Dirichlet Process Gaussian Mixture Models) 예제코드가 있다. DP와의 차이점은,&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://enginius.tistory.com/397 한글로 된 블로그(Mad for Simplicity) 글]중에 DPGMM(Dirichlet Process Gaussian Mixture Models) 예제코드가 있다. DP와의 차이점은,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# DP는 \(X_i\)를 하나씩 넣으면서 \(x\)를 assign하지만, 처음부터 모든 \(X_i\)에 초기값(클러스터 숫자(k)를 한개로 시작하려면 모두 1, 아니면 초기 클러스터 숫자를 랜덤하게 배분. 예를들어 k=3에서 시작하려면 1,2,3을 랜덤하게 배분.)을 배당한다.  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# DP는 \(X_i\)를 하나씩 넣으면서 \(x\)를 assign하지만, 처음부터 모든 \(X_i\)에 초기값(클러스터 숫자(k)를 한개로 시작하려면 모두 1, 아니면 초기 클러스터 숫자를 랜덤하게 배분. 예를들어 k=3에서 시작하려면 1,2,3을 랜덤하게 배분.)을 배당한다.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# 새로운 클러스터 생성확률을 \(\displaystyle \max \text{p}(j) \times \frac{\alpha}{n -1 + \alpha} \) where \(\displaystyle \text{p}(j) = \text{p}'(j) \frac{n_j}{n -1 + \alpha} \)로 둔다. 여기서 p(\(j\))를 matlab code로 나타내면,&amp;lt;pre&amp;gt;mvnpdf(cur_pt, center{j}, diag([sigma2_x, sigma2_y]))&amp;lt;/pre&amp;gt; 즉, basic한 DP에서 쓰는 확률값에 적당한 scaling factor를 곱한 후 다시 그것을 확률삼아 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;배분한다&lt;/del&gt;. 새로운 점이 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;배분될때마다 &lt;/del&gt;기존 데이터가 변하므로 iteration을 여러번 돌아야 한다(basic DP는 그렇지 않다. 한번 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;배분되면 &lt;/del&gt;fix된다)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# 새로운 클러스터 생성확률을 \(\displaystyle \max \text{p}(j) \times \frac{\alpha}{n -1 + \alpha} \) where \(\displaystyle \text{p}(j) = \text{p}'(j) \frac{n_j}{n -1 + \alpha} \)로 둔다. 여기서 p(\(j\))를 matlab code로 나타내면,&amp;lt;pre&amp;gt;mvnpdf(cur_pt, center{j}, diag([sigma2_x, sigma2_y]))&amp;lt;/pre&amp;gt; 즉, basic한 DP에서 쓰는 확률값에 적당한 scaling factor를 곱한 후 다시 그것을 확률삼아 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;할당한다&lt;/ins&gt;. 새로운 점이 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;할당될때마다 &lt;/ins&gt;기존 데이터가 변하므로 iteration을 여러번 돌아야 한다(basic DP는 그렇지 않다. 한번 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;할당되면 &lt;/ins&gt;fix된다)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>http://samediff.kr/wiki/index.php?title=Dirichlet_process&amp;diff=12211&amp;oldid=prev</id>
		<title>2017년 6월 20일 (화) 16:26에 Admin님의 편집</title>
		<link rel="alternate" type="text/html" href="http://samediff.kr/wiki/index.php?title=Dirichlet_process&amp;diff=12211&amp;oldid=prev"/>
		<updated>2017-06-20T16:26:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ko&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 이전 판&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2017년 6월 20일 (화) 16:26 판&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l38&quot; &gt;38번째 줄:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;38번째 줄:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://enginius.tistory.com/397 한글로 된 블로그(Mad for Simplicity) 글]중에 DPGMM(Dirichlet Process Gaussian Mixture Models) 예제코드가 있다. DP와의 차이점은,&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://enginius.tistory.com/397 한글로 된 블로그(Mad for Simplicity) 글]중에 DPGMM(Dirichlet Process Gaussian Mixture Models) 예제코드가 있다. DP와의 차이점은,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# DP는 \(X_i\)를 하나씩 넣으면서 \(x\)를 assign하지만, 처음부터 모든 \(X_i\)에 초기값(클러스터 숫자(k)를 한개로 시작하려면 모두 1, 아니면 초기 클러스터 숫자를 랜덤하게 배분. 예를들어 k=3에서 시작하려면 1,2,3을 랜덤하게 배분.)을 배당한다.  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# DP는 \(X_i\)를 하나씩 넣으면서 \(x\)를 assign하지만, 처음부터 모든 \(X_i\)에 초기값(클러스터 숫자(k)를 한개로 시작하려면 모두 1, 아니면 초기 클러스터 숫자를 랜덤하게 배분. 예를들어 k=3에서 시작하려면 1,2,3을 랜덤하게 배분.)을 배당한다.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# 새로운 클러스터 생성확률을 \(\displaystyle \max \text{p}(j) \times \frac{\alpha}{n -1 + \alpha} \) where \(\displaystyle \text{p}(j) = \text{p}'(j) \frac{n_j}{n -1 + \alpha} \)로 둔다. 여기서 p(\(j\))를 matlab code로 나타내면,&amp;lt;pre&amp;gt;mvnpdf(cur_pt, center{j}, diag([sigma2_x, sigma2_y]))&amp;lt;/pre&amp;gt; 즉, basic한 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;DP에 &lt;/del&gt;적당한 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;scaling해준 확률로 점들을 &lt;/del&gt;배분한다. 새로운 점이 배분될때마다 기존 데이터가 변하므로 iteration을 여러번 돌아야 한다(basic DP는 그렇지 않다. 한번 배분되면 fix된다)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# 새로운 클러스터 생성확률을 \(\displaystyle \max \text{p}(j) \times \frac{\alpha}{n -1 + \alpha} \) where \(\displaystyle \text{p}(j) = \text{p}'(j) \frac{n_j}{n -1 + \alpha} \)로 둔다. 여기서 p(\(j\))를 matlab code로 나타내면,&amp;lt;pre&amp;gt;mvnpdf(cur_pt, center{j}, diag([sigma2_x, sigma2_y]))&amp;lt;/pre&amp;gt; 즉, basic한 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;DP에서 쓰는 확률값에 &lt;/ins&gt;적당한 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;scaling factor를 곱한 후 다시 그것을 확률삼아 &lt;/ins&gt;배분한다. 새로운 점이 배분될때마다 기존 데이터가 변하므로 iteration을 여러번 돌아야 한다(basic DP는 그렇지 않다. 한번 배분되면 fix된다)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
</feed>