본문 바로가기

Generative vs. Discriminative model Generative Model - Generative Model은 latent variable (parameter)가 주어졌을 때 해당하는 observation model을 만들어 낼 수 있는 모델을 의미한다. 즉 Generative Model은 모든 변수에 대한 full probabilistic model을 가지고 있다. 예: Mixture Model / Latent Dirichlet Allocation / Restricted Boltzmann Machine Discriminative Model - Discriminative Model은 observed variable에 대한 distribution을 정의할 필요가 없다. - Conditional Model이라고도 불린다. 즉 x를 observation.. 더보기
Vector Field Histogram in Dynamic Environment Sgorbissa, Antonio, and Renato Zaccaria. "Planning and obstacle avoidance in mobile robotics." Robotics and Autonomous Systems 60.4 (2012): 628-638.여러 Navigation 알고리즘에 대해 설명이 되어있다. 정작 이 논문은 사람과 로봇이 함께 있는 공간 속에서 동작하는 것을 목표로 하고 있다. 자세한 것은 읽어보도록. Zhu, Yi, et al. "A new method for mobile robots to avoid collision with moving obstacle." Artificial Life and Robotics 16.4 (2012): 507-510.기존의 VFH에 비해서 움.. 더보기
Square Matrix를 여러개의 Sub Matrix로 나누기 위의 그림과 같이 Matrix를 나눠서 그루핑하는 코드를 작성 수행 결과Total Data Matrix 0.8024 0.8276 0.7137 0.2824 0.2484 0.3097 0.2389 0.3014 0.9827 0.4047 0.7002 0.4005 0.8046 0.3181 0.0585 0.1593 0.5042 0.9498 0.2743 0.4722 0.0372 0.3397 0.4923 0.9076 0.3968 0.8018 0.3257 0.6240 0.6685 0.4235 0.9832 0.4416 0.3409 0.9505 0.5189 0.8194 1-group 1-th sub matrix 0.8024 0.8276 0.2389 0.3014 1-group 2-th sub matrix 0.0585 0.159.. 더보기
Double indexing (두 개의 for loop을 하나로 줄이기) 코드 clc;nr_A = 10;nr_B = 20;for total_idx = 1:nr_A*nr_B a_i = floor((total_idx-1)/nr_B) + 1; b_i = mod(total_idx-1, nr_B) + 1; fprintf('total_idx: %d / a_i: %d / b_i: %d \n', total_idx, a_i, b_i);end 결과물 total_idx: 1 / a_i: 1 / b_i: 1 total_idx: 2 / a_i: 1 / b_i: 2 total_idx: 3 / a_i: 1 / b_i: 3 total_idx: 4 / a_i: 1 / b_i: 4 total_idx: 5 / a_i: 1 / b_i: 5 total_idx: 6 / a_i: 1 / b_i: 6 total_idx.. 더보기