Development of learning and inference methods in pairwise undirected graphical models