Machine learning theory and application