for what it's worth, if you take the ML class, you will learn most of the things you would learn in the AI class and more - although it does get a bit rigorous, and will take more time than the AI class would. from personal experience, I feel like Ng's class gave me a more thorough foundation in the math behind the concepts, and was more challenging to boot - so I'd recommend it if you're feeling up for it.