Understanding Machine Learning: Types, Methods, and the Future of AI