Upload
todd-boone
View
31
Download
1
Embed Size (px)
DESCRIPTION
RPTree 코드분석. 2013.02.04( 월 ) DBLAB 김태훈. Past work. learn.c RPtree generateUniform 예제 learnRPtree.c Projection computation RPNode structure learnRPnode : alpha 가중치 계산 Mean 계산. Contents. learnRPTree.c Mean 값 계산 방법 , 예제 Update_stats Mean 값 계산 Update_hist 평균 , 표준편차 계산 - PowerPoint PPT Presentation
Citation preview
Past work
• learn.c • RPtree • generateUniform 예제
• learnRPtree.c • Projection computation• RPNode structure• learnRPnode : alpha 가중치 계산• Mean 계산
2
Contents
• learnRPTree.c• Mean 값 계산 방법 , 예제• Update_stats Mean 값 계산• Update_hist
평균 , 표준편차 계산 표준편차 계산 목적 LargeBin, SmallBin Update 편차간 거리에 따른 LargeBin, SmallBin 분류 LargeBin SmallBin Update 예제 및 출력
3
4
learnRPTree.c - mean update
n->mean[i] = (1-alpha)*(n->mean[i])+data[i]*alpha;• Data 의 모든 평균을 점화식으로 계산
15
learnRPTree.c – Update_hist 출력
1412 개의 ndx0 데이터 설정 파라메터
• #define VECT_LEN 2• #define MAX_TREE_DEPTH 3• #define NUM_PROJ 2• #define DECAY_COUNT 65536• #define N1 50• #define N2 50• #define N3 250• tree->projections[0][0] = 0.3652;• tree->projections[0][1] = -0.6376;• tree->projections[1][0] = 0.5000;• tree->projections[1][1] = 0.5000;
ndx : 0