National Science University - Machine Learning and Pattern Recognition - Third Homework